Skip to content
SnapCalculations

Quadratic Formula Calculator

Enter a, b and c from ax² + bx + c = 0 to find both roots, their exact simplified form, the discriminant and the vertex of the parabola.

Solves ax² + bx + c = 0. Use negative numbers for minus signs.

Solutions

x = 2, 1

Two real roots of x² − 3x + 2 = 0

x₁
2
x₂
1
Exact form
2, 1
Discriminant (b² − 4ac)
1
Vertex
(1.5, -0.25)
Axis of symmetry
x = 1.5

Step-by-step solution

Worked out with your numbers. Change any value above and the steps update.

  1. 1

    Identify a, b and c in ax² + bx + c = 0

    a = 1, b = -3, c = 2

  2. 2

    Discriminant: D = b² − 4ac

    (-3)² − 4 × 1 × 2 = 1

  3. 3

    D > 0, so there are two real roots. Square root of D

    √1 = 1

  4. 4

    Exact form

    x = (−b ± √D) ÷ 2a, simplified = 2, 1

  5. 5

    x₁ = (−b + √D) ÷ 2a

    (3 + 1) ÷ 2 = 2

  6. 6

    x₂ = (−b − √D) ÷ 2a

    (3 − 1) ÷ 2 = 1

How it works

  • The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a.
  • The discriminant D = b² − 4ac tells you the type of answer: D > 0 gives two real roots, D = 0 one repeated root, and D < 0 two complex roots.
  • When a, b and c are whole numbers, the roots are also shown exactly, for example (2 ± √10)/3, with the square root and fraction simplified.
  • The vertex of the parabola is at x = −b ÷ 2a, which is also the axis of symmetry.

Frequently asked questions

What if a is 0?

Then the equation is linear (bx + c = 0), not quadratic, and its single solution is x = −c ÷ b.

What does a negative discriminant mean?

There are no real solutions: the parabola never crosses the x-axis. The two roots are complex numbers of the form p ± qi.

How do I enter x² − 5 = 0?

Use a = 1, b = 0 and c = −5. Any missing term has a coefficient of 0.

Results are estimates for general information and are not financial, medical or professional advice.