Quadratic equation solver
How this solver works
Every quadratic equation can be written as ax² + bx + c = 0 with a not equal to zero. The solver uses the quadratic formula:
x = (−b ± √(b² − 4ac)) / (2a)
The part under the square root, b² − 4ac, is called the discriminant. It tells you how many solutions to expect before you finish the calculation.
| Discriminant | Solutions | Graph |
|---|---|---|
| Positive | Two different real solutions | The parabola crosses the x-axis twice |
| Zero | One repeated real solution | The parabola touches the x-axis once |
| Negative | Two complex solutions | The parabola never reaches the x-axis |
Before you type the numbers in
- Move everything to one side. For x² = 5x − 6, rewrite it as x² − 5x + 6 = 0, so a = 1, b = −5, c = 6.
- Keep the signs. In 2x² − 3x − 2 = 0, b is −3 and c is −2, not 3 and 2.
- A missing term is a zero. x² − 9 = 0 has b = 0.
Want to do it by hand?
When the numbers are friendly, factoring is faster than the formula. See how to solve quadratic equations by factoring for the method and worked examples.