Home › Math & Everyday › Quadratic Equation

Quadratic Equation Solver

Solve ax² + bx + c = 0 — with real or complex roots.

Root x₁
–
Root x₂
–
Discriminant
–
Vertex
–

The quadratic formula, solved instantly

A quadratic equation has the form ax² + bx + c = 0, where a is not zero. Its graph is a parabola, and the solutions (also called roots or zeros) are the points where the parabola crosses the x-axis. This solver plugs your values for a, b and c into the quadratic formula and returns both roots, including complex roots when there are no real ones. It also shows the discriminant and the vertex of the parabola.

How to use it

  1. Bring your equation into the form ax² + bx + c = 0.
  2. Enter the coefficients a, b and c. Use 0 for missing terms and negative numbers where needed.
  3. Press Solve and read x₁, x₂, the discriminant and the vertex.

The quadratic formula

  • x = (−b ± √(b² − 4ac)) ÷ (2a)
  • Discriminant: D = b² − 4ac
  • Vertex: x = −b ÷ (2a), y = c − b² ÷ (4a)

What the discriminant tells you

  • D > 0: two different real roots. The parabola crosses the x-axis twice.
  • D = 0: one real root (a double root). The parabola touches the x-axis at its vertex.
  • D < 0: no real roots, but two complex conjugate roots. The parabola does not reach the x-axis.

Worked example

For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6. The discriminant is 25 − 24 = 1. The roots are (5 ± 1) ÷ 2, so x₁ = 3 and x₂ = 2. The vertex is at (2.5 | −0.25).

For x² + 2x + 5 = 0, the discriminant is 4 − 20 = −16. The roots are complex: x = −1 ± 2i.

Rewriting an equation

If your equation looks different, rearrange it first. 2x² = 8x − 6 becomes 2x² − 8x + 6 = 0, so a = 2, b = −8, c = 6. If a = 0, the equation is linear, not quadratic, and the formula does not apply.

Frequently asked questions

What does a negative discriminant mean?

The parabola does not cross the x-axis. There are no real roots, only two complex ones.

Why can a not be zero?

With a = 0 the x² term disappears and the equation becomes linear: bx + c = 0, with the single solution x = −c ÷ b.

Is this the same as the p-q formula?

Yes, in effect. The p-q formula is the quadratic formula for equations where a = 1, and both give the same roots.

Is my data stored or sent anywhere?

No. The calculation runs entirely in your browser. Nothing you enter is saved, tracked or sent to a server.