Quadratic Equation Solver
Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, vertex, both factored and vertex form, an interactive graph, and two full step-by-step methods.
⚡ Quick Tips for Solving Quadratics Correctly
Features
Automatically classifies and solves for all three root types based on the discriminant.
See the curve, vertex and real roots plotted live as you change the coefficients.
Toggle between the quadratic formula and completing the square — same answer, different derivation.
Both alternate forms of the equation, built from the actual computed vertex and roots.
Automatic sum and product verification — catches arithmetic errors without re-substituting.
Toggle between 2 and 6 decimal places, and show or hide steps and the graph independently.
Seeing the Parabola Changes How You Read the Answer
Most free quadratic solvers give you three numbers — the discriminant and two roots — and leave you to imagine the shape that produced them. This tool draws the actual parabola, scaled automatically around the vertex and roots, with the vertex marked and any real roots plotted directly on the x-axis. That single addition changes how the discriminant reads: instead of memorizing "negative discriminant means complex roots," you can watch the curve visibly lift off the x-axis as you adjust c and see exactly the moment it stops intersecting. For a purely numeric double-check of any point on the curve, the Scientific Calculator handles direct substitution arithmetic alongside it.
Two Roads to the Same Answer
The quadratic formula is fast because it's already derived — plug in a, b and c and the roots fall out. Completing the square is slower but shows where that formula actually comes from: divide through by a, move the constant to the other side, add the square of half the linear coefficient to both sides to force a perfect square on the left, then take the square root. Run through both derivations for the same equation and they land on identical roots every time, which is itself a useful sanity check — if a hand-worked completing-the-square attempt disagrees with the formula's answer, the error is somewhere in the manual steps, not in the method.
Reading the Discriminant Before You Even Solve
Δ = b² − 4ac answers "what kind of answer am I about to get" before any square root is taken. A positive discriminant promises two distinct real crossing points; zero promises the parabola just grazes the axis at a single point (its vertex); negative promises the curve never reaches zero at all. In applied problems, a negative discriminant is often the answer itself — it can mean a projectile never reaches a target height, a break-even point is never hit at a given price, or a physical system has no real equilibrium under the given conditions, which is exactly why classifying the discriminant first, before grinding through the arithmetic, is the right habit to build.
When the Vertex Matters More Than Either Root
Roots answer "where does this equal zero," but plenty of real problems actually care about the opposite question — "where is this at its biggest or smallest." A company's profit function, a projectile's peak height, the minimum material needed for a container of fixed volume — all of these are optimization problems where the vertex, not the roots, is the actual answer being sought. The vertex's x-coordinate, h = −b/2a, is also the axis of symmetry, which is why a parabola's two roots (when real) are always equidistant from h — a useful mental check that a computed pair of roots is at least symmetric around the right point, even before verifying the exact values with Vieta's formulas.
This is also where vertex form earns its keep over the standard or factored forms: a(x−h)² + k reads the maximum or minimum value k directly off the equation, with no further arithmetic required, which is exactly why calculus courses often introduce completing the square as a stepping stone toward optimization before formal derivatives are covered at all.
Who Actually Reaches for a Quadratic Solver
Algebra and pre-calculus students checking homework or exam practice, where the step-by-step panel doubles as a way to find exactly which line of hand-worked algebra went wrong. Physics students solving projectile-motion problems, where time-to-impact or maximum height comes directly from a quadratic in time. Engineering students working with structural load equations, circuit resonance conditions, or control-system stability criteria that reduce to a quadratic characteristic equation. Economics and business students finding break-even points or optimizing a quadratic profit or cost function, where the vertex is the entire point of the exercise, not the roots. For datasets and averages rather than a single equation's roots, the Mean, Median & Mode Calculator is the more relevant tool.
Two Calculations Worth Walking Through
Projectile motion: a ball thrown upward at 20 m/s from a 5 m platform follows h(t) = −5t² + 20t + 5. Setting h = 0 and entering a=−5, b=20, c=5 gives two roots — one negative (before the throw, physically meaningless) and one positive around t ≈ 4.24 s, the actual landing time. The graph makes the discarded negative root visually obvious: it's the left-hand crossing point, well before t = 0.
Break-even analysis: a company's profit follows P(x) = −2x² + 80x − 350 for x units sold. Setting P = 0 (a=−2, b=80, c=−350) gives the two break-even points where the business neither profits nor loses money, while the vertex — found at x = 20 — gives the exact production volume that maximizes profit, which is normally the more useful business answer than either root alone.
Why Browser-Based Beats a Graphing Calculator's Menu Diving
A dedicated graphing calculator can do all of this, but usually behind several menu presses to switch between the equation solver, the graph screen and the table of values. This tool shows all of it on one screen simultaneously, updates live as coefficients change, and never sends your equation anywhere — everything, including the graph rendering, runs client-side in JavaScript. That makes it just as useful for quickly checking a textbook problem as for exploring how changing a single coefficient reshapes the entire parabola.
Where This Solver Draws the Line
It solves single-variable quadratics in the standard form ax² + bx + c = 0 — it doesn't solve systems of equations, quadratics in two variables (conic sections beyond a simple parabola), or higher-degree polynomials. Very large or very small coefficients can lose precision at the edges of JavaScript's floating-point range, though this is rare for realistic homework or applied problems. For simplifying fractional coefficients before entering them, the Fraction Calculator converts a fraction to its decimal equivalent in one step.