- Enter the population size, or check "Unknown" if your population is very large (the formula then uses the infinite population version, which gives a slightly larger sample size).
- Choose the confidence level. 95% is standard for most surveys. 99% needs a larger sample; 90% needs fewer respondents.
- Set the margin of error. A 5% margin of error means your results could be off by plus or minus 5 percentage points.
- Enter the expected proportion. If you expect about 40% of respondents to answer yes, enter 40. If unsure, use 50% (gives the largest, most conservative sample size).
Sample Size Calculator
Calculate required sample size for surveys and experiments at any confidence level and margin of error.
Use 50% when unknown (gives maximum sample size)
Required Sample Size
371
How to Use the Sample Size Calculator
Sample Size Formula
For unknown/very large population:
n = Z² × p(1-p) / e²
For finite population (size N):
n_adjusted = n / (1 + (n-1)/N)
Where:
Z = z-score for confidence level (1.96 for 95%)
p = expected proportion (0.50 for maximum sample size)
e = margin of error as decimal (0.05 for 5%)
N = population size
Example: 95% CI, 5% margin, p=50%, N=10000
n = 1.96² × 0.5 × 0.5 / 0.05²
= 3.8416 × 0.25 / 0.0025
= 0.9604 / 0.0025
= 384.16 → 385
n_adjusted = 385 / (1 + (385-1)/10000)
= 385 / (1 + 0.0384)
= 385 / 1.0384
= 370.8 → 371Frequently Asked Questions
For a typical survey with a 95% confidence level and 5% margin of error, you need 385 respondents for a large population. If your population is small (e.g., 500 employees), the adjusted sample size will be smaller, perhaps around 217. The most important inputs are confidence level and margin of error. Population size matters mainly for small populations.
Related Calculators
Confidence Interval Calculator
Calculate confidence intervals at 90%, 95%, or 99% confidence level from sample mean, standard deviation, and size.
Z-Score Calculator
Calculate z-scores and find the corresponding percentile in a normal distribution.
P-Value Calculator
Calculate p-value from Z-score or T-score for one-tailed and two-tailed hypothesis tests.
Probability Calculator
Calculate the probability of events, combinations, and permutations.