What sampling error measures
Sampling error is the difference between a value estimated from a sample and the true value in the whole population. When you poll 1,000 people instead of asking everyone, the result you get is not exact — a different random 1,000 people would give a slightly different answer. The margin of error quantifies how far off your estimate is likely to be, purely because you sampled rather than measured everyone. It does not account for bad question wording, non-response, or a biased sample; it captures only the random variation inherent in sampling.
The formula
For an estimated proportion (a percentage such as "52% approve"), the margin of error is:
Margin of error = z × √(p(1 − p) / n)
where p is the sample proportion written as a decimal, n is the sample size, and z is the critical value from the standard normal distribution for your chosen confidence level. The quantity √(p(1 − p) / n) on its own is the standard error of the proportion; multiplying by z widens it into a confidence interval. When the sample is a large fraction of a finite population, multiply by the finite population correction factor √((N − n) / (N − 1)), where N is the population size, to shrink the error accordingly.
Critical z-values
- 90% confidence: z = 1.645
- 95% confidence: z = 1.96 (the standard for most published polls)
- 99% confidence: z = 2.576
Why p = 50% is the "worst case"
The term p(1 − p) is largest when p = 0.5, giving 0.25. Because that maximizes the standard error, pollsters who don't yet know the result — or who want a single margin that covers every question on a survey — assume p = 50%. That is why headline margins of error are conservative: a proportion near 10% or 90% actually has a smaller sampling error than the reported figure.
Common reference points
At 95% confidence with p = 50%, a sample of n = 400 gives roughly ±4.9 points, n = 1,000 gives about ±3.1 points, and n = 2,401 gives about ±2.0 points. Because error shrinks with the square root of n, halving the margin requires roughly quadrupling the sample. This is why national polls rarely exceed a few thousand respondents — the accuracy gained per extra interview keeps falling.