Quadratic Equation

Solve a quadratic equation and report its discriminant and real or complex roots.

How this calculator works

Enter coefficient a, coefficient b, coefficient c. Select Calculate to apply the displayed formula and review the labeled results.

Formula / method

x = (−b ± √(b² − 4ac)) ÷ 2a

Worked example

x² − 3x + 2 = 0 has discriminant 1 and roots 2 and 1.

Assumptions and limitations

Coefficient a is non-zero and all coefficients are real numbers.

Results are rounded for display and very large coefficients can reduce floating-point precision.