Skip to content

Quadratic Formula Calculator

Enter a, b and c to solve any quadratic equation, with exact roots, the factored form when it exists, the vertex of the parabola and a full step-by-step solution.

MathUpdated Free · No sign-up

How to use the Quadratic Formula Calculator

  1. Enter a (x² coefficient).
  2. Enter b (x coefficient).
  3. Enter c (constant).
  4. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  5. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

The quadratic formula

Every equation of the form ax² + bx + c = 0 with a ≠ 0 is solved by:

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

The ± gives two solutions, one with + and one with −. The expression under the root, Δ = b² − 4ac, is the discriminant, and its sign tells you what kind of roots to expect before you finish.

Discriminant Roots Graph
Δ > 0 two different real roots crosses the x-axis twice
Δ = 0 one repeated real root touches the x-axis at its vertex
Δ < 0 two complex conjugate roots never meets the x-axis

Worked example

Solve 2x² − 4x − 6 = 0. Here a = 2, b = −4, c = −6. Δ = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64, and √64 = 8. So x = (4 ± 8) ÷ 4, giving x₁ = 3 and x₂ = −1. Because the discriminant is a perfect square, the roots are rational and the quadratic factors: 2(x + 1)(x − 3) = 0.

Exact answers

When the discriminant is not a perfect square, the calculator simplifies the root. For x² − 2x − 1 = 0, Δ = 8 and √8 = 2√2, so x = (2 ± 2√2) ÷ 2 = 1 ± √2, about 2.414 and −0.414. For complex roots it writes the imaginary part with i = √−1: x² + 2x + 5 = 0 has Δ = −16 and roots −1 ± 2i.

Vertex and symmetry

The graph of y = ax² + bx + c is a parabola. Its turning point, the vertex, is at x = −b ÷ (2a), and that vertical line is the axis of symmetry: the two roots always sit the same distance either side of it. The parabola opens upward when a > 0 (the vertex is a minimum) and downward when a < 0. The chart under each result plots the curve around the vertex.

Quick checks

  • The roots add up to −b/a and multiply to c/a (Vieta’s formulas). For the example, 3 + (−1) = 2 = 4/2 and 3 × (−1) = −3 = −6/2.
  • If b = 0, skip the formula: x = ±√(−c/a).
  • If c = 0, factor out x: x(ax + b) = 0, so x = 0 or x = −b/a.

Frequently asked questions

What does the discriminant tell you?

Its sign gives the number and type of roots: positive means two real roots, zero means one repeated root, and negative means two complex roots with no real solution.

Can a quadratic have no solution?

It always has two solutions counting multiplicity, but if the discriminant is negative they are complex numbers. There is then no real x that makes the equation true, and the parabola never crosses the x-axis.

When can a quadratic be factored?

With whole-number coefficients, it factors over the rationals exactly when the discriminant is a perfect square. The calculator then shows the factored form.

What if a is zero?

Then there is no x² term and the equation is linear, bx + c = 0, with the single solution x = −c/b.