Quadratic Formula Calculator (Solve ax² + bx + c = 0 With Steps)

Enter a, b and c to get both roots — exact and decimal — with the discriminant, vertex and full working.

Enter your numbers

Results

How this calculator works

Any equation of the form ax² + bx + c = 0 (with a ≠ 0) can be solved with the quadratic formula. The expression under the square root, b² − 4ac, is the discriminant: if it is positive there are two real roots, if it is zero there is one repeated root, and if it is negative the roots are a complex-conjugate pair.

The calculator also gives the exact answer in simplest radical form when a, b and c are whole numbers, and the vertex of the parabola y = ax² + bx + c, which sits halfway between the two roots.

x = (−b ± √(b² − 4ac)) / (2a) Discriminant D = b² − 4ac Vertex: h = −b / (2a), k = c − b² / (4a)

Assumptions and tips

  • Decimal answers are rounded to 6 decimal places; the exact form is not rounded.
  • Write the equation in standard form (everything on one side, = 0) before reading off a, b and c.

Worked example

Using the default values in the calculator above:

InputValue
a (x² coefficient)1
b (x coefficient)-3
c (constant)-10

ResultValue
x₁5
x₂-2
RootsTwo real roots
Exact formx = 5 or x = -2
Discriminant (b² − 4ac)49
Vertex (h, k)(1.5, -12.25)
Axis of symmetryx = 1.5
Parabola opensUpward (minimum at the vertex)

Step by step:

  1. Identify a = 1, b = -3, c = -10
  2. Discriminant D = b² − 4ac = 9 − 4 × 1 × -10 = 49
  3. D > 0: two real roots. √D = 7
  4. x = (3 ± 7) ÷ 2
  5. x₁ = 5, x₂ = -2
  6. Vertex: h = −b ÷ 2a = 1.5, k = c − b² ÷ 4a = -12.25

Worked examples

Each equation solved with this calculator.

Equationx₁Discriminant
x² − 3x − 10 = 0549
x² − 5x + 6 = 031
2x² + 3x − 2 = 00.525
x² − 2 = 01.4142148
x² + 2x − 1 = 00.4142148
3x² − 4x − 4 = 0264
x² − 7x + 12 = 041
4x² + 4x − 3 = 00.564

Common mistakes to avoid

  • Dropping the sign of b: −b means change its sign, so b = −3 gives +3.
  • Dividing only the square root by 2a — the whole numerator, −b ± √D, is divided by 2a.
  • Reading a, b and c before moving every term to one side of the equation.

Frequently asked questions

How do I solve x² − 3x − 10 = 0?

a = 1, b = −3, c = −10. D = 9 + 40 = 49, √49 = 7, so x = (3 ± 7) / 2: x = 5 or x = −2.

What does a negative discriminant mean?

The parabola never crosses the x-axis, so there are no real solutions — the two roots are complex numbers a ± bi.

What if a = 0?

Then the equation is linear, bx + c = 0, with the single solution x = −c / b. The calculator handles that case too.

How do I find the vertex of a parabola?

h = −b / (2a), and k is the value of the expression at x = h. For x² − 3x − 10 the vertex is (1.5, −12.25).

Sources

Anirban KunduBuilt and reviewed by Anirban Kundu, Creator & Editor · M.Sc Physics, 20 years teaching science

Last reviewed: 2026-11-05 · Editorial policy · How we build and check calculators