Sample size
calculator

How many people do you need to survey, or to put in each group of an experiment? Choose what you want to measure, adjust the numbers, and the answer updates as you type.

Built for my MBA and doctoral students, and for anyone planning a survey or a study.

Confidence levelHow sure you want to be. 95% is the usual choice.
How far the true value can be from your estimate. ±5% is common; ±3% is more precise and needs more people.
±%
If you have no idea, leave 50%. It is the safest choice and gives the largest sample.
%
Optional. Only matters for small populations, such as the customers of one restaurant or the students of one school. Leave blank if it is large or unknown.
Optional. If only some people answer, tells you how many to invite.
%
Result

385

For your methods section


How it works

Percentages and averages use Cochran’s formula, with a correction when the population is small. Group comparisons use a power analysis for a two-sample t-test, which gives the same numbers as G*Power to within one participant.

n0 = z2 · p(1 − p) / e2

Percentage. For an average, replace p(1 − p) with σ2.

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

Finite population correction, applied only when you enter a population size.

n per group = 2(z1−α/2 + z1−β)2 / d2 + z21−α/2 / 4

Two-group comparison, with Guenther’s small-sample correction. Results are always rounded up.


Quick answers

Why is 385 the number everyone uses?

It is the sample for a large population at 95% confidence, a ±5% margin of error and p = 50%. Change any of those and the number changes.

Does a bigger population need a much bigger sample?

No. Above a few thousand people the sample barely changes. That is why a national poll and a city poll can use similar samples.

What if my response rate is low?

Enter it in the response rate field and the calculator tells you how many people to invite. A low response rate also raises the risk of bias, which a larger sample does not fix.

Which effect size should I use for an experiment?

Use one from a pilot or a similar published study. Without that, d = 0.20 is small, 0.50 medium and 0.80 large (Cohen, 1988). Smaller effects need many more participants.

Can I cite this calculator?

Cite the methods instead: Cochran (1977) for surveys and Cohen (1988) for power analysis. The sentence under the result already includes them.


References

  • Cochran, W. G. (1977). Sampling techniques (3rd ed.). Wiley.
  • Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum.
  • Guenther, W. C. (1981). Sample size formulas for normal theory t tests. The American Statistician, 35(4), 243–244.