Quick Answer
For a 95% confidence level with a 5% margin of error and a 50% expected proportion, the required sample size is 385 respondents. If the total population is 10,000, the adjusted sample size is 370.
Use 50% if unknown (produces the largest, most conservative sample size)
Leave blank if the population is very large or unknown
Common Examples
| Input | Result |
|---|---|
| 95% confidence, 5% margin, 50% proportion | Sample size: 385 |
| 99% confidence, 5% margin, 50% proportion | Sample size: 664 |
| 95% confidence, 3% margin, 50% proportion | Sample size: 1,068 |
| 95% confidence, 5% margin, 50% proportion, pop. 10,000 | Adjusted sample size: 370 |
| 90% confidence, 5% margin, 50% proportion | Sample size: 271 |
How It Works
This calculator uses the standard sample size formula for estimating a population proportion:
n = (Z^2 x p x (1 - p)) / E^2
Where:
- n = required sample size
- Z = z-score corresponding to the desired confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%)
- p = expected proportion of the attribute being measured (as a decimal; use 0.5 if unknown)
- E = margin of error (as a decimal; e.g., 0.05 for 5%)
Why use p = 0.5?
The product p x (1 - p) is maximized when p = 0.5, which produces the largest (most conservative) sample size. If you have no prior estimate of the proportion, using 0.5 guarantees that your sample size is large enough regardless of the actual proportion.
Finite Population Correction
When the population is not infinitely large, the required sample size can be reduced using the finite population correction (FPC):
n_adj = n / (1 + (n - 1) / N)
Where N is the total population size. This adjustment is most significant when the calculated sample size is a large fraction of the population. For very large populations, the correction has minimal effect.
Confidence Level and Z-Score
The confidence level indicates the probability that the true population parameter falls within the margin of error of the sample estimate. A 95% confidence level means that if the same survey were conducted 100 times, approximately 95 of those surveys would capture the true value within the margin of error. Higher confidence levels require larger sample sizes.
Worked Example
A researcher wants to survey voters with 95% confidence and a 5% margin of error, with no prior estimate of the proportion. Z = 1.96 (for 95%). p = 0.5 (unknown proportion). E = 0.05 (5% margin). n = (1.96^2 x 0.5 x 0.5) / 0.05^2 = (3.8416 x 0.25) / 0.0025 = 0.9604 / 0.0025 = 384.16, rounded up to 385. If the voting population is 10,000, the adjusted sample size = 385 / (1 + (385 - 1) / 10,000) = 385 / 1.0384 = 370.8, rounded up to 371.
Related Calculators
Z-Score Calculator
Calculate the z-score, cumulative probability, and percentile for any value given a mean and standard deviation.
Standard Deviation Calculator
Calculate the standard deviation, variance, mean, and other statistics for any data set.
Percentage Calculator
Calculate percentages: find X% of Y, what percent X is of Y, percentage increase/decrease, and more.
CalculateY