Sample Size Calculator

Calculate minimum sample size or margin of error for statistical surveys.

Find Out The Sample Size

This calculator computes the minimum number of necessary samples to meet the desired statistical constraints.

%
%   Use 50% if not sure
Leave blank if unlimited population size.
Result

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.

Sample Size vs. Margin of Error

Find The Margin of Error

This calculator computes the margin of error given a specific sample size and confidence level.

%
Leave blank if unlimited population size.
Result

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.

Margin of Error vs. Sample Size

Complete Sample Size Guide & Information

1. What is Sample Size?

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.

2. Key Statistical Concepts

Confidence Level

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.

Margin of Error

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.

Population Proportion (p)

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.

Population Size (N)

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.

3. Sample Size Formula

Infinite population (Cochran's formula)

n = (z² × p × (1 − p)) / e²

Finite population correction

nadj = n / (1 + (n − 1) / N)

where N is the population size.

4. Margin of Error Formula

e = z × √(p × (1 − p) / n)

For finite populations, the standard error is adjusted by the finite population correction factor:

e = z × √(p × (1 − p) / n) × √((N − n) / (N − 1))

5. Z-Scores for Common Confidence Levels

Confidence Level Z-Score (z) Common Usage
80%1.282Exploratory studies
85%1.440Preliminary research
90%1.645Business surveys
95%1.960Standard scientific research
99%2.576Medical and high-stakes research

6. Input & Control Definitions

7. Worked Examples

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%

8. Real-World Applications

9. Important Notes

10. Related Statistical Concepts

11. References

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.