Skip to content
Conyso.
Free tools · Bench

Sample size calculator.

How many samples you need to estimate a mean or a proportion, or the margin of error a given sample buys you. With finite-population correction and a live curve of the precision-versus-cost trade-off. Deterministic, no signup, nothing leaves your browser.

For a mean, the margin is in the same units as σ. For a proportion, use a decimal (0.05 = ±5 points); leave p at 0.5 for the most conservative size. A population size applies the finite-population correction.

— Samples needed
Z — Exact n —
Enter values to size the study.
What this does not do This sizes for a margin of error, not for statistical power. To detect a specific effect in a hypothesis test, you need a power calculation instead. It also assumes simple random sampling and, for a mean, that you know σ (use a pilot study, or roughly range ÷ 4).
Now run the study.

Once you have your samples, Bench runs the hypothesis test, capability, or survey analysis and writes the interpretation. Free, in your browser, no signup.

Open in Bench ↗

The method

Where the number comes from.

For a mean, the sample size is n = (Z · σ / E)²: bigger spread or tighter precision both demand more data, and higher confidence raises Z.

For a proportion, it is n = Z² · p(1 − p) / E². The term p(1 − p) is largest at p = 0.5, which is why 0.5 is the safe default when you cannot estimate it.

Because n scales with 1/E², halving the margin of error quadruples the sample, the diminishing return the curve above makes plain. When your population is small, the finite-population correction n′ = n / (1 + (n − 1)/N) brings the number back down. This is the planning math behind every study you will run in Bench.


FAQ

Sample size, answered.

How do I calculate sample size?

For a mean, n = (Z · σ / E)². For a proportion, n = Z² · p(1 − p) / E². Z comes from your confidence level, E is the margin of error you will accept, and the result is rounded up.

What sample size do I need for 95% confidence?

There is no single number, it depends on how much spread (σ or p) you have and how tight a margin of error (E) you need. Enter those above with the 95% option selected and the calculator gives the exact n.

What is finite population correction?

When you sample a large fraction of a small population, the standard formula over-counts. The corrected size is n′ = n / (1 + (n − 1)/N), where N is the population. Add a population size above to apply it.

Why use p = 0.5 for a proportion?

The term p(1 − p) is largest at 0.5, so it produces the most conservative (largest) sample size. Use 0.5 when you have no prior estimate of the proportion.

Is this sample size calculator free?

Yes, free with no signup, running entirely in your browser. After you collect your data, analyze it in Bench, also free.


More free tools

From the Bench engine.