Free online quadratic equation solver
A quadratic equation has the form ax² + bx + c = 0. This solver finds all roots using the quadratic formula and tells you whether they are real, repeated, or complex.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
How to use
- Enter a, b, and c — the coefficients of your equation in the form ax² + bx + c = 0.
- The solver updates the equation preview and computes roots immediately.
- Read the discriminant and roots below the form.
The quadratic formula
x = (-b ± sqrt(b² - 4ac)) / (2a)
Variables:
- a — coefficient of x² (must be non-zero)
- b — coefficient of x
- c — constant term
- Δ (discriminant) = b² − 4ac
Solution types
| Discriminant | Roots |
|---|---|
| Δ > 0 | Two distinct real roots |
| Δ = 0 | One repeated real root |
| Δ < 0 | Two complex conjugate roots |
Worked examples
Two real roots: x² − 5x + 6 = 0 (a=1, b=−5, c=6) Δ = 25 − 24 = 1 → x₁ = 3, x₂ = 2
One real root: x² − 4x + 4 = 0 (a=1, b=−4, c=4) Δ = 16 − 16 = 0 → x = 2
Complex roots: x² + x + 1 = 0 (a=1, b=1, c=1) Δ = 1 − 4 = −3 → x = −0.5 ± 0.866025i
Notes
- Results are rounded to six decimal places to avoid floating-point noise.
- Complex roots always come in conjugate pairs (a + bi and a − bi).
- If a = 0, the equation degenerates to a linear equation; use the constant and b values to solve it directly: x = −c / b.
Frequently asked
What is the quadratic formula?
What does the discriminant tell you?
What happens when a = 0?
How are complex roots displayed?
Can I solve equations with negative coefficients?
Related calculators
- Fraction calculator
Add, subtract, multiply, and divide fractions with automatic simplification.
- Percentage change calculator
Find how much a value changed, or calculate a new value from a percent.
- Average calculator
Mean, median, mode, range, and more for any list of numbers.
- Scientific calculator
Full scientific calculator with trig, logs, memory, and keyboard support.