Skip to content
Language:en

Quadratic equation solver

Solve ax² + bx + c = 0: discriminant, real or complex roots and the vertex of the parabola.

Runs entirely in your browser. Your files never leave your device.

About this tool

Enter the three coefficients of ax² + bx + c = 0 and the solver gives the roots straight away. It first computes the discriminant, b² − 4ac, whose sign tells how many solutions there are: two real roots when it is positive, one double root when it is zero, and two complex conjugate roots when it is negative.

The vertex of the parabola is shown too, the lowest or highest point of the curve, handy for optimisation problems and for sketching the graph. If a is zero the equation is only linear, and the solver says so and returns its single solution. Decimals and negative coefficients are welcome, and the results keep six decimals.

How it works

  1. Type a, b and c.
  2. Read the discriminant and the roots.
  3. Use the vertex to sketch the parabola.

Roots: x = (−b ± √Δ) ÷ 2a with Δ = b² − 4ac. Vertex: x = −b ÷ 2a, y = c − b² ÷ 4a.

Worked example

x² − 5x + 6 = 0: the discriminant is 25 − 24 = 1, positive, so there are two real roots, x = 2 and x = 3, and the vertex is at (2.5, −0.25).

Physics homework: a ball thrown upward at 20 m/s from 1.5 m follows h = −4.9t² + 20t + 1.5. Enter a = −4.9, b = 20, c = 1.5: the positive root says it lands after about 4.16 s, and the vertex says it peaks at about 21.9 m after 2.04 s.

Good to know

  • Write every missing term as 0: x² − 5 = 0 is a = 1, b = 0, c = −5.
  • The two roots add up to −b/a and multiply to c/a, a quick check of any answer.
  • A negative discriminant means the parabola never crosses the x-axis: the roots are complex.

Frequently asked questions

What does a negative discriminant mean?
The parabola never crosses the x-axis, so there is no real solution. The two solutions are complex numbers, written here as p ± qi.
How do I enter x² − 5 = 0?
Use a = 1, b = 0 and c = −5. Every missing term has a coefficient of zero.
Can I check the factorized form?
Yes. With roots x1 and x2, the equation equals a(x − x1)(x − x2). For x² − 3x + 2, that is (x − 1)(x − 2).