Quadratic Equation Calculator

x² − 3x + 2 = 0

🔒 Your input is never sent to a server.

How to use

Rearrange your equation into the form ax² + bx + c = 0 and enter a, b and c; the result appears immediately. The equation you entered is shown large at the top, and Reset sets every value to 0. Example: x² − 3x = −2 → x² − 3x + 2 = 0, so a = 1, b = −3, c = 2. Enter 0 for a missing term. Show solution shows the discriminant and quadratic formula working, and Show graph shows the parabola.

Quadratic formula and discriminant

Roots of ax² + bx + c = 0 (a ≠ 0): x = (−b ± √(b² − 4ac)) / 2a

The expression under the root, D = b² − 4ac, is the discriminant.

Discriminant DRoots
D > 0Two distinct real roots
D = 0One repeated (double) root
D < 0Two complex roots (no real roots)
FAQ

What if a is 0?

It is no longer quadratic but the linear equation bx + c = 0, so its solution is shown instead.

What about fractional coefficients?

Enter them as decimals, or multiply both sides by a common denominator to get integer coefficients.

What does the graph look like for complex roots?

With complex roots the parabola does not touch the x-axis.

Results are for reference only and accuracy is not guaranteed. Terms & disclaimer