Survey sample size calculator
Set the margin of error and confidence level you need to find the completed responses required, then see how many people to invite at your expected response rate, or check the margin of error of the responses you have.
Set your precision
For estimating a percentage, such as the share of respondents who agree with a statement.
LIVE RESULT
INSTANTSample you need
Assumes a probability sample. The margin of error covers sampling error only, not bias from who chooses to respond, question wording or a convenience sample.
How survey sample size is calculated
The sample size for estimating a percentage depends on three things: how precise the estimate must be (the margin of error), how confident you want to be that the true value lies within that margin (the confidence level), and how variable the answers are expected to be. Cochran's formula combines them, and a correction reduces the number when the whole population is small.
n₀ = z² × p × (1 − p) ÷ e²
n = n₀ ÷ (1 + (n₀ − 1) ÷ N) for a population of N
Invitations = n ÷ response rate
Here z is 1.96 for 95% confidence, p is the expected proportion and e the margin of error as a proportion. Using p = 50% gives the largest sample and is the safe choice when you have no estimate.
Worked example
For ±5 percentage points at 95% confidence in a large population, you need 385 completed responses. If about 30% of invited people respond, invite 1,284.
Completed responses needed at 95% confidence
| Population | ±3 points | ±5 points | ±10 points |
|---|---|---|---|
| 100 | 92 | 80 | 50 |
| 500 | 341 | 218 | 81 |
| 1,000 | 517 | 278 | 88 |
| 5,000 | 880 | 357 | 95 |
| 20,000 | 1,014 | 377 | 96 |
| Very large | 1,068 | 385 | 97 |
Beyond a population of about 20,000 the sample size barely changes: a national survey needs much the same number of responses as a survey of a mid-sized city. Precision costs more than population: halving the margin of error roughly quadruples the sample.
Things that change the number
- Subgroups. If you will report results for men and women, or for each department, each subgroup needs enough responses for its own margin of error.
- Design effect. Sampling whole classes, schools or households makes answers within a cluster similar, so the sample must be larger. Multiply by the design effect.
- Response rate. Low response rates raise the number of invitations, and also the risk that respondents differ from non-respondents. More invitations do not fix that bias.
- Other analyses. For comparing groups, regression or structural equation models, plan the sample with a power analysis instead; see choosing an effect size for a power analysis and the SEM sample size calculator.
Useful context
Before sending survey invitations
Why does 50% expected proportion produce the largest sample size?
The binomial variance p(1 − p) reaches its maximum (0.25) at p = 50%. When you do not know the population split ahead of time, entering 50% yields the conservative upper bound so your margin of error will not widen unexpectedly.
Does finite-population correction help much above 20,000 people?
Barely. For ±5% at 95% confidence, an infinite population needs 385 completed responses while a population of 20,000 needs 377—only 8 fewer. Population size matters mainly for targeted employee, school or member surveys under a few thousand.
When should I use a power analysis instead of Cochran’s survey formula?
Use Cochran’s formula when estimating a single proportion or percentage within a margin of error. When your goal is comparing means or correlations between two groups or fitting a regression/SEM model, use the power analysis calculator.