The quadratic formula
The quadratic formula solves any equation of the form ax² + bx + c = 0: put in a, b and c, and out come the solutions. It works every time, even when an equation won’t factor.
The formula
The ± means there are usually two answers: one using plus and one using minus. Before you use it, the equation must equal zero, so you can read off a, the coefficient of x²; b, the coefficient of x; and c, the constant.
How to use the quadratic formula
Solve 2x² + 5x − 3 = 0:
- Identify the coefficients: a = 2, b = 5, c = −3.
- Put them in the formula: x = (−5 ± √(5² − 4·2·(−3))) ÷ (2·2).
- Work out the discriminant: 25 + 24 = 49.
- Take the square root: √49 = 7.
- Find both solutions: x = (−5 + 7) ÷ 4 = 1/2, and x = (−5 − 7) ÷ 4 = −3.
Check by putting x = 1/2 back in: 2(1/4) + 5(1/2) − 3 = 1/2 + 5/2 − 3 = 0. It works. You can try your own in the quadratic formula calculator.
The discriminant
The part under the square root, b² − 4ac, is called the discriminant. Its sign tells you how many real solutions there are before you do any more work.
| Discriminant | Solutions | The parabola… |
|---|---|---|
| Positive | Two real solutions | Crosses the x-axis twice |
| Zero | One repeated solution | Touches the x-axis once |
| Negative | No real solutions (two complex) | Doesn’t reach the x-axis |
If the discriminant is a perfect square, the solutions are rational, which means the quadratic could have been factored.
When the discriminant is negative
For x² + 2x + 5 = 0, the discriminant is 4 − 20 = −16. There is no real square root, so the parabola never reaches the x-axis. With complex numbers, √(−16) = 4i, which gives x = (−2 ± 4i) ÷ 2 = −1 ± 2i.
Where the formula comes from
The formula is what you get by completing the square on ax² + bx + c = 0 with letters instead of numbers:
- Divide by a: x² + (b/a)x + c/a = 0.
- Move the constant: x² + (b/a)x = −c/a.
- Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac)/4a².
- Take square roots: x + b/2a = ±√(b² − 4ac)/2a.
- Subtract b/2a: x = (−b ± √(b² − 4ac))/2a.
A shortcut to the vertex
The two solutions sit either side of −b/2a, a distance of √(b² − 4ac)/2a each way. That means x = −b/2a is the axis of symmetry, and the x-coordinate of the vertex. The vertex calculator uses this.
When to use it
| Method | Best when |
|---|---|
| Factoring | The numbers are small and it factors easily |
| Quadratic formula | Anything else: it always works |
| Completing the square | You want vertex form as well |
| Graphing | You want to see the solutions, or estimate them |
Common mistakes
- Forgetting to rearrange to = 0. For x² + 3x = 10, c is −10, not 0.
- Sign errors with −b. If b is −4, then −b is +4.
- Squaring a negative b incorrectly. (−4)² is 16, not −16. Use brackets on your calculator.
- Dividing only part of the top. 2a divides the whole of −b ± √(…), not just the root.
Frequently asked questions
What is the quadratic formula?
How do you remember the quadratic formula?
What does the discriminant tell you?
Does the quadratic formula always work?
What if the answer has a square root in it?
Keep going
Solve your own, with steps.
The method behind the formula.
A parabola’s other useful form.
Why quadratics make parabolas.
The other way to solve.
Tidy up the square root in your answer.
Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.