Quadratic equation solver
Solve ax² + bx + c = 0: the roots, the discriminant, the factorised form and the vertex.
Rearrange your equation so one side is 0 first. Leave a box blank for 0: x² − 9 = 0 is a = 1, b = 0, c = −9.
The quadratic formula
x = (−b ± √(b² − 4ac)) ÷ 2a. For x² − 5x + 6 = 0, a = 1, b = −5 and c = 6, so b² − 4ac = 25 − 24 = 1 and x = (5 ± 1) ÷ 2, which is 2 or 3. The discriminant, b² − 4ac, tells you how many real roots there are: two if it's positive, one (repeated) if it's zero, and none if it's negative, when the roots are complex numbers.
Examples
| Equation | Discriminant | Roots |
|---|---|---|
| x² − 5x + 6 = 0 | 1 | x = 2 or 3 |
| x² − 9 = 0 | 36 | x = −3 or 3 |
| 2x² − 7x + 3 = 0 | 25 | x = 0.5 or 3 |
| x² + 2x + 1 = 0 | 0 | x = −1 (repeated) |
| x² + x − 1 = 0 | 5 | x = −1.618 or 0.618 |
| x² + 1 = 0 | −4 | x = ±i |
Frequently asked questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) ÷ 2a, for an equation written as ax² + bx + c = 0. The ± gives the two roots.
What does the discriminant tell you?
b² − 4ac: if it's positive there are two real roots, if it's zero there's one repeated root, and if it's negative there are no real roots (the graph doesn't cross the x-axis).
How do you factorise a quadratic?
For x² + bx + c, find two numbers that multiply to c and add to b: for x² − 5x + 6, −2 and −3, so it's (x − 2)(x − 3). The calculator gives the factorised form whenever the roots are whole numbers or fractions.
What is the vertex of a quadratic?
The turning point of its graph (a parabola), at x = −b ÷ 2a. It's a minimum when a is positive and a maximum when a is negative.
What if there are no real roots?
The roots are complex numbers, written with i (the square root of −1). x² + 1 = 0 has roots i and −i.