Quadratic Equation Solver

Solve ax² + bx + c = 0 with steps and a graph

Solve any quadratic equation ax² + bx + c = 0 - real or complex roots - with the discriminant, vertex, axis of symmetry, steps using the quadratic formula and a graph of the parabola.
Share
Try an example:
Your result will appear here as you type.

About Quadratic Equation Solver

Formula

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

Worked examples

x² − 3x + 2 = 0

Discriminant 9 − 8 = 1, so x = (3 ± 1) ÷ 2 = 1 or 2. The vertex is (1.5, −0.25).

x² + 2x + 5 = 0

Discriminant −16 is negative: x = −1 ± 2i.

How it works

  1. The discriminant b² − 4ac tells you how many real roots there are.
  2. Roots come from the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a.
  3. The vertex is at x = −b ÷ 2a.

What you need

  • The coefficients a (not zero), b and c.

Tips

  • Move every term to one side first so the equation equals 0.

Limitations

  • Results are rounded to 10 significant digits.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Discriminant
b² − 4ac: positive = two real roots, zero = one, negative = two complex roots.
Vertex
The turning point of the parabola.

Frequently asked questions

What if a is 0?+

Then it is a linear equation, bx + c = 0, with the single solution x = −c ÷ b.

Was this calculator helpful?