Sample Size Calculator (Survey Proportions)
Use this calculator to estimate how many responses you need for a survey, poll, or proportion estimate.
Why sample size calculation matters
A sample that is too small can produce unstable results, while an oversized sample can waste time and budget. Sample size calculation helps you find the practical middle ground: enough observations to make a reliable estimate, without collecting unnecessary data.
In most business and research settings, we calculate sample size so that our estimate of a percentage (for example, conversion rate, approval rate, defect rate, or prevalence) has a desired precision. That precision is usually stated as a margin of error at a selected confidence level.
Core formula for a proportion
For a large population, the classic sample size formula for a proportion is:
- Z = z-score for your confidence level (e.g., 1.96 for 95%)
- p = expected proportion (as a decimal, e.g., 0.50)
- e = margin of error (as a decimal, e.g., 0.05)
If you do not know the expected proportion, use p = 0.50. This is conservative and yields the largest required sample size.
Finite population correction
If your total population is not very large, apply finite population correction (FPC):
where N is the population size. This usually reduces the required sample when N is small.
Design effect and response rate
Real-world sampling often needs two practical adjustments:
- Design effect (DEFF): If your sampling design is clustered or complex, precision is reduced. Multiply by DEFF.
- Response rate: If only a fraction of invited participants respond, inflate your invite count.
nfinal invites = ncorrected / response rate
How to choose good inputs
1) Confidence level
95% is the standard default in many fields. Use 99% when decisions are high risk, and 90% when speed matters more than strict certainty.
2) Margin of error
Smaller margins (e.g., 3%) require larger samples than broader margins (e.g., 5% or 7%). Always choose this value based on decision impact, not just convenience.
3) Estimated proportion
Use historical data if available. If not, 50% is safe and conservative. If your true proportion is likely near 10% or 90%, your required sample can be lower.
Worked example
Suppose you want a 95% confidence level, 5% margin of error, unknown proportion (use 50%), and a large population.
- Z = 1.96
- p = 0.50
- e = 0.05
Plugging these into the formula gives a baseline near 384.16, so you round up to 385 completed responses. If you expect only a 50% response rate, invite approximately 770 people.
Common mistakes to avoid
- Using a very small pilot proportion as if it were certain.
- Ignoring nonresponse and then missing the target number of completed surveys.
- Forgetting design effect in clustered or multi-stage samples.
- Choosing margin of error without linking it to decision quality.
- Failing to round up sample size to the next whole number.
When this calculator is appropriate
This calculator is ideal for:
- Customer satisfaction surveys
- Election and opinion polling
- Quality-control proportion checks
- Basic prevalence estimation
For comparing means, time-to-event outcomes, or multi-arm experiments, use a design-specific power analysis instead.
Final takeaway
Good sample size planning protects both validity and resources. Start with confidence level, margin of error, and a realistic estimate of proportion; then adjust for population size, design effect, and response rate. A few minutes of planning can prevent weeks of unusable data collection.