ToolNest

Quadratic Equation Solver

Solve ax² + bx + c = 0 — free, instant.

Quadratic Equation Solver

Solves ax² + bx + c = 0 — free, instant, shows real or complex roots.

Solving for X Without Redoing the Formula by Hand

A quadratic equation in the standard form ax² + bx + c = 0 can be solved by hand using the quadratic formula, but the arithmetic gets tedious and error-prone, especially with decimal or negative coefficients — this tool takes your three coefficients and instantly returns both roots, whether real, repeated, or complex.

The Formula Behind the Solution

The quadratic formula, x = (-b ± √(b²-4ac)) / 2a, solves any equation in standard form by first calculating the discriminant (the value under the square root, b²-4ac), which determines what kind of roots the equation actually has. A positive discriminant produces two distinct real roots, a discriminant of exactly zero produces one repeated real root (where the parabola just touches the x-axis at a single point), and a negative discriminant produces two complex roots, since the square root of a negative number isn't a real number.

A Worked Example

For x² - 5x + 6 = 0, the discriminant calculates as 25 - 24 = 1, a positive value producing two distinct real roots: x = 3 and x = 2, which can be verified by factoring the same equation as (x-3)(x-2) = 0. For x² + 4x + 4 = 0, the discriminant calculates as 16 - 16 = 0, producing exactly one repeated root at x = -2, reflecting that this equation is actually a perfect square, (x+2)² = 0.

Reading What the Discriminant Actually Tells You

Beyond just solving for the roots, the discriminant's value directly describes the parabola's relationship to the x-axis without needing to graph it: positive means the parabola crosses the x-axis at two distinct points, zero means it touches the x-axis at exactly one point (the vertex sits precisely on the axis), and negative means the entire parabola stays above or below the x-axis without touching it at all — a useful shortcut for understanding a quadratic's behavior before doing any further work with it.

Where This Gets Used Beyond the Classroom

Students working through algebra homework who want to verify their by-hand calculation before submitting it. Someone modeling a real-world scenario — projectile motion, area optimization, profit maximization — that happens to reduce to a quadratic equation needing solved roots. Engineers and physicists solving quadratics that arise naturally from their specific field's equations, wanting a fast, reliable check on manual work. Anyone teaching or tutoring algebra who wants a quick way to generate or verify worked examples.

Understanding Complex Roots, Not Just Getting a "No Solution" Answer

A negative discriminant doesn't mean the equation has no solution at all — it means the solutions aren't real numbers, but complex numbers involving i (the imaginary unit, where i² = -1). Many basic calculators simply report "no real solution" and stop there, while a fuller understanding recognizes that every quadratic equation does have solutions, they're just complex rather than real when the discriminant is negative — this tool shows the actual complex roots rather than just reporting an absence of solutions.

Calculated Instantly, On Your Device

The formula's calculation runs with client-side JavaScript the moment you enter your three coefficients — a direct mathematical operation requiring no server processing.

What does it mean if my equation has a negative discriminant?

It means the equation's roots are complex numbers rather than real numbers — the equation still has solutions, they involve the imaginary unit i rather than being plottable on a standard real-number line.

Why do I get the same root twice for some equations?

This happens when the discriminant equals exactly zero, meaning the parabola touches the x-axis at a single point rather than crossing it at two distinct points.

Can I solve an equation where the coefficient "a" is zero?

No — if a equals zero, the equation is no longer quadratic (it becomes linear), and the quadratic formula doesn't apply; you'd need a linear equation solver instead.

Does this tool show the steps, or just the final answer?

Results typically include the discriminant value and the final roots, giving enough information to understand how the answer was reached alongside the solved values themselves.

Can I enter decimal or fractional coefficients?

Yes — the formula works identically regardless of whether coefficients are whole numbers, decimals, or negative values.

A Second Example

A physics student calculating when a projectile hits the ground sets up a quadratic equation from the height formula, plugs in the resulting coefficients, and gets both roots back — one positive (the actual time of impact) and one negative (mathematically valid but physically meaningless, since negative time doesn't apply to the real scenario), a common pattern worth recognizing when quadratics model real-world situations rather than pure abstract math.