Quadratic Equation Solver
Roots, vertex and every step shown.
At a glance
- Input:
- Numbers you enter
- Processing:
- Runs locally in your browser
- Privacy:
- Nothing you type is sent to a server
Last updated: 2026-11-09
Common use cases
- Solving a homework quadratic and checking each step against the formula
- Finding the vertex and axis of symmetry of a parabola
- Seeing why a negative discriminant means complex roots
- Checking roots with the Vieta sum and product
About this tool
Enter a, b and c and solve ax² + bx + c = 0 with the quadratic formula — roots, discriminant, vertex, axis of symmetry and a Vieta check, with every step shown. The default x² − 5x + 6 = 0 gives roots 2 and 3 (Δ = 1, vertex (2.5, −0.25), sum 5, product 6). Complex roots are shown as a+bi, exact roots exactly, and messy irrationals rounded to a stated 6 decimal places. The maths is IEEE-754 floating point, not exact algebra — a discriminant below 1e-12 is treated as 0. Everything runs locally in your browser — no signup, no upload.
How to use it
- Enter a, b and c for ax² + bx + c = 0 — a must not be 0.
- Read the discriminant Δ = b² − 4ac and what it means: two real roots, one repeated root, or two complex roots.
- Follow the quadratic formula step: x = (−b ± √Δ) / 2a, with the numbers substituted.
- Check the vertex (−b/2a, f(−b/2a)) and the axis of symmetry x = −b/2a.
- Use the Vieta check: the roots add to −b/a and multiply to c/a.
Worked examples
Input: x² − 5x + 6 = 0 (a = 1, b = −5, c = 6)
Output: Δ = 1 · Roots 2 and 3 · Vertex (2.5, −0.25) · Sum 5 · Product 6
The default example: Δ = 25 − 24 = 1, so two real roots — (5 ± 1) / 2 gives 3 and 2.
Input: x² − 4x + 4 = 0 (a = 1, b = −4, c = 4)
Output: Δ = 0 · Repeated root 2 · Vertex (2, 0) · Sum 4 · Product 4
A perfect square: Δ = 16 − 16 = 0, so one repeated root — the vertex sits on the x-axis.
Input: x² + 2x + 5 = 0 (a = 1, b = 2, c = 5)
Output: Δ = −16 · Roots −1 + 2i and −1 − 2i · Vertex (−1, 4) · Sum −2 · Product 5
Δ is negative, so the roots are complex conjugates: √Δ = 4i, and (−2 ± 4i) / 2 gives −1 ± 2i.
Practical tips
- Factor first when it is easy — x² − 5x + 6 = (x − 2)(x − 3) — then use the solver to check.
- The vertex is the fastest sanity check: for x² − 5x + 6 it is (2.5, −0.25), exactly halfway between the roots 2 and 3.
- Use the Vieta check after solving: if the roots do not add to −b/a, something went wrong.
Common mistakes
- Forgetting the ± — the formula gives two roots, and dropping one loses half the answer.
- Dividing by 2a and writing 2 × a wrong — for a = 2 the denominator is 4, not 2.
- Treating a negative discriminant as “no solution” — there are two complex roots, and the solver shows them.
How this compares
Most quadratic solvers print the two roots and stop, which is fine for an answer but useless for learning — a wrong sign in the middle leaves you with nothing to check. This solver shows the discriminant with its interpretation, the formula with the numbers substituted, the vertex and axis of symmetry, and a Vieta sum-and-product check, and it says plainly when floating point forced a near-zero discriminant to 0. The tradeoff: there is no parabola graph at v1 — the vertex and axis are given as numbers.
Good to know
- Roots are rounded to 6 decimal places when they are not exact.
- The maths is IEEE-754 floating point, not exact algebra — a discriminant below 1e-12 (relative to b² and 4ac) is treated as 0.
- a must not be 0 — with a = 0 the equation is linear, not quadratic.
- No graph at v1 — the vertex and axis are given as numbers.
Frequently asked questions
What does the discriminant tell me?
Δ = b² − 4ac decides the roots before you solve: Δ > 0 gives two distinct real roots, Δ = 0 gives one repeated root, and Δ < 0 gives two complex conjugate roots. For x² − 5x + 6 = 0, Δ = 25 − 24 = 1, so the roots are the two real numbers 2 and 3.
What if a is 0?
Then it is not a quadratic at all — bx + c = 0 is a linear equation with the single root −c/b. The calculator says so instead of dividing by zero: enter an a that is not 0.
How are complex roots shown?
As a+bi, with the sign handled — x² + 2x + 5 = 0 gives −1 + 2i and −1 − 2i, never 1+−2i. The two roots are conjugates: same real part, opposite imaginary parts.
Why are some roots rounded?
Exact-integer roots are shown exactly (2 and 3, not 2.000000). Messy irrationals are rounded to 6 decimal places — x² − 2 = 0 gives ±1.414214, which is √2 to six places, not the exact value.
Why would a discriminant that should be 0 show as a tiny number?
Because the maths is IEEE-754 floating point, not exact algebra: 0.3² − 4 × 0.0225 can land at 1e-17 instead of exactly 0. A discriminant below 1e-12 (relative to the size of b² and 4ac) is treated as 0, and the page says so when it happens.
Is my data uploaded?
No. The calculation runs entirely in your browser — the coefficients you enter never leave this tab, and nothing is stored.

