Quadratic Equation Calculator

Solve ax² + bx + c = 0 with the quadratic formula, including complex roots, the discriminant and the vertex.

The quadratic formula

Any equation of the form ax² + bx + c = 0 (with a ≠ 0) can be solved with

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

The ± means there are usually two answers: one using + and one using −.

Worked example

Solve x² − 3x − 10 = 0. Here a = 1, b = −3 and c = −10.

  1. Discriminant: b² − 4ac = 9 + 40 = 49.
  2. √49 = 7.
  3. x = (3 + 7) ÷ 2 = 5 and x = (3 − 7) ÷ 2 = −2.

Check: 5² − 3 × 5 − 10 = 25 − 15 − 10 = 0. ✓ The factored form is (x − 5)(x + 2) = 0.

What the discriminant tells you

  • Positive: two different real roots. The parabola crosses the x-axis twice.
  • Zero: one repeated real root. The parabola just touches the x-axis at its vertex.
  • Negative: no real roots, but two complex roots of the form p ± qi. The parabola never meets the x-axis.

The vertex

The graph of a quadratic is a parabola. Its turning point, the vertex, sits at x = −b ÷ 2a. For the example, x = 1.5 and y = 1.5² − 3(1.5) − 10 = −12.25. Because a is positive, the parabola opens upwards and the vertex is the minimum point.

Frequently asked questions

What if a is 0?

Then the equation is not quadratic but linear (bx + c = 0), with the single solution x = −c ÷ b. The calculator handles that case too.

What are complex roots?

When the discriminant is negative, the square root in the formula is of a negative number. The roots are then written using i = √−1, for example 1 ± 2i.

Should I factorise or use the formula?

Factorising is faster when the roots are whole numbers. The formula always works, which is why it is the safe choice in exams.

Last reviewed: