Quadratic Formula Calculator

Enter a, b and c from ax² + bx + c = 0 to get both roots (real or complex) in exact and decimal form, the discriminant, vertex and axis of symmetry.

ax² + bx + c = 0

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the quadratic calculator

Rewrite your equation in standard form, ax² + bx + c = 0, then enter a, b and c. Include signs: for x² − 5x + 6 = 0, a = 1, b = −5, c = 6. Missing terms are 0 (for 3x² − 12 = 0, b = 0).

The quadratic formula

x = (−b ± √(b² − 4ac)) ÷ 2a

Example: 2x² + 4x − 3 = 0, so a = 2, b = 4, c = −3.

  1. Discriminant: b² − 4ac = 16 − 4(2)(−3) = 16 + 24 = 40
  2. √40 = √(4 × 10) = 2√10
  3. x = (−4 ± 2√10) ÷ 4 = (−2 ± √10) ÷ 2
  4. Decimal: x ≈ 0.581 or x ≈ −2.581

What the discriminant tells you

b² − 4ac Roots Graph
Positive Two different real roots Crosses the x-axis twice
Zero One repeated real root Touches the x-axis at the vertex
Negative Two complex roots (a ± bi) Doesn't touch the x-axis

If the discriminant is a perfect square (with whole-number a, b, c), the roots are rational and the quadratic factors neatly.

Worked examples

Equation Discriminant Roots
x² − 5x + 6 = 0 1 x = 3, x = 2; factors as (x − 3)(x − 2)
x² − 4x + 4 = 0 0 x = 2 (repeated)
2x² + 4x − 3 = 0 40 x = (−2 ± √10) ÷ 2
x² − 8 = 0 32 x = ±2√2
x² + 2x + 5 = 0 −16 x = −1 ± 2i

Vertex and axis of symmetry

The parabola's turning point is at x = −b ÷ 2a; plug that x back in for the y-coordinate. For 2x² + 4x − 3, the vertex is at x = −1, y = −5. If a > 0 the parabola opens up and the vertex is a minimum; if a < 0 it opens down and the vertex is a maximum. Vertex form is y = a(x − h)² + k, here y = 2(x + 1)² − 5.

Other ways to solve

  • Factoring: fastest when the roots are whole numbers or simple fractions.
  • Completing the square: rewrite in vertex form, then take square roots. It's how the quadratic formula is derived.
  • Graphing: the x-intercepts are the real roots.

The formula always works, which is why it's the fallback when factoring doesn't.

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, which solves any equation of the form ax² + bx + c = 0 with a ≠ 0.

What does it mean if the discriminant is negative?

There are no real solutions; the two roots are complex numbers, and the parabola never crosses the x-axis.

How do I find the vertex of a quadratic?

x = −b ÷ 2a gives the x-coordinate; substitute it into the equation for y.

What if a = 0?

Then it isn't quadratic. The equation bx + c = 0 is linear, with x = −c ÷ b.