Use Sample size mode to plan a survey, or switch to Margin of error mode to evaluate an existing sample. Both modes support calculator.net's confidence levels, an expected proportion, and an optional finite population size.
Formula
For a large population, the required sample size is:
n = Z² × p(1 − p) / e²
where e is the margin of error as a decimal. For a finite population N:
n adjusted = n / (1 + (n − 1) / N)
Margin-of-error mode reverses the calculation:
e = Z × √(p(1 − p) / n)
Examples
Default sample-size calculation
At 95% confidence, 5% margin of error, and p = 50%, the unrounded result is about 384.15, so the required sample size is 385.
Known sample of 100
At 95% confidence with n = 100 and p = 60%, the margin of error is 9.60%.