Quadratic Equation Solver

Find where a quadratic equals zero. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Write your equation as ax² + bx + c = 0.
  2. Enter a, b and c.
  3. Read the roots, discriminant and vertex.

How it works

The discriminant is D = b² − 4ac. If D > 0 there are two real roots, if D = 0 one repeated root, and if D < 0 two complex roots. The roots are x = (−b ± √D) ÷ 2a, and for D < 0 the real part is −b ÷ 2a with imaginary part ±√(−D) ÷ 2|a|. The vertex is at x = −b ÷ 2a. Arithmetic is exact decimal to 40 digits, shown to 8 decimal places.

Examples

  • x² − 5x + 6 = 0 has roots 3 and 2. x² + 2x + 5 = 0 has roots −1 ± 2i.

Limitations

  • Coefficients must be plain numbers (not fractions or expressions). If a = 0 the equation is treated as a linear equation.
  • Answers are rounded to 8 decimal places, so irrational roots are approximations.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].