Calculates on this device. File exports run online.
Survey Sample Size Calculator
Type the margin of error and the confidence level you need. The calculator gives the number of completed responses, corrected for the size of your population, and how many people to invite.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to find your sample size
- Choose the confidence level (95% is usual) and the margin of error (for example ±5 percentage points).
- Type the population size if you know it, such as the number of employees or customers. Leave it empty for a very large population.
- Keep the expected proportion at 50% unless an earlier survey gave a better guess; 50% gives the safest (largest) sample.
- Under More options, add a design effect for cluster samples and the response rate you expect.
The formulas
- Cochran: n₀ = z² × p × (1 − p) ÷ E². With a population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N), rounded up. This is the same number as the formula of Krejcie and Morgan (1970).
- Slovin (Yamane): n = N ÷ (1 + N × E²). It has no confidence level and assumes about 95% and p = 50%.
- Margin of error of a sample: E = z × √(p (1 − p) ÷ n) × √((N − n) ÷ (N − 1)).
- Average: n₀ = (z × σ ÷ E)², with σ the standard deviation you expect.
Worked example
95% confidence (z = 1.95996), ±5% and p = 50%: n₀ = 1.95996² × 0.5 × 0.5 ÷ 0.05² = 384.15, so 385 responses for a very large population.
For a population of 1,000: n = 384.15 ÷ (1 + 383.15 ÷ 1,000) = 277.75, so 278 responses. At a 30% response rate, invite 927 people.
Limits you should know
- The sizes assume a random sample. A larger sample does not fix a biased one: people who choose not to answer can differ from those who answer.
- For comparing groups (A/B tests, trials, t tests, ANOVA), use the A/B Test Calculator or the Statistical Power Calculator: those sizes depend on the difference you want to detect.
- Qualitative studies (interviews, focus groups) are not sized by these formulas.