Quadratic Formula Calculator: Solve ax² + bx + c = 0
By FindMySum · Last reviewed
A quadratic formula calculator solves any equation of the form ax² + bx + c = 0, where a is not zero. The quadratic formula, x = (−b ± √(b² − 4ac)) ÷ 2a, gives both solutions at once; the ± is the reason a quadratic usually has two. This page shows the roots exactly where it can (fractions and square roots, not just decimals), the discriminant, and the vertex of the parabola y = ax² + bx + c.
Worked example
Solve x² − 5x + 6 = 0, so a = 1, b = −5 and c = 6.
- Discriminant: b² − 4ac = (−5)² − 4 × 1 × 6 = 25 − 24 = 1.
- Square root: √1 = 1.
- Roots: x = (5 ± 1) ÷ 2, so x = 3 or x = 2.
- Vertex: x = −b ÷ 2a = 2.5, and y = 2.5² − 5 × 2.5 + 6 = −0.25, so the vertex is (2.5, −0.25).
Check by substituting: 3² − 5 × 3 + 6 = 0 and 2² − 5 × 2 + 6 = 0. The vertex sits halfway between the two roots, which is always true for a parabola.
Avoiding sign errors
Most wrong answers come from the signs of b and c. Here b is −5, so −b is +5, and b² is +25 whatever the sign of b. Write the equation in standard form before reading off a, b and c, and keep their signs.
The same equation in vertex form is y = (x − 2.5)² − 0.25, which is the completed square. For straight lines, slopes and the other modes, see the slope and line calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.