A quadratic equation has the form ax² + bx + c = 0, and you can always solve it with the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ (2a). When the expression factors neatly, factoring is faster.
Standard form first
Before using any method, move every term to one side so the equation reads ax² + bx + c = 0, with a not equal to 0. For example, x² = 5x − 6 becomes x² − 5x + 6 = 0, so a = 1, b = −5 and c = 6.
Method 1: factoring
If the quadratic can be written as a product of two brackets, each bracket gives a solution, because a product is zero only when one of its factors is zero.
Example 1. Solve x² − 5x + 6 = 0.
- Find two numbers that multiply to c = 6 and add to b = −5. They are −2 and −3.
- Write the factors: (x − 2)(x − 3) = 0.
- Set each factor to zero: x = 2 or x = 3.
Check: 2² − 5(2) + 6 = 4 − 10 + 6 = 0.
If the factor pairs of c are hard to spot, the prime factorization calculator helps you list them.
Method 2: square roots
When there is no x term (b = 0), isolate x² and take the square root of both sides. Remember both the positive and the negative root.
Example 2. 3x² − 48 = 0 gives x² = 16, so x = 4 or x = −4.
Method 3: the quadratic formula
This works for every quadratic. The ± means you calculate twice, once with plus and once with minus.
Example 3. Solve 2x² + 3x − 5 = 0. Here a = 2, b = 3, c = −5.
- b² − 4ac = 3² − 4(2)(−5) = 9 + 40 = 49.
- √49 = 7.
- x = (−3 + 7) ÷ 4 = 1, or x = (−3 − 7) ÷ 4 = −2.5.
Check x = −2.5: 2(6.25) + 3(−2.5) − 5 = 12.5 − 7.5 − 5 = 0.
Example 4. Solve x² − 4x + 1 = 0. Here a = 1, b = −4, c = 1.
- b² − 4ac = 16 − 4 = 12.
- √12 ≈ 3.464.
- x = (4 + 3.464) ÷ 2 ≈ 3.732, or x = (4 − 3.464) ÷ 2 ≈ 0.268.
In exact form the answers are 2 + √3 and 2 − √3. To check your own work, enter a, b and c into the quadratic equation calculator.
The discriminant
The quantity under the square root, D = b² − 4ac, is called the discriminant. It tells you how many solutions to expect before you finish the calculation.
| Discriminant | Solutions | Graph |
|---|---|---|
| D > 0 | Two different real solutions | Parabola crosses the x-axis twice |
| D = 0 | One repeated real solution | Parabola touches the x-axis at its vertex |
| D < 0 | No real solutions (two complex ones) | Parabola never reaches the x-axis |
- x² − 6x + 9 = 0 has D = 36 − 36 = 0, so the only solution is x = 6 ÷ 2 = 3.
- x² + 2x + 5 = 0 has D = 4 − 20 = −16. There are no real solutions. With complex numbers, √(−16) = 4i, so x = (−2 ± 4i) ÷ 2 = −1 ± 2i.
Method 4: completing the square
This method rewrites the equation as a squared bracket equal to a number.
Example 5. Solve x² + 6x − 7 = 0.
- Move the constant: x² + 6x = 7.
- Take half of b (which is 3), square it (9), and add it to both sides: x² + 6x + 9 = 16.
- Write the left side as a square: (x + 3)² = 16.
- Take square roots: x + 3 = 4 or x + 3 = −4, so x = 1 or x = −7.
Common mistakes
- Not setting the equation to zero. Factoring x² − 5x = −6 as x(x − 5) = −6 tells you nothing. One side must be 0.
- Losing the sign of b. If b = −4, then −b = +4, and b² = 16, not −16.
- Dividing only part of the numerator. The whole expression −b ± √D is divided by 2a, not just the square root.
- Forgetting the ±. x² = 16 has two solutions, 4 and −4.
- Dividing both sides by x. Solving x² = 5x by dividing by x gives only x = 5 and loses x = 0. Rewrite it as x(x − 5) = 0 instead.
Run the numbers yourself
Common questions
What is the quadratic formula?
For ax² + bx + c = 0, the solutions are x = (−b ± √(b² − 4ac)) ÷ (2a). It works for every quadratic equation.
What does the discriminant tell you?
The discriminant b² − 4ac shows the number of real solutions: two if it is positive, one if it is zero, and none if it is negative.
When should I factor instead of using the formula?
Factor when you can quickly find two numbers that multiply to c and add to b, with a equal to 1 or small. Otherwise the quadratic formula is more reliable.