Sample Size Calculator
Determine the required sample size for surveys given confidence level, margin of error, and population.
Sample Size Calculator tool
Example
Input: 95% confidence, 5% margin of error, 50% population proportion, population size 0 (infinite)
Result: Required sample size 385 (unadjusted 384.16, z = 1.96)
n = z^2 x p x (1 - p) / e^2 = 1.96^2 x 0.5 x 0.5 / 0.05^2 = 0.9604 / 0.0025 = 384.16, rounded up to 385.
Sample Size by Margin of Error
| Margin of error | 90% confidence | 95% confidence | 99% confidence |
|---|---|---|---|
| 1% | 6,766 | 9,604 | 16,590 |
| 2% | 1,692 | 2,401 | 4,148 |
| 3% | 752 | 1,068 | 1,844 |
| 4% | 423 | 601 | 1,037 |
| 5% | 271 | 385 | 664 |
| 10% | 68 | 97 | 166 |
Large or unknown population, 50% proportion. A smaller population needs fewer responses.
- Select your desired confidence level from the options - 90%, 95%, or 99%.
- Set the acceptable margin of error as a percentage, such as 3% or 5%, and keep the population proportion at 50% unless you have a better estimate.
- Enter the total population size if known, or leave it at 0 for a large or unknown population.
- Review the calculated minimum sample size required to achieve statistically valid results.
- Adjust the confidence level and margin of error to see how they trade off against the required sample size.
How Many Survey Responses Do You Need?
For a survey with a 95% confidence level and a 5% margin of error, you need 385 responses from a large population. This calculator works out that minimum for your own settings. Choose the confidence level and the margin of error. Then add the expected proportion and the population size if you know them.
The two main settings set the precision. The margin of error is how far the survey result may sit from the true value. With a result of 60% and a margin of 5%, the true figure is likely between 55% and 65%. The confidence level says how sure you can be of that range. At 95%, about 95 out of 100 surveys run the same way would capture the true value. Tighter margins cost a lot. Halving the margin from 5% to 2.5% raises the sample from 385 to 1,537.
The expected proportion is your best guess at the answer, such as the share of people who will say yes. Leaving it at 50% is the safe choice, because it gives the largest sample. If you expect about 20%, the sample drops to 246. Population size matters only for small groups. The tool applies a finite population correction. A group of 1,000 needs 278 responses and a group of 500 needs 218. Beyond about 20,000 people, the answer barely changes from 385.
The formula assumes a simple random sample, where everyone has an equal chance of being picked. It does not fix bias from who chooses to reply, and it covers yes or no style answers, not averages. Plan for non-response too. If you need 385 replies and expect a quarter of people to answer, invite at least 1,540. The z-scores behind each confidence level come from the Normal Distribution Calculator.
Formula / How It Works
Frequently Asked Questions
Related Tools
Normal Distribution Calculator
Calculate z-scores, percentiles, and probabilities with a bell curve that shades the area below your value.
Statistics and DataStandard Deviation Calculator
Calculate mean, variance, and standard deviation for both population and sample data sets instantly.
Statistics and DataProbability Calculator
Calculate basic, conditional, and Bayesian probability with odds, an independence check, and a Bayes breakdown.
Statistics and DataPercentage Calculator
Calculate percentages, percentage change, difference, increase, and decrease instantly.
Math and Numbers