CalculatorForEver
MATH / CALCULATOR

Sample Size Calculator

Plan a sample for a population proportion.

This sample size calculator plans an estimate of a population proportion using confidence level, desired margin of error and an expected proportion. It rounds the required count upward.

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the sample size calculator works

How to use this calculator

Use percentage points for the margin, not a relative percentage. Leave population at zero when the finite correction is unnecessary.

What the result means

This sample-size plan is for estimating a population proportion with a chosen margin in percentage points. A 50% expected proportion gives the largest required sample under this formula. A finite population correction can reduce the count when sampling without replacement from a known population.

The formula

n₀ = z²p(1−p)/e²; finite correction n = n₀/[1+(n₀−1)/N]

A worked example

At 95% confidence, 50% expected proportion and ±5 percentage points, an effectively infinite population needs 385 observations.

Assumptions & methodology

This excludes design effects, nonresponse and selection bias. For clustered surveys, get a design-specific sample plan. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: Introductory Statistics 2e.

INTERPRETATION

Understanding sample size results

Margin of error is in percentage points

An entered margin of five means plus or minus five percentage points, not a relative five-percent change in the estimated proportion. Choosing 50% as the expected proportion produces the largest variance in this simple planning formula when other inputs are fixed.

Planned responses are not invitations

The result is a number of observations under the stated simple-random-sample model. Nonresponse may require more invitations, and clustered sampling can require a design effect. The optional finite-population correction does not correct convenience sampling or guarantee representativeness.

RELATED GUIDES

Sample Size questions and examples

Read a worked explanation before trying another calculation.

QUESTIONS

Sample Size questions

Is a 5% margin the same as five percentage points?+

This input means ±5 percentage points. For an estimated 40% proportion, that is roughly 35% to 45%, not a 5% relative change.

Does the result include nonresponse?+

No. If only some selected people respond, the number invited must be larger. Clustered or weighted survey designs can also need a design adjustment.