Sample size and margin of error
5 min read
Short answer
Solve the margin of error formula for : , rounding up. For a proportion, use , with as the safe worst case. Halving the margin needs four times the sample.
Polls and proportions
For a 95% poll with margin points, . Whether the population is 10 million or 300 million barely matters, because the margin depends on , not on the fraction sampled (unless the sample is a big share of a small population).
Where σ comes from
Use a pilot study, past data or a conservative estimate. If is underestimated, the real margin will end up larger than planned.
Worked example
How large a sample estimates a mean to within at 95% confidence if ?
. Round up to participants, since you need at least this many to guarantee the margin.
Try it yourself
With the same , what sample size gives ?
Show the answer
, so : four times as large as for .
Keep going with practice
Vidi's central-limit-theorem lessons explain why the margin of error shrinks as one over the square root of n.