Sample Size Calculator

Estimate survey sample size for a proportion with optional finite population correction.

Sample Size Calculator

Formula

n0=(z^2*p*(1-p))/moe^2; finite correction; ceil

z depends on confidence. Population 0 skips finite correction.

This sample size calculator estimates how many survey completes you need for a proportion question. Set confidence, margin of error, and expected proportion. Optionally enter a finite population.

Defaults: unlimited population, 95% confidence, 5% margin, 50% expected proportion. That setup rounds up to 385 completes for a very large population.

Formula

n0 = (z^2 * p * (1 – p)) / moe^2. z is 1.96 at 95%, 2.576 at 99%, otherwise 1.645. If population N > 0, n = n0 / (1 + (n0 – 1)/N). Then ceil.

Worked example

95% confidence, 5% margin, 50% proportion, population 0: n0 = 384.16, ceil = 385. With N = 1000 the finite correction yields about 278.

After you collect data, estimate precision with the confidence interval calculator or standardize a value with the z-score calculator.

Related calculators

Frequently Asked Questions

What z values does the tool use?

Confidence 95 uses z = 1.96. Confidence 99 uses z = 2.576. Other levels in range use z = 1.645.

What is the classic 95 percent example?

Confidence 95, margin 5 percent, proportion 50 percent, population 0 rounds up to sample size 385.

Why start at 50 percent proportion?

p = 0.5 maximizes p(1-p), so it is a conservative default when you do not know the true share.

When should I enter a population?

Enter population when the group is finite and not huge relative to n. Use 0 when the pool is effectively unlimited.

Is this for means or proportions?

This page uses the proportion (binary) sample size model, not a mean with known SD model.

Does ceil always round up?

Yes. Partial people are rounded up so the reported n meets the target precision.

Can I plan A/B tests here?

Only as a rough proportion screen. Powered A/B designs need effect size and power inputs this form does not include.

How does this relate to a confidence interval?

Sample size planning sets n before data. After you collect data, use a confidence interval calculator to report precision around an estimate.