← All blog posts

How to get an accurate result from the Quadratic Equation Solver

WhiteUI · A plain-English guide to the Quadratic Equation Solver

The Quadratic Equation Solver does the arithmetic exactly. Accuracy comes from how you round and how you check — three small habits cover nearly every wrong answer.

Rule 1 — round last

Take x² − 3x + 1 = 0. The roots are (3 ± √5) ÷ 2, which is 2.618034 and 0.381966. Round only at the end, and you get 2.62 and 0.38. Round √5 to 2.2 halfway through instead, and you get 2.60 and 0.40 — both wrong in the second decimal place.

Exact: x = (3 ± 2.2360679) ÷ 2 = 2.618034 and 0.381966
Rounded at the end: x = 2.62 and 0.38
Rounded too early (√5 ≈ 2.2): x = 2.60 and 0.40 — both wrong
Round only at the end01230.381966… → 0.382.618034… → 2.62Keep the full value while you work; round the final answer.
The exact roots are 0.381966… and 2.618034…; rounded to two places they are 0.38 and 2.62.

Rule 2 — check by substitution

Put the root back into the equation. With the rounded root 2.62: 2.62² − 3 × 2.62 + 1 = 6.8644 − 7.86 + 1 = 0.0044. That is not exactly 0, but it is close — the 0.0044 is rounding error, not a mistake. With the exact root 2.618034, the check comes out to exactly 0.

2.62² − 3 × 2.62 + 1 = 0.0044 (rounding, not an error)
2.618034² − 3 × 2.618034 + 1 = 0

Rule 3 — keep the full value between steps

If the root feeds into another calculation, use the full 2.618034, not the rounded 2.62. A rounded number used twice doubles the error; a full value used twice stays exact.

The mistake to avoid

Treating a small non-zero check as a wrong answer. A leftover of 0.0044 from a rounded root is fine; a leftover of 2 from a wrong root is not. The size of the leftover tells you which one it is.

Exact roots or decimal roots — which to keep?

The solver gives you the roots, but it is worth knowing which form to keep. Take x² − 2x − 1 = 0: the discriminant is (−2)² − 4 × 1 × (−1) = 4 + 4 = 8, so the roots are (2 ± √8) ÷ 2, which is 1 ± √2. In decimals that is 2.41 and −0.41. The exact form, 1 ± √2, is exact; the decimals are rounded, and the rounding is the price of a tidy number.

Keep the exact form when the root feeds into another step of algebra — a rounded number used twice doubles the error. Use the decimals when the answer is the end of the job: a measurement, a graph point, or a mark on an exam paper that asks for two decimal places. The mistake is mixing the two without noticing: rounding in the middle of the working, then treating the rounded number as if it were exact.

x² − 2x − 1 = 0: D = 8, x = 1 ± √2 ≈ 2.41 and −0.41

What to check before you trust the answer

A discriminant of zero is the case most people misread: it means one root, repeated, not no roots at all. Take x² + 6x + 9 = 0: the discriminant is 6² − 4 × 1 × 9 = 36 − 36 = 0, so the formula gives (−6 ± 0) ÷ 2, which is x = −3 twice. The equation is (x + 3)² = 0, a perfect square, and the graph just touches the x-axis at −3 instead of crossing it.

Check it the usual way: (−3)² + 6 × (−3) + 9 = 9 − 18 + 9 = 0. The check works, and it works twice, because there is only one root to check. If your solver ever shows a single root, look at the discriminant before you assume something broke — a zero there is a real answer, and it is telling you the quadratic is a perfect square.

x² + 6x + 9 = 0: D = 36 − 36 = 0, x = −3 (repeated root)

Frequently asked questions

How many decimal places should I keep?

Two is enough for most homework: 2.62 and 0.38. Keep more if the next step uses the root.

What are the exact roots of x² − 3x + 1 = 0?

(3 + √5) ÷ 2 and (3 − √5) ÷ 2, about 2.618034 and 0.381966.

Why does my check give 0.0044 instead of 0?

Because 2.62 is a rounded root. The leftover is rounding error; the exact root gives exactly 0.

Does the solver round its answers?

It shows roots to two decimal places, but works with the full value underneath.

More guides on the Quadratic Equation Solver

Try it yourself

Solve a quadratic equation, see the discriminant and both roots — free, in your browser.

Open the Quadratic Equation Solver