Sample size formula
To estimate a proportion (an approval rating, the share of satisfied customers):
n = Z² × p × (1 − p) ÷ e²
Z is the critical value for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is the expected proportion and e is the margin of error. When you don't know p, use 50%: p × (1 − p) is largest at p = 0.5, so the sample size is the most conservative.
For a small population (a 500-person company, a school), apply the finite population correction: n = n₀ ÷ [1 + (n₀ − 1) ÷ N]. It lowers the number of responses you need.
Worked example: where "1,068" comes from
At 95% confidence, ±3 points and p = 50%: 1.96² × 0.25 ÷ 0.03² ≈ 1,067.1, rounded up to 1,068 responses. That's why many national polls interview roughly 1,000 adults: 1,000 responses give a margin of about ±3.1 points. If your population is only 5,000 people, about 880 responses are enough. Relax the margin to ±5 points and you need only 385.
How to read a poll's margin of error
If a poll of 1,068 people shows a candidate at 48% ±3, the true level of support is likely (with 95% confidence) between 45% and 51%. The margin applies to each candidate's number separately, so the uncertainty on the gap between two candidates is larger — a 2-point lead in a ±3 poll is not a clear lead.
Precision gets expensive: cutting the margin in half takes four times the sample. Going from ±3 (1,068) to ±2 needs 2,401 responses.
A big sample isn't automatically a good sample
- Random selection matters most. An online poll shared on social media reaches a self-selected group; no sample size fixes that.
- Subgroups need their own sample. If you want results for men and women or for each age group, each subgroup needs enough responses, so the total must be larger.
- Non-sampling error — question wording, non-response, people not answering honestly — isn't included in the margin of error and can be bigger.
Related statistics tools: confidence interval calculator, A/B test significance calculator and standard deviation calculator.
Frequently Asked Questions
Why do many polls survey about 1,000 people?
Because about 1,000 to 1,068 responses give a margin of error near ±3 percentage points at 95% confidence, a common balance between cost and precision.
Does a bigger population need a bigger sample?
Barely, once the population is large. A sample of about 1,068 gives ±3 points whether the population is 100,000 or all US adults. The correction only matters for small populations.
What sample size do I need for a ±5% margin of error?
About 385 responses at 95% confidence with p = 50% for a large population, fewer for a small one.
What proportion should I enter?
Use 50% if you have no prior data — it gives the largest sample. If you expect around 10% or 90%, the required sample is much smaller.
Does the margin of error cover all errors?
No. It only covers random sampling error. Biased samples, poor question wording and non-response are not included.