Quadratic Formula Calculator
Enter a, b, and c for ax² + bx + c = 0. You get the discriminant, the steps, and both roots.
Smart Tips
• This page solves ax² + bx + c = 0 only. If a is 0, the equation is not degree 2.
• The discriminant is b² − 4ac. Its sign tells you what kind of roots to expect.
• A positive discriminant gives two real roots. Zero gives one repeated real root.
• A negative discriminant is not left as a square root of a negative. The roots are labeled complex.
The Formula
Must be non-zero
Coefficient of x
The number with no x
b² − 4ac
If D > 0, there are two real roots. If D = 0, there is one repeated real root, and both root lines show that value. If D < 0, the roots are real-part ± imaginary-part i, and the page labels them complex.
Key Insights
Degree 2 only
The formula needs a non-zero a. A linear equation is rejected instead of being forced through the quadratic formula.
Discriminant first
The page computes D before the roots. You can see why the roots are real, repeated, or complex.
Complex roots
When D is negative, √D is not a real number. The page writes p + qi and p − qi, with q positive, and says the roots are complex.
Steps stay visible
Each calculation lists a, b, and c, the discriminant arithmetic, and the substitution into the formula.
Frequently Asked Questions
Note:Degree 2 only. A negative discriminant is labeled as two complex roots, not as a real square root of a negative number. A coefficient a of zero is rejected.