Math tool

Quadratic Equation Solver

Enter a, b, and c from ax² + bx + c = 0 to find the roots.

—Discriminant
—Roots

About the Quadratic Equation Solver

The Quadratic Solver finds the roots of an equation of the form ax² + bx + c = 0. Enter the coefficients a, b and c and see the discriminant and the solutions, whether real or complex.

The discriminant b² − 4ac decides the type of roots. If it is positive there are two different real roots, if zero there is one repeated real root, and if negative there are two complex roots, shown with a real part and an imaginary part. The roots are calculated with the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. The coefficient a cannot be zero, otherwise the equation is linear.

How to use it

  1. Enter a, b and c.
  2. Read the discriminant.
  3. Read the roots.
  4. Substitute a root back into the equation to check it.

Tips and good to know

Frequently asked questions

What if a is zero?

The equation is not quadratic; solve it as a linear equation.

What are complex roots?

Roots involving the imaginary unit i, when the parabola does not cross the x-axis.

Can I get exact surds?

The tool gives decimal values.