Calculator Need
Categories

Math Calculators

Quadratic Equation Solver

Enter a, b and c for ax² + bx + c = 0 to get the roots, the discriminant and the full working.

x = (−b ± √(b² − 4ac)) ÷ 2a. Discriminant D = b² − 4ac: D > 0 gives two real roots, D = 0 gives one repeated root, D < 0 gives two complex roots.

How to use the quadratic equation

  1. Enter a, b and c from your equation ax² + bx + c = 0 (a cannot be 0).
  2. Press “Solve” to see the discriminant and the roots.
  3. Read the working to check each step of the quadratic formula.

Quadratic equation example

2x² − 4x − 6 = 0: a = 2, b = −4, c = −6. The discriminant is b² − 4ac = 16 + 48 = 64, so x = (4 ± 8) ÷ 4, giving x = 3 and x = −1.

What the discriminant tells you

  • Positive: two different real roots.
  • Zero: one repeated root (the graph touches the x-axis).
  • Negative: no real roots, two complex ones.

Quadratic equation: common questions

How are the roots worked out?
With the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a. For example, x² − 5x + 6 = 0 gives x = (5 ± √1) ÷ 2, so x = 2 or x = 3.
What does the discriminant tell me?
D = b² − 4ac. If D > 0 there are two different real roots; if D = 0 there is one repeated root; if D < 0 the roots are complex, shown as a ± bi.
What if a is 0?
The equation is no longer quadratic — it becomes the linear equation bx + c = 0, with x = −c ÷ b. Enter a non-zero value for a here.
Is my data stored?
No. The calculation runs in your browser.
Can I solve it by factorising instead?
When the roots are whole numbers, yes: 2x² − 4x − 6 = 2(x − 3)(x + 1). The formula works for every quadratic.