Margin of Error Calculator
A poll of 1,000 people reporting 48 percent carries a margin of error of 3.1 points at 95 percent confidence. The range runs from 44.9 to 51.1 percent, and the work is 1.96 x 1.58 = 3.10, where 1.58 points is the standard error of the share.
| Margin of error | |
| Interval for the share | |
| Standard error | |
| z value used | |
| Margin on a two-candidate lead | |
| Sample size for the target margin |
All calculations happen in your browser, nothing you type is uploaded.
Enter a sample size and a percentage to get the margin of error at 90, 95 or 99 percent confidence, the interval it implies, and the sample size a tighter margin would need.
Key takeaways
- Margin of error = z x the square root of p x (1 - p) / n; at 95 percent confidence z is 1.96 and a 1,000 person poll gives 3.10 points
- Halving the margin takes four times the sample: 1,068 responses buys 3 points, 4,269 buys 1.5 points
- A lead between two candidates needs a margin about twice as wide, so 3.1 points each becomes about 6.2 points for the gap
- Weighting widens the number: a design effect of 1.5 stretches a 3.10 point margin to 3.79 points
- Census Bureau tables publish 90 percent margins, so a published margin times 1.19 moves it to 95 percent
On this page
What a margin of error promises
A poll talks to a sample, and a sample is not the whole population. The margin of error states how far the sample result is likely to sit from the true population value, at a stated level of confidence. A margin of plus or minus 3 percentage points at the 95 percent confidence level means that if the same survey were fielded 100 times, the result would land within 3 points of the true value in about 95 of them. Pew Research Center's guide to poll margins walks through that reading, and it is the interpretation most pollsters use.
Two numbers drive the whole calculation: the sample size and the split. Everything else in the arithmetic is fixed. The percentage matters less than people expect, because the share p enters as p x (1 - p), and that product changes only modestly across the middle of the range. It falls off near the extremes, which is why results at 90 percent or 10 percent carry a smaller margin than a 50/50 split.
The formula for a share, worked through
For a percentage from a simple random sample, the margin of error is:
margin of error = z x sqrt(p x (1 - p) / n)
where p is the reported share as a decimal, n is the number of respondents, and z is the critical value for the confidence level: 1.645 at 90 percent, 1.96 at 95 percent, 2.576 at 99 percent. The square root term is the standard error of the share, so the margin is just the standard error scaled by z.
Work the 1,000 person poll at 48 percent. The variance term is 0.48 x 0.52 = 0.2496, and 0.2496 / 1,000 = 0.0002496. Its square root is 0.015798, which is 1.58 points. At 95 percent confidence, 1.96 x 1.58 = 3.10 points. The interval runs from 44.9 to 51.1 percent.
| Confidence level | z value | Margin, 1,000 people at 48 percent | Interval |
|---|---|---|---|
| 90 percent | 1.645 | 2.60 points | 45.4 to 50.6 |
| 95 percent | 1.96 | 3.10 points | 44.9 to 51.1 |
| 99 percent | 2.576 | 4.07 points | 43.9 to 52.1 |
The 90 and 95 percent rows are the same survey read two ways. The Census Bureau's margin of error training material publishes its American Community Survey margins at 90 percent, so a figure copied from a Census table needs multiplying by 1.19 to become a 95 percent margin.
Sample size for a target margin
Run the formula backwards to plan a survey. Solving for n gives:
n = z^2 x p x (1 - p) / margin^2
For a 3 point margin at 95 percent confidence with no prior guess about the split, the work is 1.96^2 x 0.25 / 0.0009 = 0.9604 / 0.0009 = 1,067.1, which rounds up to 1,068 responses. Planning numbers follow a hard rule: each halving of the margin costs four times the sample.
| Target margin at 95 percent | Responses needed at a 50 percent split |
|---|---|
| 5 points | 385 |
| 3 points | 1,068 |
| 2 points | 2,401 |
| 1.5 points | 4,269 |
| 1 point | 9,604 |
The table assumes the worst case split of 50 percent. If earlier rounds of a survey put the share near 30 percent, the requirement drops, since p x (1 - p) = 0.21 instead of 0.25. The same 3 point target then needs 1.96^2 x 0.21 / 0.0009 = 896.4, which rounds up to 897.
Why 50 percent is the worst case
The term p x (1 - p) peaks at 0.25 when p is 0.50 and falls toward zero at the extremes. That is why pollsters who know nothing about the answer plan with 50 percent: it buys the largest margin, so no result can come in wider than promised. Hold n at 1,000 and 95 percent confidence, and the margin moves like this:
| Reported share | p x (1 - p) | Margin of error |
|---|---|---|
| 50 percent | 0.25 | 3.10 points |
| 40 or 60 percent | 0.24 | 3.04 points |
| 30 or 70 percent | 0.21 | 2.84 points |
| 20 or 80 percent | 0.16 | 2.48 points |
| 10 or 90 percent | 0.09 | 1.86 points |
The spread from 50 to 40 percent is a tenth of a point, which is why published margins usually quote a single number for the whole survey. The quoted number is the 50 percent worst case, and results elsewhere in the range are slightly tighter than the label says.
Reading a lead between two candidates
The margin printed on a poll applies to one candidate's share. A comparison of two shares carries a wider margin, because both numbers wobble. For a two candidate race where the shares add to 100 percent, the margin on the difference is close to twice the individual margin. A poll with a 3.10 point margin per candidate carries about a 6.2 point margin on the lead.
Work the 48 to 52 poll. The lead is 4 points, and the margin on that difference comes to 1.96 x sqrt((0.48 + 0.52 - 0.04^2) / 1,000) = 1.96 x sqrt(0.9984 / 1,000) = 1.96 x 3.16 points, which is 6.19. The 4 point lead sits well inside it, so the poll cannot distinguish the two candidates.
That logic also guards against calling a bare majority. A result of 51 percent with a 3 point margin has an interval reaching down to 48, so it is not evidence that most people hold the view. Pew's guidance to journalists makes both points: do not report decimal places, and do not call a lead real until it clears the wider difference margin.
Design effect, weighting and subgroups
Real surveys are weighted to match the sample to the population, and weighting that pushes values away from 1 inflates the variance. Statisticians bundle that inflation into a single multiplier called the design effect, usually written deff. The margin becomes:
margin = z x sqrt(p x (1 - p) / n) x sqrt(deff)
A design effect of 1.5 on the 1,000 person poll stretches the 3.10 point margin to 3.10 x 1.2247 = 3.79 points. Pew's methodology notes disclose the design effect behind each published margin for exactly this reason.
Subgroups behave like smaller surveys. The national margin says nothing about a crosstab. Quarter the sample to 250 respondents and the margin at an even split jumps to 6.20 points; take 100 respondents in a small demographic and it reaches 9.8 points. Any table that slices results by age, state or ethnicity needs its own margin, computed with the group's own count.
Small populations and the finite population correction
When the sample takes a real bite out of a small population, the ordinary formula overstates the error. The finite population correction multiplies the margin by sqrt((N - n) / (N - 1)), where N is the population size. It only bites when n exceeds about a tenth of N, and it does nothing for the national polls that sample a few thousand out of 200 million adults.
Survey 500 of a 2,000 person workforce at an even split. Without the correction the margin is 4.38 points. With it: 4.38 x sqrt(1,500 / 1,999) = 4.38 x 0.8663 = 3.80 points. The correction says a sample covering a quarter of a small group carries more information than the plain formula credits.
| Population N | Sample n | Margin, no correction | Margin with correction |
|---|---|---|---|
| 200,000 | 1,000 | 3.10 points | 3.09 points |
| 10,000 | 1,000 | 3.10 points | 2.94 points |
| 2,000 | 500 | 4.38 points | 3.80 points |
| 500 | 250 | 6.20 points | 4.39 points |
What the margin does not cover
The margin of error measures one source of error: sampling. Nonresponse, question wording, interviewer effects and mode effects all move results without touching the formula, and none of them shrink when the sample grows. The Census Bureau's ACS handbook, chapter 7 separates these into sampling and nonsampling error and warns that the published margin describes only the first kind. A poll can carry a tight margin and still be wrong by a wide and unmeasured amount.
Two further limits are worth knowing before quoting a number. First, the formula above leans on the normal approximation, and NIST's engineering statistics handbook recommends Wilson or Agresti-Coull intervals when a share sits near 0 or 100 percent or when the sample is small, because the symmetric interval can reach into impossible values. Second, opt-in online panels cannot compute a margin from sample size alone; Pew calls their published figure a modeled margin, built on assumptions about how repeat samples would behave.
For planning work the calculator above covers the common case: a probability sample, a single share, and a margin quoted at 90, 95 or 99 percent. For a mean instead of a share, the standard error comes from the sample spread rather than p x (1 - p), and the standard error calculator runs that version.
Frequently asked questions
What margin of error is acceptable for a survey?
Three points at 95 percent confidence is the customary floor for national polls, and it takes 1,068 responses at a 50 percent split. Academic work often wants 2 points or less, which costs 2,401 responses or more.
How do you calculate the margin of error for 1,000 respondents?
At a 50 percent split and 95 percent confidence, the margin is 1.96 x sqrt(0.25 / 1,000) = 3.10 points. A 48 percent result gives 1.96 x sqrt(0.2496 / 1,000) = 3.10 points as well, so the single quoted number covers the whole middle of the range.
How many people do I need to survey for a 2 point margin of error?
2,401 at a 50 percent split and 95 percent confidence, from n = 1.96^2 x 0.25 / 0.0004. If earlier waves put the share near 30 percent, 2,017 responses are enough.
Why is halving the margin four times as expensive?
The margin shrinks with the square root of the sample size. Going from 3 points to 1.5 points divides the margin by 2, so n must be multiplied by 2^2 = 4: from 1,068 responses to 4,269.
Is a 52 to 48 lead outside the margin of error?
No. Each share carries a 3.10 point margin in a 1,000 person poll, but the lead carries about 6.19 points, roughly twice as wide. A 4 point lead sits inside it, which is why pollsters call such races a statistical tie.
How do I convert a 90 percent margin to 95 percent?
Multiply by 1.96 / 1.645 = 1.19. Census Bureau tables publish margins at the 90 percent level, so a published margin of plus or minus 3,826 people becomes plus or minus 4,559 at 95 percent.
Does weighting change the margin of error?
Yes. Weighting inflates the variance by a factor called the design effect, so the margin is multiplied by its square root. A design effect of 1.5 turns a 3.10 point margin into 3.79 points.
What margin of error applies to a subgroup?
Recompute it with the subgroup's own count. A group of 250 respondents inside a 1,000 person poll has a 6.20 point margin at an even split, twice the 3.10 points quoted for the full sample.
Does the margin shrink in a small population?
It does, through the finite population correction sqrt((N - n) / (N - 1)). Surveying 500 of 2,000 people trims a 4.38 point margin to 3.80 points. The correction is negligible for national samples.
What sample size gives a 1 point margin of error?
9,604 responses at a 50 percent split and 95 percent confidence. Halving again to 0.5 points would need 38,416.
Does margin of error measure bias?
No. It only describes how much a result would move between repeated samples. Nonresponse, question wording and mode effects are nonsampling errors that the margin does not touch, and a biased poll stays biased no matter how large the sample.
Why do two polls with the same sample size show different margins?
Weighting, subgroup adjustment and rounding all differ across pollsters, and results quoted in whole percentages hide the rest. A poll that reports a design effect will always show a wider margin than one that quotes the unweighted formula.
Can the margin of error be smaller at 90 percent confidence than at 95 percent?
Yes, and that is by design. The same 1,000 person poll at 48 percent carries a 2.60 point margin at 90 percent and 4.07 points at 99 percent, because a wider promise needs a wider interval.
What is a modeled margin of error?
Opt-in online panels draw respondents without a probability sample, so pollsters publish a margin based on models of repeated sampling instead of the sample size formula. Pew Research Center labels these figures modeled margins and treats them as an estimate of precision, not a guarantee.
Spotted a wrong number or a broken result?
More Math tools
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.