HomeMath › Sample Size

Sample Size Calculator

%
%
Required Sample Size
0
Confidence Level
95%
Margin of Error
0%
Show the math
Enter values to see the worked formula.

What Your Result Means

How This Calculator Works

You choose a confidence level (which maps to a z-score), enter a margin of error and an expected population proportion. The formula n = z² × p(1−p) / e² gives the sample size for an infinitely large population. If you provide a finite population size, a correction factor reduces n because sampling a large share of a small population gives extra precision. The result is always rounded up to the next whole number.

Quick Questions

What proportion should I use if I have no idea?

Use 50%. A 50/50 split maximizes the variance term p(1−p), which gives the largest (most conservative) sample size. If the true proportion turns out to be farther from 50%, your margin of error will actually be smaller than planned.

When does the finite-population correction matter?

It makes a meaningful difference when your sample will cover more than about 5% of the total population. For very large populations (e.g., a national survey), leaving the population field empty is fine — the correction is negligible.

Does this work for means as well as proportions?

This formula is specifically for estimating a proportion (yes/no outcome). For a continuous variable like average income, you'd need a different formula that includes the population standard deviation.

Should I add extra to account for non-response?

Yes. This calculator gives the number of completed responses you need. If you expect a 40% response rate, divide the sample size by 0.40 to find how many invitations to send.

Sources

Method & review

MethodologyHow we calculate this Reviewed & Updated2026-04 Next review2027-04

Estimate only. Results reflect your inputs and standard formulas. Double-check important decisions independently.