What the margin of error really means
Every poll you read comes with a margin of error, and most readers skip straight past it. It is the number that says how far the reported result could be from the truth. A candidate at 52% with a margin of error of 3 points could really be anywhere from 49% to 55%. Without that number, 52% looks exact. With it, you know how much wobble sits underneath.
The margin of error comes from sampling: you asked some people, not everyone, so the answer carries the luck of the draw. Ask a different random 1,000 people and you will get a slightly different number. The margin of error measures that wobble. It does not cover bias — if the wrong people were asked, the true error can be far larger than the margin suggests.
This calculator takes a confidence level, a standard deviation and a sample size, and returns the margin of error plus the z-value used. It runs entirely in your browser, so nothing is uploaded and nothing is stored.
How the margin of error is worked out
The formula is short: margin of error = z × (SD ÷ √n). The z is the standard score for your confidence level: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%. The SD is the standard deviation of the thing you are measuring, and n is the sample size. Divide the standard deviation by the square root of n to get the standard error, then multiply by z.
Run the default numbers through it. At 95% confidence, a standard deviation of 15 and a sample of 100: the square root of 100 is 10, so the standard error is 15 ÷ 10 = 1.5. Multiply by 1.96 and the margin of error is 2.94. If the sample mean is 100, the 95% interval is 97.06 to 102.94 — the truth is very likely somewhere inside that band.
The square root is the part people forget, and it is the part that decides the cost of precision. Doubling the sample does not halve the margin; it cuts it by a factor of about 1.41, because √2 is 1.41. To halve the margin you must quadruple the sample. That single fact explains why polls cluster around 1,000 respondents: past that point, each extra point of precision gets expensive fast.
The three inputs that set your margin
The standard deviation is the input people get wrong most often, because it is a property of the population, not of your survey. A population where everyone earns roughly the same has a small standard deviation and a small margin; a population with huge income gaps has a large one. You cannot shrink it by surveying more people — it is what it is. You estimate it from past data or a pilot survey, and a wrong guess here makes the whole margin wrong.
The sample size is the lever you control. With a standard deviation of 20, a sample of 64 gives a standard error of 2.5 and a 99% margin of 6.44. Raise the sample to 256 and the standard error halves to 1.25, so the margin falls to 3.22. Raise it to 1,024 and the margin is 1.61. Each quadrupling buys the same halving, so the early gains are cheap and the later ones are dear.
The confidence level is the price of certainty. With a standard deviation of 8 and a sample of 49, the standard error is 8 ÷ 7 = 1.14. At 90% confidence the margin is 1.645 × 1.14 = 1.88; at 95% it is 1.96 × 1.14 = 2.24; at 99% it is 2.576 × 1.14 = 2.94. Going from 90% to 99% widens the margin by more than half, for the same data. Pick the lowest confidence you can defend, and the margin stays honest and tight.
A worked example: margin of error 2.94
Take the default case: 95% confidence, standard deviation 15, sample size 100. The standard error is 15 ÷ √100 = 15 ÷ 10 = 1.5, and the margin of error is 1.96 × 1.5 = 2.94. The z-value is 1.96. If this were a test-score survey with a mean of 100, you would report 100 ± 2.94, or an interval of 97.06 to 102.94. That is a tight, usable result.
Now make the data noisier. Keep 95% confidence and n = 100, but raise the standard deviation to 30. The standard error doubles to 3, and the margin doubles to 5.88. Same sample, same confidence, twice the uncertainty — because the population itself is twice as spread out. No amount of clever sampling fixes that; only a bigger sample or a less variable population will.
A second full example uses the 99% level. Standard deviation 20, sample 64: the standard error is 20 ÷ 8 = 2.5, and the margin is 2.576 × 2.5 = 6.44. At 95% the same numbers give a margin of 4.90, and at 90% they give 4.11. The three margins — 4.11, 4.90, 6.44 — show the cost of confidence in plain numbers: each step up buys certainty with width.
Where the margin of error shows up in real life
Election polls are the famous case. A poll of 1,000 voters has a margin of error of about 3 points for a percentage near 50%, which is why a lead of 2 points is not a lead at all — it is a tie inside the noise. Pundits who call a 2-point lead a win are ignoring the very number the pollster printed next to the result. When the margin is wider than the gap, the honest headline is that the race is too close to call.
Product teams use it on satisfaction scores and A/B tests. A new checkout page lifts conversion from 4.0% to 4.3%, but with a margin of error of 0.5 points the true lift could be anywhere from −0.2 to +0.8. Shipping the change on that evidence is a coin toss. The margin tells the team to run the test longer or accept that the effect is too small to measure with the traffic they have.
Teachers and researchers use it on class averages and survey means. A class average of 72 with a margin of error of 2.94 is solid evidence the class is above 70; the same average with a margin of 8 is not. A average calculator gives you the centre; the margin of error tells you how firmly that centre is pinned down.
Margin of error vs confidence interval: what is the difference?
They are two views of the same number. The margin of error is the half-width; the confidence interval is the full range built from it. A mean of 100 with a margin of error of 2.94 gives the interval 97.06 to 102.94. Report whichever fits the sentence — the margin for a headline, the interval for a report — but never report one without knowing the other.
The confusion comes when people compare margins across surveys. A margin of 3 points on a poll of 1,000 is not the same achievement as a margin of 3 points on a poll of 400 with a less variable population. The margin alone does not tell you the sample size or the spread; it is the product of both, plus the confidence level. Two surveys can share a margin and differ wildly in what they cost.
A related mix-up is treating the margin of error as the total error. It only covers random sampling error. It says nothing about people who refused to answer, questions that were misunderstood, or a sample drawn from the wrong group. Those errors can dwarf the margin, and they do not shrink as the sample grows. A standard deviation calculator shows the spread that feeds the margin, and a probability calculator helps you judge how much of a result could be pure chance.
Common margin of error mistakes
The first mistake is ignoring it when the race is close. If candidate A leads by 2 points with a margin of error of 3, the lead is inside the noise and either candidate could be ahead. Calling it a lead is not a small error — it is the opposite of what the numbers say. When the gap is smaller than the margin, say so plainly.
The second mistake is assuming a bigger sample always fixes a bad survey. It does not. The margin only measures random error, and it shrinks with the square root of n. Bias — wrong population, leading questions, low response from one group — stays exactly where it is no matter how many people you ask. A biased survey of 10,000 is still biased; it is just precisely wrong.
The third mistake is using the standard deviation instead of the standard error. The margin is z × SD ÷ √n, not z × SD. Forgetting the square root inflates the margin by a factor of √n — ten times too big for a sample of 100. If your margin comes out larger than your standard deviation, something is wrong, because the margin should be much smaller than the spread of the data.
The fourth mistake is quoting a margin without its confidence level. A margin of 2.94 means nothing on its own: at 95% it is one number, at 99% it is bigger, at 90% it is smaller. Always state the pair together — 2.94 at 95% confidence — or the number is not a fact, just a digit.
How to use this margin of error calculator
Pick the confidence level first: 95% is the standard choice, 90% for a quick check, 99% when the decision matters a lot. Then type the standard deviation of what you are measuring — from past data, a pilot study, or a reasonable guess — and the sample size n. The margin of error and the z-value update live as you type.
Read the margin as the wobble around your estimate. If your sample mean is 100 and the margin is 2.94, the plausible range is 97.06 to 102.94. If that range is too wide for your decision, the calculator tells you what to change: raise n, or accept a lower confidence level.
Everything runs in your browser. No account, no upload, no data sent anywhere. Pair it with the percentage calculator when your survey reports shares rather than means, and with the variance calculator when you want to check the spread that drives your margin.