Skip to main content
QE

Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0 instantly, showing the discriminant and both real or complex roots.

Did you like the tool? Thanks!
Share:

ax² + bx + c = 0

How to Use Quadratic Equation Solver

Enter the coefficients a, b and c from your equation. The calculator computes the discriminant (b² − 4ac) and shows the matching roots live: two real roots, one repeated real root, or a pair of complex roots, depending on the discriminant's sign. "a" cannot be zero, since that would make the equation linear, not quadratic.

About Quadratic Equation Solver

A quadratic equation has the general form ax² + bx + c = 0, where a, b and c are numbers, called coefficients, and a cannot be zero — if it were, the x² term would disappear and the equation would just be a straight line, linear, not a curve, quadratic. Quadratics describe parabolas: the path of a thrown ball under gravity, the shape of a satellite dish, the profit curve of a business as price changes, and countless other real-world relationships where a quantity rises, peaks or dips, and falls. "Solving" a quadratic equation means finding the value or values of x that make the equation true, where the parabola crosses the x-axis. The standard tool for this is the quadratic formula: x = (−b ± √(b² − 4ac)) / (2a). The "±" symbol means there are potentially two answers: one using +√(...) and one using −√(...). The expression under the square root, b² − 4ac, is called the discriminant, and its sign alone tells you what kind of answer to expect before you even finish the calculation. If the discriminant is positive, its square root is a normal real number, so the ± gives two distinct real roots — the parabola crosses the x-axis at two separate points. If the discriminant is exactly zero, the ± collapses to a single value, since adding or subtracting zero makes no difference, giving one repeated real root — the parabola just touches the x-axis at a single point, its vertex. If the discriminant is negative, you'd be taking the square root of a negative number, which isn't a real number, so the equation has two complex roots instead, and the parabola never touches the x-axis at all. Worked example with two real roots: x² − 5x + 6 = 0, where a=1, b=−5, c=6. Discriminant = (−5)² − 4(1)(6) = 25 − 24 = 1, which is positive, so there are two real roots: x = (5 ± 1)/2, giving x = 3 and x = 2. You can verify this by substituting back in: 3² − 5(3) + 6 = 9 − 15 + 6 = 0, correct. Worked example with complex roots: x² + 2x + 5 = 0, where a=1, b=2, c=5. Discriminant = 2² − 4(1)(5) = 4 − 20 = −16, which is negative. The real part of each root is −b/(2a) = −2/2 = −1, and the imaginary part is √16/2 = 4/2 = 2, so the two roots are −1 + 2i and −1 − 2i, a "complex conjugate pair", where the imaginary parts have opposite signs but everything else matches. A common misconception is thinking a negative discriminant means the equation has "no solution" at all. It does have solutions — they're just not real numbers, they're complex numbers, which are essential in electrical engineering (AC circuits), control systems, and quantum mechanics. Another frequent error is forgetting the ± entirely and reporting only one root when the discriminant is positive, missing half of the valid answers.

Details & Tips

The formulas: discriminant Δ = b² − 4ac. Two distinct real roots when Δ > 0: x = (−b ± √Δ) / (2a). One repeated real root when Δ = 0: x = −b / (2a). Complex conjugate roots when Δ < 0: real part = −b/(2a), imaginary part = √(−Δ)/(2a), written as (real) ± (imaginary)i. Worked examples: x² − 6x + 9 = 0, where a=1, b=−6, c=9, has Δ = 36 − 36 = 0, so there's one repeated root: x = 6/2 = 3, confirmed by factoring, (x−3)² = 0. 2x² + 4x + 10 = 0, where a=2, b=4, c=10, has Δ = 16 − 80 = −64; real part = −4/4 = −1; imaginary part = √64/4 = 8/4 = 2; roots are −1 + 2i and −1 − 2i. Edge cases this widget handles: a = 0 is explicitly rejected with the message "a cannot be 0 — this would not be quadratic", since the equation would become linear (bx + c = 0) and the quadratic formula no longer applies. A discriminant of exactly zero is handled as its own case, one repeated root, rather than being lumped in with the two-real-roots branch, avoiding a "3 and 3" display that looks like two separate answers when there's really just one. Non-numeric or empty a/b/c fields simply clear the discriminant and roots display rather than attempting a calculation with missing data. Very large coefficients that would produce a non-finite result are shown via the standard "Too large" formatting rather than a silent wrong answer. Practical tip: look at the discriminant before worrying about the roots themselves — its sign alone tells you the shape of the answer you should expect, two crossings, one touch, or no real crossing at all, which is a fast way to sanity-check your coefficients before reading the final numbers. If you're modeling a real physical situation, like when a projectile hits the ground, a negative discriminant usually signals that you've made an error entering the coefficients, since real physical scenarios described by a quadratic almost always have at least one real solution somewhere in the relevant range of the problem.

Frequently Asked Questions

What is a quadratic equation?
An equation of the form ax² + bx + c = 0, where a, b and c are numbers and a is not zero.
What is the discriminant?
The value b² − 4ac; its sign tells you whether the equation has two real roots, one repeated real root, or two complex roots.
Why can't a be zero?
If a were zero, the x² term would disappear and the equation would become linear, not quadratic — the quadratic formula no longer applies.
What does it mean when the discriminant is negative?
The equation has two complex roots instead of real ones, shown as a real part plus or minus an imaginary part.
What is a "repeated root"?
When the discriminant is exactly zero, both solutions from the ± in the quadratic formula collapse into the same single value.
Can I check my answer by hand?
Yes — substitute each root back into ax² + bx + c and confirm the result is 0.
Do complex roots always come in pairs?
Yes — they are complex conjugates, meaning they share the same real part but have opposite-signed imaginary parts.
What real-world problems use quadratic equations?
Projectile motion, profit and revenue optimization, area problems, and any situation involving a parabola-shaped relationship.
Why does a negative discriminant not mean "no solution"?
It means the solutions aren't real numbers — they're complex numbers, a well-defined and useful type of number in engineering and physics.
Can b or c be zero?
Yes — only a is restricted to be nonzero; b and c can be any number, including zero.
How precise are the displayed roots?
Results are rounded to six decimal places with trailing zeros trimmed for a clean, readable answer.
What if my coefficients are decimals, not whole numbers?
The solver works the same way regardless — decimal coefficients are fully supported.

Also Available As

quadratic formula calculator, quadratic solver, discriminant calculator, complex roots calculator, parabola solver, ax2+bx+c

Found a Problem?

Let us know if something with Quadratic Equation Solver isn't working as expected.

Thanks — we'll take a look.