Math calculator

Quadratic Equation Calculator

Solve ax² + bx + c = 0 and show real or complex roots.

Enter your values

Results are calculated in your browser.

How this calculation works

x = (−b ± √(b² − 4ac)) ÷ 2a Use the calculator above to enter your values. Inputs are checked before a result is shown, and calculations run locally in your browser.

Example: x² − 5x + 6 = 0 has roots 2 and 3 Results are rounded for display where needed.

Keep calculating

Related math calculators

All Math Calculators →