Quadratic Formula Calculator
Solve any quadratic equation from its three coefficients.
About the quadratic formula
Quadratic formula examples
| Equation | Roots | Discriminant |
|---|---|---|
| x² - 5x + 6 = 0 | x = 3 and x = 2 | D = 1, so there are two real roots |
| x² + 2x + 1 = 0 | x = -1 | D = 0, so the root is repeated |
| x² + 1 = 0 | x = i and x = -i | D = -4, so the roots are complex |
How to use the quadratic formula
- Rewrite the equation in the form ax squared plus bx plus c equals zero.
- Enter coefficient a, including its sign, and ensure it is not zero.
- Enter coefficient b and constant c, using zero for any missing term.
- Select Solve quadratic equation and review the discriminant and roots.
Frequently asked questions
What is the quadratic formula?
It is x equals negative b plus or minus the square root of b squared minus 4ac, divided by 2a. It solves every quadratic equation written in standard form.
What does the discriminant tell me?
Its sign determines whether the equation has two real roots, one repeated real root, or two complex roots. Its exact value also controls the distance between the roots.
Why can coefficient a not be zero?
If a is zero, the squared term disappears and the equation becomes linear. The quadratic formula would also require division by 2a, which would then be division by zero.
How do I enter a missing term?
Use zero for the coefficient of that term. For x squared plus 9 equals zero, enter a as 1, b as 0, and c as 9.
Can the calculator show complex roots?
Yes, a negative discriminant produces a conjugate pair written with i. The real parts match and the imaginary parts have opposite signs.