Quadratic equation solver
Enter a quadratic in any form, or just a, b and c. Switch between factoring, completing the square and the quadratic formula to compare methods on the same problem.
Drag a, b and c and watch the roots move
- Discriminant b² − 4ac
- 16
- Real roots
- -1, 3
- Vertex (h, k)
- (1, -4)
Discriminant > 0: the parabola crosses the x-axis twice, so there are two real roots. a > 0 opens it upward.
- y = ax² + bx + c
Three ways to solve a quadratic equation
1. Factoring
Write as a product of two binomials and use the zero-product rule: if then or . For , find two numbers that multiply to 6 and add to −5 (−2 and −3), so .
2. Completing the square
Rewrite the left side as a perfect square by adding to both sides, then take square roots. It’s the method behind vertex form. See it with tiles on the completing the square page.
3. The quadratic formula
It works for every quadratic. The expression under the root, , is the discriminant. Here’s where the formula comes from.
| Method | Best when | Watch out for |
|---|---|---|
| Factoring | Roots are integers or simple fractions | Not every quadratic factors over the integers |
| Square roots | No x term (b = 0), e.g. 3x² = 12 | Forgetting the ± gives only one root |
| Completing the square | a = 1 and b is even; you need vertex form | Add (b/2)² to both sides |
| Quadratic formula | Always works | Sign errors with negative b; use brackets when substituting |