Free tool

Quadratic equation solver

Solves ax² + bx + c = 0 and shows every step. Works for real and complex solutions.

x² + x + = 0

How this solver works

Every quadratic equation can be written as ax² + bx + c = 0 with a not equal to zero. The solver uses the quadratic formula:

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

The part under the square root, b² − 4ac, is called the discriminant. It tells you how many solutions to expect before you finish the calculation.

DiscriminantSolutionsGraph
PositiveTwo different real solutionsThe parabola crosses the x-axis twice
ZeroOne repeated real solutionThe parabola touches the x-axis once
NegativeTwo complex solutionsThe parabola never reaches the x-axis

Before you type the numbers in

  • Move everything to one side. For x² = 5x − 6, rewrite it as x² − 5x + 6 = 0, so a = 1, b = −5, c = 6.
  • Keep the signs. In 2x² − 3x − 2 = 0, b is −3 and c is −2, not 3 and 2.
  • A missing term is a zero. x² − 9 = 0 has b = 0.

Want to do it by hand?

When the numbers are friendly, factoring is faster than the formula. See how to solve quadratic equations by factoring for the method and worked examples.