Advanced maths

Quadratic equation solver

Solve ax² + bx + c = 0, including repeated and complex roots.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Compare how the discriminant changes the solution type, then try a zero quadratic coefficient.

Worked example comparison
ExampleOutputWhat to notice
Two distinct real rootsSmaller real root2x² − 5x + 6 = 0 has discriminant 1 and roots 2 and 3.
One repeated rootRepeated real root2x² − 4x + 4 = 0 has discriminant zero and repeated root 2.
A complex-conjugate pairReal rootsNo real rootsx² + 1 = 0 has no real roots; its complex roots are i and −i.
A linear equation insteadLinear solution4When a = 0, 2x − 8 = 0 is linear and has solution 4.

Check your understanding

Before checking: does a negative discriminant mean there are no complex roots?

No. For real coefficients and nonzero a it means no real roots, with a complex-conjugate pair instead.

How can I check a reported real root?

Substitute it into ax² + bx + c and check that the expression is zero, allowing for the displayed numerical rounding.

Behind the numbers

How this calculation works

The discriminant distinguishes two real roots, one repeated real root, or a complex-conjugate pair. The numeric real-root calculation uses a rearranged formula to reduce cancellation. If a is zero, the tool handles the remaining linear equation.

THE FORMULADiscriminant D = b² − 4ac; roots = (−b ± √D)/(2a)

A worked example

x² − 5x + 6 = 0 has real roots 2 and 3.

Good to know

An estimate under the stated inputs and model. Displayed decimals are rounded; verify assumptions before relying on the result.

A little curiosity

The discriminant counts the real-root possibilities

For real coefficients with a nonzero quadratic term, a positive discriminant gives two distinct real roots, zero gives one repeated real root, and a negative discriminant gives a complex-conjugate pair. The sign organizes the problem before the roots are evaluated.

For x² − 5x + 6, the discriminant is 1 and the roots are 2 and 3. Substituting either back into the original expression gives zero, providing a useful independent check.

A square root is involved in the quadratic formula when the discriminant is nonnegative. The discriminant must be checked before interpreting real roots. The synthetic division calculator can divide a coefficient-defined polynomial by a supplied monic linear factor and report an exact remainder. It tests that supplied value rather than searching for every root. The parabola vertex and axis of symmetry calculator instead locates the turning point and draws the symmetry line. A vertex coordinate is different from a root where y equals zero.

A zero quadratic coefficient changes the type of equation

If a = 0, the equation is linear rather than quadratic. If b is also zero, it either becomes an identity (c = 0) or a contradiction (c ≠ 0). Those cases should not be pushed through a formula that divides by 2a.

Numerical sensitivity still matters. Very close roots or extreme relative coefficient sizes can amplify floating-point effects. The rearranged real-root formula reduces one common cancellation problem without promising arbitrary precision.

A few questions, answered

Does it show complex roots?

Yes. A negative discriminant is shown as a conjugate pair with real and imaginary parts.

Why is there only one repeated-root value?

The two algebraic roots coincide when the discriminant is zero.

Find your calculator

Start typing to explore the library.