Quadratic Formula Calculator
Enter the three coefficients a, b and c to solve ax² + bx + c = 0. Get both real roots, or the complex pair when the parabola never crosses the x-axis, plus the vertex.
On-screen number pad
Step-by-step proofCheck by hand
How the quadratic formula works
Any equation of the form ax² + bx + c = 0 (with a not zero) can be solved directly with the quadratic formula, which comes from completing the square on the general equation. The discriminant, the part under the square root, decides how many real roots there are before the rest of the formula is even evaluated: positive gives two real roots, zero gives one (a repeated root), and negative gives no real roots — the parabola never touches the x-axis, and the two roots form a complex-conjugate pair instead.
The formula
Worked example
x² − 5x + 6 = 0: discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1, so x = (5 ± 1) / 2, giving x = 3 and x = 2.
Frequently asked questions
What does the discriminant tell you?
What if a is zero?
How is the vertex related to the roots?
- Standard quadratic formula and discriminant — general published mathematics.