Statistics
Percent Error and Margin of Error: Formulas & Examples
Math Solver Free Team

Percent error tells you how far a measured or estimated value sits from the exact value, as a percentage of that exact value. A forecast, an experiment and a poll can all miss the truth, but in different ways, so this guide keeps two tools separate: percent error, for comparing one value with a known exact value, and margin of error, for judging how far a sample result may sit from the whole population. Both formulas follow below, symbol by symbol. Keep the percentage calculator open for fast checking.
What is a percentage error? The percent error idea in plain words
You measure a length as 9.8 cm; the exact length is 10 cm. The raw gap, 0.2 cm, says little alone: missing by 0.2 cm on a 10 cm object is a small slip, but on something 0.4 cm long it would be enormous. Percent error scales the gap to what was measured: 0.2 out of 10 is 2%, so the percent error is 2%.
The percent error formula, symbol by symbol
The formula is: percent error = |measured − exact| / |exact| × 100.
- measured — the value you obtained: a reading, estimate, forecast or experimental result.
- exact — the accepted true value: the textbook value, the counted total, or what actually happened.
- measured − exact — the signed error: positive if you overshot, negative if you fell short.
- | … | — absolute value: ignore the sign, keep only the size of the gap.
- / |exact| — divide by the exact value, never by your measured value; this step is most often done wrong.
- × 100 — convert the decimal share into a percentage.
Three steps cover every problem: subtract, divide by the exact value, multiply by 100. See how to calculate a percentage and Math is Fun's Percentage Error page.
Why the absolute value matters
Without the bars, half of all results would be negative, and a negative error sounds like a different kind of thing rather than the same size of miss in the other direction. Measuring 9.8 against an exact 10 and 10.2 against an exact 10 are equally inaccurate, so both report 2%: percent error measures how big the miss was, not which way it went. If direction matters, drop the bars: (measured − exact) / exact × 100 gives +2% and −2%.
Worked example 1: measured 9.8, exact 10
- Subtract: 9.8 − 10 = −0.2.
- Absolute value: |−0.2| = 0.2.
- Divide by the exact value: 0.2 / 10 = 0.02.
- Multiply by 100: 0.02 × 100 = 2%.
The percent error is 2% — every such problem is these same four moves.
Worked example 2: a forecast of 150, an actual result of 120
A shop forecasts 150 units and actually sells 120. The exact value is the actual result, 120 — what really happened; the forecast is the estimate being judged.
- Subtract: 150 − 120 = 30.
- Absolute value: |30| = 30.
- Divide by the exact (actual) value: 30 / 120 = 0.25.
- Multiply by 100: 0.25 × 100 = 25%.
Percent error: 25%. Dividing by 150 gives 20%, the classic wrong answer — it grades the forecast against itself, not reality.
Percent error vs percentage difference
The difference is status, not arithmetic style. Use percent error when one value is exact or accepted and the other approximates it. Use percentage difference when two values have equal standing and neither is the truth — two labs measuring the same sample, say. Percentage difference divides by the average of the two values, since no exact value exists. A question naming an accepted, true, theoretical or actual value wants percent error; our percentage guide covers the wider family.
What is the margin of error and how do you calculate it given data and sample size?
Percent error needs an exact value; polls never have one. You ask 400 people and want to speak about millions. The margin of error (MOE) states how far the sample result could plausibly sit from the true population value purely because you sampled instead of asking everyone. If 52% of your sample supports a policy with a margin of 5 points, you report 52% ± 5: true support is plausibly around 47% to 57%.
What a confidence interval means, in plain words
A margin of error travels with a confidence level, usually 95%; together they form a confidence interval: estimate ± margin of error. The meaning is about the method, not a guarantee for one poll. Run the same survey 100 times with fresh random samples: about 95 of those intervals would contain the true population value, about 5 would miss it. It does not mean 95% of people fall inside the range. If this long-run thinking feels new, what probability is builds the same frequency idea from the ground up.
The quick rule: MOE ≈ 1/√n for 95% confidence
Pollsters estimate fast with MOE ≈ 1/√n, as a proportion, at 95% confidence. With n = 400: 1/√400 = 1/20 = 0.05, about 5%. With n = 1,067: 1/√1,067 ≈ 0.031, about 3% — why national polls interview roughly a thousand people and quote ±3 points. The rule assumes the worst case, p = 0.5, where sampling varies most; use it for planning and headlines, not in place of the full formula.
The fuller formula: 1.96 × √(p(1−p)/n)
The full formula is MOE = 1.96 × √(p(1−p)/n): p is the sample proportion as a decimal (52% = 0.52), 1 − p the remaining share, n the sample size, √(p(1−p)/n) the standard error — the typical sampling wobble — and 1.96 the multiplier stretching it to 95% confidence width. Standard error is rooted in spread: see how to find standard deviation, the standard deviation calculator, and the average calculator for survey means.
Worked poll example: 52% support, n = 400
- Convert: p = 0.52, so 1 − p = 0.48.
- Inside the root: 0.52 × 0.48 / 400 = 0.2496 / 400 = 0.000624.
- Square root: √0.000624 ≈ 0.0250 — standard error about 2.50 points.
- Multiply by 1.96: 1.96 × 0.0250 ≈ 0.049, so MOE ≈ 4.9%.
About 4.9%, close to the quick rule's 5%. With n = 1,067, the same method gives about 3%.
How sample size changes the margin of error
Sample size sits inside a square root, and that controls everything. Doubling n shrinks the margin only by √2, roughly 1.41; to halve it you must quadruple the sample: 400 people give about ±5 points, 1,600 about ±2.5 points. Precision gets expensive fast: 100 to 400 respondents (about ±10 to ±5 points) is worthwhile; 10,000 to 40,000 rarely is.
Reading a poll result: 52% ± 5 points
Read "52% ± 5 points" as a range: roughly 47% to 57%. Say percentage points, not percent — a move from 47% to 52% is 5 points, not a 5% increase. If two candidates sit at 52% and 49% with a ±5 margin, their ranges overlap heavily: effectively tied, whatever the headline says. Check n for subgroups, too: the 120 young voters inside a 1,067 sample have their own margin, around ±9 points.
Common mistakes
- Dividing by the measured value. Percent error divides by the exact value; your own measurement grades the estimate against itself.
- Forgetting the absolute value — or dropping × 100 and reporting 0.02 instead of 2%.
- Using percent error with no exact value. Competing measurements call for percentage difference, averaged denominator.
- Treating the margin of error as covering every error. It covers only sampling error — not biased questions, dishonest answers, skipped groups or non-response.
- Expecting doubling the sample to halve the margin. The square root law requires quadrupling.
- Reading ±5 as ±5% of the value. Poll margins are percentage points on the estimate itself.
Frequently asked questions
What is a percentage error?
The measured-minus-exact difference, divided by the exact value, times 100: |measured − exact| / |exact| × 100.
Why divide by the exact value, not the measured value?
The exact value is the reference being judged against; the measured value would change the yardstick each time.
What is the margin of error and how do you calculate it given data and sample size?
The plus-or-minus width of a confidence interval: 1.96 × √(p(1−p)/n) at 95% confidence, or quickly 1/√n.
How does sample size affect the margin of error?
Via a square root: quadrupling the sample halves it — n = 400 gives ±5 points, n = 1,067 about ±3.
Can percent error be negative or over 100%?
Never negative in standard form; over 100% means the miss exceeded the exact value itself.
Does the margin of error cover mistakes in the questions?
No — only sampling error. Wording bias and non-response can push results outside the interval.