Everyday utility

Sample Size Calculator

Enter confidence level, margin of error, and population size to estimate how many responses a simple proportion survey needs.

Last reviewed May 18, 2026 by ToolSpilo Editorial Team.

Review method: Reviewed against the implemented sample-size inputs and margin-of-error examples, displayed formulas, and worked examples.

Calculator tool

How this calculator works

Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.

What this estimate assumes

The calculator estimates sample size for a proportion using a conservative response proportion of p=0.5p = 0.5, which gives the largest required sample when the true proportion is unknown:

n0=Z2p(1p)e2n_0 = \frac{Z^2 p(1-p)}{e^2}

Where ZZ is the confidence-level z-score and ee is the margin of error as a decimal. If a finite population is entered, the tool applies a finite-population correction so the requirement can shrink when the population itself is not large.

What sample size does not fix

A large sample cannot repair biased sampling, low response quality, poor question wording, or a non-representative frame. The result is a mathematical target for a simple random-sample design, not a guarantee that a survey will be trustworthy.

Frequently asked questions

Why does the calculator use p = 0.5?

When the true proportion is unknown, 0.5 is conservative because it produces the largest required sample size for a given confidence level and margin of error.

What happens when I enter a finite population?

The calculator applies a finite-population correction, which can reduce the required sample when the population is not extremely large.

Does a larger sample remove all survey error?

No. It reduces random sampling error, but it does not cure biased recruitment, misleading questions, or poor response coverage.

Why do tighter margins of error need more responses?

Because estimating more precisely requires more information. Reducing the allowed error makes the denominator smaller, which raises the needed sample size.