The formula
n₀ = z² × p(1 − p) ÷ e²
Finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
People to invite = n ÷ expected response rate
z = 1.645 (90%), 1.960 (95%), 2.576 (99%); p = expected proportion; e = margin of error
Worked example
- 95% confidence (z = 1.96), ±5% margin and p = 50%:
- n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 3.8416 × 0.25 ÷ 0.0025 = 384.2, so you need 385 responses.
- For a population of 2,000 employees: n = 384.2 ÷ (1 + 383.2 ÷ 2,000) = 322.4, so 323 responses.
- With a 30% response rate, invite 323 ÷ 0.3 = 1,077 people.
How many people do you need to survey?
The number of responses needed depends on how precise you want the result to be (the margin of error), how sure you want to be that the true answer falls within that margin (the confidence level), how varied the answers are likely to be, and sometimes the size of the population. Surprisingly, for large populations the population size barely matters: about 385 responses give a ±5% margin at 95% confidence whether you're surveying a city of 100,000 or a country of 300 million.Choosing the confidence level and margin
A 95% confidence level is the standard in most research and polling. It means that if you repeated the survey many times, about 95% of the intervals would contain the true value. A 99% level needs about 70% more responses for the same margin. Halving the margin of error requires four times as many responses, because the margin shrinks with the square root of the sample size. A ±5% margin is common for general surveys, while national polls often aim for ±3% (about 1,070 responses) and important research for ±2% or less.
Why use 50% for the proportion?
The expected proportion is your best guess at the share of people who will give a particular answer. The formula's p(1 − p) term is largest at 50%, so using 50% gives the most conservative, largest sample size, which is why it's the default when you have no prior information. If earlier research suggests the proportion is around 10% or 90%, you can use that value and need fewer responses. For a 10% proportion at ±5%, you'd need 139 rather than 385.
Small populations
When your sample is a significant share of the population, such as surveying a company's 500 employees or a school's 800 pupils, the finite population correction reduces the number needed. For 500 people at ±5% and 95% confidence, you need 218 responses rather than 385. If the population is small enough, it may be simpler to survey everyone. The correction only matters when the sample is more than about 5% of the population; otherwise the large-population figure is fine.
Response rates and bias
The sample size is the number of completed responses you need, not the number of people you contact. Online and email surveys often get response rates of 10–30%, so enter your expected rate to see how many people to invite. A large sample doesn't fix bias: if the people who respond differ from those who don't, for example because only the most satisfied customers reply, the results can be misleading however many responses you get. Random sampling, reminders and short, neutral questionnaires all help.
Sample size for numeric answers
When you're estimating an average, such as mean spending or satisfaction scores on a 1–10 scale, rather than a percentage, the formula uses the standard deviation instead: n = (z × σ ÷ E)², where E is the margin you want in the same units. If spending has a standard deviation of $40 and you want the mean to within ±$5 at 95% confidence, you need (1.96 × 40 ÷ 5)² = 246 responses. Use a pilot survey or previous data to estimate the standard deviation.
Related statistics tools
Once you have your results, the margin of error calculator shows the precision of each answer, including when the actual proportion differs from your estimate. For experiments that compare two versions, such as website designs or marketing emails, our A/B test calculator tests whether the difference is statistically significant. To summarise numeric answers, use the standard deviation calculator.