Quadratic Formula Calculator

Find the real roots of a quadratic equation using the discriminant. Also reports whether there are two, one, or no real solutions.

Inputs

Frequently asked questions

What is the quadratic formula?
For ax² + bx + c = 0, x = (−b ± √(b² − 4ac)) / (2a). The discriminant D = b² − 4ac decides the root count.
What if the discriminant is negative?
No real roots (complex roots exist). This calculator reports the real-root case when D ≥ 0.
Can a be zero?
If a = 0 the equation is not quadratic. Enter a non-zero a, or solve the resulting linear equation separately.
How many roots can I get?
D > 0 → two real roots; D = 0 → one repeated root; D < 0 → no real roots.