Sample Size Calculator
Estimate a survey sample size for a population proportion using confidence, margin of error and optional finite-population correction
This estimates sample size for a proportion under simple random sampling; design effects and non-response require separate adjustment.
Required sample size
How we calculated it
About the Sample Size Calculator
Sample size planning estimates how many observations are needed to achieve a chosen precision or statistical power under specific assumptions. It helps turn a target margin of error or detectable effect into a practical data-collection requirement.
The calculation is only as good as the assumptions about variability, confidence, population size and expected proportion. A larger sample reduces sampling uncertainty, but it does not correct biased sampling or poor measurement.
How to Use the Sample Size Calculator
- Choose the sample-size method that matches a mean, proportion or other supported design.
- Enter the desired confidence level and margin of error.
- Enter an estimated population proportion, standard deviation or effect assumption as required.
- Calculate the required sample and round up to a whole observation, then allow for nonresponse or unusable data separately.
How the Calculation Works
For a proportion with a large population, n = z²p(1−p)/E², where z is the critical value, p is the expected proportion and E is the desired margin of error in decimal form.
When population size is finite, a finite-population correction can reduce the required n. Other study designs use different formulas based on standard deviation, effect size, power and group structure.
Worked examples
Sample Size Calculator Worked Examples
Default
95% confidence, ±5% and p = 50% need 385 responses (n₀ = 384.16).
Tighter margin
At ±3% you need 1,068 responses.
Small population
From a population of 1,000, the same ±5% survey needs 278 responses.
Survey sample sizes
For a proportion under simple random sampling.
| Settings | Large-population n₀ | Required n |
|---|---|---|
| 95%, ±5% | 384.16 | 385 |
| 95%, ±3% | 1,067.11 | 1,068 |
| 99%, ±5% | 663.58 | 664 |
| 90%, ±5% | 270.60 | 271 |
| 95%, ±5%, population 1,000 | 384.16 | 278 |
| 95%, ±5%, p = 20% | 245.86 | 246 |
How the calculator works
The large-population sample size is n₀ = z² × p(1 − p) ÷ e², where z is the critical value for your confidence level, p is the expected proportion and e is the margin of error as a decimal. If you enter a population size N, the finite-population correction n = n₀ ÷ (1 + (n₀ − 1) ÷ N) reduces it. The result is rounded up to a whole number.
Planning a survey
If you do not know the expected proportion, use 50%, which gives the largest, safest sample. Halving the margin of error roughly quadruples the sample. The formula assumes a random sample, so adjust upward for expected non-response: if only 40% reply, invite about 2.5 times the required number. Complex designs such as cluster sampling need a further design-effect adjustment.
Common Mistakes
- Ignoring non-response. Invite more people than the required sample.
- Using a guess far from 50%. If unsure, use 50%.
- Thinking population size drives it. For large populations it barely matters.
Result guide
Understanding Your Sample Size Calculator Result
The result is the number of usable observations required under the selected model. It is not the number of people you necessarily need to contact if some will not respond.
Before you rely on the answer
Assumptions and Limitations
- Confidence level and margin of error are selected appropriately.
- The assumed proportion, variance or effect size is reasonable.
- Sampling is independent enough for the chosen formula and the design effect is not ignored when clustering matters.
Practical tip
Using This Result in Practice
If you are unsure about an expected proportion in a simple proportion survey, p=0.5 is conservative because it produces the largest variance. For real studies, also plan for response rate, eligibility losses and subgroup analyses.
Related calculations
Useful Calculations to Continue With
If you already know the sample size and want the expected precision, use the Margin of Error Calculator.
After data are collected, use the Confidence Interval Calculator to estimate a range around the sample result.
Common questions
Sample Size Calculator FAQ
How many responses do I need?
About 385 for ±5% at 95% confidence.
Why use 50%?
It gives the most conservative sample size.
Does population size matter?
Only for small populations.
What margin of error should I choose?
±5% is common. ±3% for more precision.
What about non-response?
Divide by the expected response rate.
