Quadratic Equation Calculator

Solve ax² + bx + c = 0 for its real roots and identify equations with complex roots.

Inputs

Result

Formula and assumptions

Compute the discriminant b² − 4ac. For two real roots, compute one root using the cancellation-resistant quadratic formula and the other using their product.

Worked example

Coefficient a = 1, Coefficient b = -5, Coefficient c = 6. Result = 2 and 3.

Related tool Slope Calculator.

What assumptions affect this result?

Enter a nonzero a. Results are rounded to 10 significant digits. A negative discriminant is identified without displaying complex root values.