Quadratic Formula Calculator

Enter the coefficients a, b and c of a quadratic equation to get its roots, including complex roots, the discriminant and the vertex.

How it works

The discriminant b² − 4ac decides the kind of roots. Positive gives two real roots, zero gives one repeated root and negative gives two complex roots. The vertex of the parabola is at x = −b ÷ 2a.

x = (−b ± √(b² − 4ac)) ÷ 2a
Discriminant D = b² − 4ac  ·  Vertex: x = −b ÷ 2a, y = c − b² ÷ 4a

Worked example

Using the default values: a = 1; b = -3; c = 2.

The calculator returns: Roots: x1 = 2, x2 = 1; Discriminant: 1; Vertex: (1.5, -0.25).

Limits and assumptions

  • The coefficient a must not be zero; if it is, the equation is linear and the calculator solves it as a linear equation.
  • Results are rounded for display to about 10 significant digits.
  • Only real coefficients are supported.

Last reviewed: 2026-12-01. Found a mistake? Please use the Contact page and tell us the inputs you used.

Frequently asked questions about the Quadratic Formula Calculator

What does the discriminant tell me?

If it is positive the parabola crosses the x-axis twice, if zero it touches once, and if negative it does not cross at all (complex roots).

What if a equals zero?

Then the equation bx + c = 0 is linear and has the single solution x = -c/b.

How do I check the answer?

Substitute each root back into ax² + bx + c; the result should be zero apart from rounding.

Advertisement