Quadratic Equation Solver

Enter coefficients a, b, c for ax² + bx + c = 0 and get real or complex roots instantly.

Solve ax² + bx + c = 0

The formula

For ax² + bx + c = 0:
Discriminant D = b² − 4ac
If D > 0: x = (−b ± √D) ÷ 2a — two real roots
If D = 0: x = −b ÷ 2a — one repeated root
If D < 0: x = −b ÷ 2a ± (√(−D) ÷ 2a) i — two complex roots
a, b, c
The coefficients, taken with their signs. In 2x² + 5x − 3, c is −3, not 3.
D
The discriminant. Its sign alone tells you how many real roots exist, before you finish solving.
i
The imaginary unit, the square root of −1, which appears only when the discriminant is negative.

Worked example

Solving 2x² + 5x − 3 = 0.

Two real roots: x = 0.5 and x = −3.

Read the discriminant first

The sign of b² − 4ac answers the question people usually actually have. Positive means the parabola crosses the horizontal axis twice, zero means it touches it at a single point, and negative means it never reaches it and the solutions are complex. If you only need to know whether real solutions exist — whether a projectile reaches a height, whether two paths intersect — the discriminant is the whole answer and you can stop there.

Signs are where solutions go wrong

Two sign traps account for most errors. First, c carries its own sign into the formula, so with c negative the −4ac term becomes an addition and the discriminant grows. Second, the −b in the numerator flips the sign of b, so a positive b produces roots built from a negative number. Substituting your answers back into the original equation takes ten seconds and catches both.

Why a cannot be zero

With a = 0 there is no squared term and the equation is linear, not quadratic — bx + c = 0 solves directly as x = −c ÷ b. The formula itself would divide by 2a, which is zero, so the calculator refuses the input rather than returning an infinity.

Complex roots are real answers

A negative discriminant does not mean the problem is broken. The two roots are a conjugate pair, sharing the same real part −b ÷ 2a and differing only in the sign of the imaginary part, and the calculator displays both. In a physical problem that usually translates to no real crossing point — the parabola stays entirely above or entirely below the axis — which is often exactly the information you were after.

Common questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, applied to any equation written in the form ax² + bx + c = 0. The plus and minus give the two roots, and the expression under the square root is the discriminant that decides whether those roots are real.

What does the discriminant tell me?

How many real solutions there are. Positive gives two distinct real roots, zero gives one repeated root where the curve touches the axis, and negative gives two complex conjugate roots and no real crossing at all.

Why does the calculator reject a coefficient of zero for a?

Because the equation is then linear rather than quadratic, and the formula divides by 2a. Solve bx + c = 0 directly instead: x = −c ÷ b.

How do I check my answer?

Substitute each root back into the original equation and confirm it evaluates to zero. As a second check, the two roots should sum to −b ÷ a and multiply to c ÷ a — for 2x² + 5x − 3 that is 0.5 + (−3) = −2.5 and 0.5 × (−3) = −1.5, which match.

Get tools like this in your inbox
One useful tool per week. No spam. Unsubscribe anytime.
Tools Pro — $9 a month

One licence key, pasted into any CYZOR tool. Today it does three things: drops the CYZOR line from PDFs you send for signature, takes CYZOR branding off your forms and adds CSV export, and switches on the AI rewrite in the resume builder.

See Tools Pro

Terms · Privacy · Refund · Contact