Calculate minimum sample size or margin of error for statistical surveys.
This calculator computes the minimum number of necessary samples to meet the desired statistical constraints.
Sample size: 385
This means 385 or more measurements/surveys are needed to have a confidence level of 95% that the real value is within ±5% of the measured/surveyed value.
This calculator computes the margin of error given a specific sample size and confidence level.
Margin of error: 9.60%
This means, in this case, there is a 95% chance that the real value is within ±9.60% of the measured/surveyed value.
Sample size is the number of observations or individuals included in a statistical study. Choosing the right sample size is critical: too small and results may be unreliable; too large and the study wastes time and resources. This calculator helps determine the minimum sample size needed to achieve a desired level of statistical precision.
The confidence level is the probability that the true population parameter lies within the calculated confidence interval. Common values are 90%, 95%, and 99%. A 95% confidence level means that if the same study were repeated many times, 95% of the resulting intervals would contain the true population value.
The margin of error describes the range above and below a sample estimate within which the true population value is likely to fall. A smaller margin of error requires a larger sample size.
The expected percentage of the population that has the characteristic being measured. When unknown, use 50% (0.5) because it produces the maximum variance and thus the most conservative (largest) sample size estimate.
The total number of individuals in the population. For very large or unknown populations, this can be left blank (infinite population assumption). For small populations, the finite population correction factor reduces the required sample size.
where N is the population size.
For finite populations, the standard error is adjusted by the finite population correction factor:
| Confidence Level | Z-Score (z) | Common Usage |
|---|---|---|
| 80% | 1.282 | Exploratory studies |
| 85% | 1.440 | Preliminary research |
| 90% | 1.645 | Business surveys |
| 95% | 1.960 | Standard scientific research |
| 99% | 2.576 | Medical and high-stakes research |
Example 1 — Sample size (default): 95% confidence, 5% margin, 50% proportion, infinite population
Example 2 — Margin of error (default): 95% confidence, n = 100, p = 60%
1. Cochran, William G. "Sampling Techniques." John Wiley & Sons. 1977.
2. Krejcie, Robert V. and Morgan, Daryle W. "Determining Sample Size for Research Activities." Educational and Psychological Measurement. 1970.
3. Israel, Glenn D. "Determining Sample Size." University of Florida Extension. 1992.
4. Bartlett, Joanna E. et al. "What is the best sample size for a survey?" International Journal of Market Research. 2001.
5. Lemeshow, Stanley et al. "Sample Size Determination in Health Studies." John Wiley & Sons. 1990.
6. Moore, David S. and McCabe, George P. "Introduction to the Practice of Statistics." W.H. Freeman. 2012.