Quadratic Formula Calculator
Solve ax² + bx + c = 0. See the discriminant, both roots (real or complex) and the vertex. Free, with worked examples.
The Quadratic Formula
For any equation ax² + bx + c = 0 (with a ≠ 0), the solutions are:
x = (−b ± √(b² − 4ac)) ÷ 2a
The part under the square root, b² − 4ac, is the discriminant. It tells you how many real solutions there are before you work anything else out.
What the Discriminant Tells You
| Discriminant | Roots | Graph |
|---|---|---|
| Greater than 0 | Two different real roots | Crosses the x-axis twice |
| Equal to 0 | One repeated real root | Touches the x-axis once |
| Less than 0 | Two complex roots | Never crosses the x-axis |
Worked Example: x² − 5x + 6 = 0
Here a = 1, b = −5 and c = 6.
Discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1.
x = (5 ± √1) ÷ 2, so x = 3 or x = 2.
Check: 3² − 5(3) + 6 = 0 and 2² − 5(2) + 6 = 0.
Solved Examples
| Equation | a, b, c | Roots |
|---|---|---|
| x² − 3x + 2 = 0 | 1, −3, 2 | 1 and 2 |
| x² − 4 = 0 | 1, 0, −4 | 2 and −2 |
| x² + 2x + 1 = 0 | 1, 2, 1 | −1 (repeated) |
| 2x² − 7x + 3 = 0 | 2, −7, 3 | 3 and 0.5 |
| x² + x + 1 = 0 | 1, 1, 1 | −0.5 ± 0.866i |
| x² − 6x + 9 = 0 | 1, −6, 9 | 3 (repeated) |
Frequently Asked Questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any equation of the form ax² + bx + c = 0.
How do you use the quadratic formula?
Put the equation in the form ax² + bx + c = 0, read off a, b and c, work out the discriminant b² − 4ac, then substitute into the formula to get the two solutions.
What if the discriminant is negative?
The equation has no real solutions. It has two complex roots of the form p ± qi, which this calculator shows.
Can a be zero?
No. If a = 0 the equation is linear, not quadratic, and has a single solution x = −c ÷ b.
How do I find the vertex of a parabola?
The vertex is at x = −b ÷ 2a. Put that x back into the equation to get the y value. The calculator shows both.
Related
Cite This Calculator
Reference this calculator on your website or in your work using the citation below:
HTML Citation Code:
<p>Calculator: <a href="https://onlinecalculator.co.uk/math/quadratic-formula-calculator" target="_blank">Quadratic Formula Calculator</a> - OnlineCalculator.co.uk</p>APA Style Citation:
OnlineCalculator.co.uk. (2025). Quadratic Formula Calculator. Retrieved from https://onlinecalculator.co.uk/math/quadratic-formula-calculatorNote: This calculator is free to use and reference. No permission required for educational or commercial citation.