AIForeverThing
All Tools › Math Calculators

Quadratic Equation Solver

Compute the discriminant and both roots of ax² + bx + c = 0 in one click.

Enter coefficients

How it works

A quadratic equation ax² + bx + c = 0 is solved with the quadratic formula x = (−b ± √D) / (2a), where the discriminant D = b² − 4ac determines root nature. If D > 0 you get two distinct real roots, D = 0 gives one repeated root, and D < 0 produces a pair of complex conjugate roots a ± bi. The tool computes D first, classifies the case, and evaluates the formula using exact arithmetic where possible.

Related tools

Frequently asked questions

What is the discriminant of a quadratic equation?

The discriminant D = b² − 4ac tells you the nature of the roots. If D > 0 there are two distinct real roots, if D = 0 there is one repeated real root, and if D < 0 the equation has two complex (imaginary) roots.

How do you solve ax² + bx + c = 0?

Use the quadratic formula: x = (−b ± √D) / (2a), where D = b² − 4ac. First compute D, then apply the formula to find both roots.

Can this calculator handle complex roots?

Yes. When the discriminant is negative, the calculator returns the complex roots in the form a ± bi, showing the real and imaginary parts clearly.