All tools
Math & Everyday

Quadratic Equation Solver

Real or complex roots of ax² + bx + c = 0, with the discriminant shown.

🔒 Runs entirely in your browser — nothing here is ever uploaded

About the Quadratic Equation Solver

Solves any quadratic equation ax² + bx + c = 0 for x, using the quadratic formula, and reports whether the roots are two distinct real numbers, one repeated real number, or a complex conjugate pair, depending on the discriminant.

100% Free Runs in Your Browser No Sign-Up Required
How to use it
  1. Enter the coefficients a, b, and c from your equation in the form ax² + bx + c = 0.
  2. Read the roots in the result panel, along with the discriminant.
Formula
x = (−b ± √(b² − 4ac)) ÷ 2a The discriminant, b² − 4ac, determines the nature of the roots: positive gives two distinct real roots, zero gives one repeated real root, and negative gives two complex conjugate roots (expressed as real ± imaginary·i, since the square root of a negative number isn't a real number).
Worked example

For x² − 5x + 6 = 0 (a=1, b=−5, c=6): discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1, which is positive, giving two real roots: x = 3 and x = 2.

Discriminant → Root Type
Discriminant → Root Type
Discriminant (b²−4ac)Root TypeExample
> 0Two distinct real rootsx²−5x+6=0 → x=2, 3
= 0One repeated real rootx²−4x+4=0 → x=2
< 0Two complex conjugate rootsx²+x+1=0 → x=−0.5±0.866i
Interpreting your result

If a = 0, the equation isn't actually quadratic — it reduces to a linear equation (bx + c = 0), or, if b is also 0, either an identity (always true, if c = 0 too) or a contradiction (never true). The calculator detects these edge cases and explains them rather than silently dividing by zero.

Recommendations
  • A positive discriminant always means two distinct real roots; check its sign first to know what kind of answer to expect before looking at the roots themselves.
  • A discriminant of exactly 0 means the parabola touches the x-axis at exactly one point (a repeated root) — the vertex sits exactly on the axis.
  • Complex roots always come in conjugate pairs (real ± imaginary·i) for a quadratic with real coefficients — you'll never get just one complex root alone.
Frequently asked questions
x = (−b ± √(b² − 4ac)) ÷ 2a — it gives the value(s) of x that satisfy any equation of the form ax² + bx + c = 0, provided a ≠ 0.