Skip to content

Quadratic Equation Solver

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

Calculated locally in your browser.

Understanding your result

A positive discriminant gives two real roots, zero gives one repeated root, and a negative value gives a complex conjugate pair.

Formula and method

Roots = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant b² − 4ac determines whether the roots are real and distinct, repeated or complex.

Worked example

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

How to use this tool

  1. Enter the coefficients a, b and c.
  2. Press Solve.

Common mistakes to avoid

  • Setting a = 0, which makes it a linear, not quadratic, equation.

About the Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0, with real or complex roots, plus the discriminant and vertex.

Explore all Mathematics tools

Frequently asked questions

Does it handle complex roots?

Yes. When the discriminant is negative it reports the complex conjugate roots.