The Quadratic Formula
Use the quadratic formula to solve any quadratic equation, substitute a, b and c with their signs, and simplify exact and decimal answers.
Welcome back!
Step 1 of 11Learn
One formula for every quadratic
If you complete the square on the general equation ax2 + bx + c = 0, carrying the letters all the way through, you get a formula that solves every quadratic equation:
x = (−b ± √(b2 − 4ac)) / (2a)
No factoring luck required. Just identify a, b and c, substitute and simplify.
Example: 2x2 + 3x − 2 = 0, with a = 2, b = 3, c = −2.
- b2 − 4ac = 32 − 4(2)(−2) = 9 + 16 = 25
- x = (−3 ± √25) / (2 × 2) = (−3 ± 5) / 4
- x = 2/4 = 1/2, or x = −8/4 = −2
Example that doesn't factor: x2 − 4x − 1 = 0, with a = 1, b = −4, c = −1.
- b2 − 4ac = 16 − 4(1)(−1) = 16 + 4 = 20
- x = (4 ± √20) / 2 = (4 ± 2√5) / 2 = 2 ± √5
- As decimals: about 4.24 and −0.24
The formula has been known in some form for more than a thousand years; mathematicians in Babylon, India and the Islamic world solved quadratic problems with equivalent methods long before modern algebra notation existed.
Step 2 of 11Practice · Diagram
Anatomy of the quadratic formula
Which part decides how many real solutions there are?
Tap the shape that answers the question, then press Check.
- x = (−b ± √(b² − 4ac)) / 2a
- −b
The opposite of b. If b = −5, this is +5.
- ±
One solution with +, one with −.
- b² − 4ac
The discriminant, under the square root.
- 2a
Divides the whole numerator, not just the root.
Step 3 of 11Try the calculator
Quadratic formula solver
Enter a, b and c for ax2 + bx + c = 0. The calculator shows the discriminant and both solutions. If the discriminant is negative, the solutions are not real numbers and the outputs will not show a value. Try 2, 3, −2, then 1, −4, −1.
- Discriminant b² − 4ac
- 25
- x₁ = (−b + √(b² − 4ac)) / 2a
- 0.5
- x₂ = (−b − √(b² − 4ac)) / 2a
- -2
- Vertex x = −b/2a (midpoint of the solutions)
- -0.75
Step 4 of 11Learn
Where the mistakes happen
The formula is reliable, but substituting into it is where sign errors breed. Three habits prevent almost all of them:
- Write the equation in standard form first and list a, b and c with their signs. For 3x2 = 5x + 2, rewrite as 3x2 − 5x − 2 = 0, so a = 3, b = −5, c = −2.
- Use parentheses when substituting negatives. −b with b = −5 is −(−5) = 5. And b2 is (−5)2 = 25, never −25.
- Divide the whole numerator by 2a, not just the square root. The fraction bar extends under −b too.
For 3x2 − 5x − 2 = 0:
- b2 − 4ac = (−5)2 − 4(3)(−2) = 25 + 24 = 49
- x = (5 ± 7) / 6
- x = 12/6 = 2 or x = −2/6 = −1/3
Notice 49 is a perfect square, so the roots are rational and the equation could have been factored: (3x + 1)(x − 2) = 0.
When simplifying an exact answer like (6 ± 2√3)/4, divide every term by a common factor: (3 ± √3)/2. Dividing only the 6 by 2, giving 3 ± 2√3/4, is a frequent slip.
Step 5 of 11Practice · Spot the mistake
Noah used the quadratic formula on x2 − 5x + 6 = 0. Tap the first line with an error.
Step 6 of 11Compare
Common slips with the formula
| Aspect | Slip | Correct |
|---|---|---|
| b = −5, so −b is… | −5 | +5 |
| b = −5, so b² is… | −25 | 25 (use brackets: (−5)²) |
| Dividing by 2a | Only the square root | The whole numerator |
| Before starting | Read a, b, c from 3x² = 5x + 2 | Rewrite as 3x² − 5x − 2 = 0 first |
Step 7 of 11Practice · Work it out
Solve 3x2 − 5x − 2 = 0 with the quadratic formula. What is the larger solution?
Step 8 of 11Practice · Fill in the blanks
Fill in the blanks
For x2 − 6x + 4 = 0, a = 1, b = and c = , so the discriminant is b2 − 4ac = .
Step 9 of 11Note
Step 10 of 11Practice · What would you do?
What would you do?
Lena needs to solve 4x2 + 4x − 7 = 0 for a design project and wants decimals. She tries factoring for a few minutes with no luck. What should she do?
Step 11 of 11Practice · Work it out
Solve x2 + 2x − 5 = 0. Give the positive solution to two decimal places.
Lesson complete!