What This Tool Calculates
This calculator estimates the minimum number of observations required to reach a target precision at a selected confidence level. It supports two common planning modes: proportion studies (survey percentages, conversion rates, pass/fail outcomes) and mean studies (continuous outcomes such as time, score, or weight). Proper sample-size planning is essential for credible statistical inference and helps avoid underpowered studies.
Sample Size Formulas
For Proportions
n = z² × p(1−p) / E²
- z: critical value for confidence level
- p: expected proportion (as decimal)
- E: desired margin of error (as decimal)
For Means
n = (z × σ / E)²
- σ: standard deviation estimate
- E: acceptable absolute error in original units
Finite Population Correction
If total population size is known and limited, adjusted sample size can be computed as: n_adj = (N × n) / (N + n − 1).
Worked Example (Proportion)
Suppose you need a 95% confidence survey with ±5% margin of error and unknown true proportion, so you use p = 0.50.
- z = 1.96
- n = 1.96² × 0.5 × 0.5 / 0.05² ≈ 384.16
- Round up to 385 responses
Choosing Inputs Well
- Use p = 50% if uncertain, to avoid underestimating required sample size.
- Use pilot or historical data for standard deviation in mean studies.
- Add a practical response-loss buffer (for example, +10% to +20%) for real-world collection.
Sources and References
- Cochran, W. G. Sampling Techniques.
- Kish, L. Survey Sampling.
- NIST/SEMATECH e-Handbook of Statistical Methods — Sample Size Determination.