Sample Size Calculator

Determine the required sample size for surveys and studies based on your desired confidence level, margin of error, and population proportion.

REQUIRED SAMPLE SIZE
--
Confidence Level
--
Margin of Error
--
Z-Score
--
Finite Correction
--

What Is Sample Size?

Sample size is the number of observations or measurements needed in a study to achieve a specified level of statistical precision. Proper sample size determination is crucial for ensuring that study results are reliable and that resources are used efficiently. Too small a sample may fail to detect real effects, while too large a sample wastes resources without meaningful gains in precision.

The required sample size depends on four key factors: the desired confidence level, the acceptable margin of error, the expected variability in the population, and the total population size (for finite populations).

Sample Size Formula

n = (Z² × p × (1-p)) / E²

For finite populations, apply the correction factor:

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

Where Z is the Z-score for the desired confidence level, p is the estimated proportion, E is the margin of error, and N is the population size.

Factors Affecting Sample Size

FactorEffect on Sample Size
Higher confidence levelIncreases sample size
Smaller margin of errorIncreases sample size
Higher variability (p near 50%)Increases sample size
Smaller populationDecreases sample size (finite correction)

Common Sample Sizes

Margin of Error90% CL95% CL99% CL
1%6,7659,60416,587
3%7521,0681,844
5%271385664
10%6897166

Frequently Asked Questions

Why is 50% used as the default proportion?

Using p = 50% produces the maximum sample size for any given confidence level and margin of error. This is the most conservative estimate and is appropriate when you do not have prior knowledge about the population proportion. Using a proportion closer to 0% or 100% would yield a smaller required sample.

Does population size matter?

Population size has a diminishing effect. For large populations (over 20,000), the finite population correction has negligible impact. For small populations, the correction significantly reduces the required sample size because you are surveying a larger fraction of the total population.