U
UseCalcForge Free Online Calculators
Science & Engineering

Quadratic Equation Solver.

Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, vertex, and axis of symmetry.

x = 0

With a = 0 this is not a quadratic — it is the linear equation bx + c = 0.

Runs entirely in your browser. The values you enter never leave your device — there is no request to our server and nothing is stored. How we handle data

The Quadratic Formula

Any equation that can be rearranged into ax² + bx + c = 0 is a quadratic, and every one of them is solved by the same formula. It comes from completing the square on the general form, which is why it works whether or not the equation factors neatly.

Formula

x = (−b ± √(b² − 4ac)) / 2a
Discriminant Δ = b² − 4ac
Vertex = (−b / 2a, c − b² / 4a)

The two roots are symmetric about −b/2a, which is why the vertex always sits exactly halfway between them. That symmetry is also a useful check: if you have found both roots, their average must equal −b/2a, and their product must equal c/a.

Reading the Discriminant

The sign of b² − 4ac decides the character of the solution before you calculate anything else, which is why it is worth evaluating first.

Δ > 0 — two distinct real roots

The parabola crosses the x-axis at two separate points. If Δ is also a perfect square and a, b, c are integers, the roots are rational and the equation factors with whole numbers.

Δ = 0 — one repeated root

The curve touches the axis at exactly one point, its vertex. The quadratic is a perfect square: a(x − r)².

Δ < 0 — a complex conjugate pair

No real value of x satisfies the equation and the parabola never meets the x-axis. The two roots share the same real part, −b/2a, and differ only in the sign of the imaginary part.

Where Quadratics Show Up

Projectile height against time is quadratic because gravity applies constant acceleration, so solving for the roots tells you when an object launched upward returns to the ground, and the vertex tells you its peak height and when it occurs.

The same shape appears wherever two linear quantities multiply: area against a single varying dimension, revenue against price when demand falls linearly with price, or braking distance against speed. In each case the vertex is the interesting point — the maximum area, the revenue-maximising price — and the roots mark where the quantity falls to zero.

Knowledge Base

Solving Quadratic Equations Methodology.

A quadratic equation is any equation whose highest power of the unknown is two. Because its graph is a parabola, it has at most two solutions, and the quadratic formula finds both of them directly from the coefficients without any guessing or factoring.

The Calculation Branch

ax² + bx + c = 0 | x = (−b ± √(b² − 4ac)) / 2a | Δ = b² − 4ac | Vertex x = −b / 2a | Sum of roots = −b/a | Product of roots = c/a

Industrial Standards.

Roots are computed directly from the quadratic formula in double-precision floating point. When the discriminant is negative the solver reports the conjugate pair as a real part of −b/2a and an imaginary part of √(−Δ)/2a rather than returning no answer. If a is zero the equation is not quadratic and the tool falls back to solving the linear case bx + c = 0. Values are displayed to six decimal places with trailing zeros removed.

In-Depth Analysis & Reference Data

Two properties of the roots follow directly from the coefficients and make good sanity checks. Their sum is always −b/a and their product is always c/a — known as Vieta's formulas. For x² − 3x + 2 = 0 the roots are 1 and 2: they sum to 3, which matches −(−3)/1, and multiply to 2, which matches 2/1.

Floating-point subtraction can lose precision when b² is much larger than 4ac, because one root is then computed as the difference of two nearly equal numbers. For most schoolwork and engineering estimates this is invisible, but if you are chaining the result into further calculations at very different scales, be aware that the smaller root carries the larger relative error.

Registry Questions & FAQ.

My equation is not in the standard form. What do I enter?

Move everything to one side first so the other side is zero. For 2x² + 5x = 12, subtract 12 to get 2x² + 5x − 12 = 0, then enter a = 2, b = 5, c = −12.

Why does the factored form show decimals?

Because the roots themselves are irrational whenever the discriminant is not a perfect square. The factored form is exact only when the roots are rational; otherwise it is shown to six decimal places as a numerical approximation.

All metrics verified against ISO/ASTM benchmarks.