About the Sample Size Calculator
The sample size depends on how certain you want to be (confidence level), how close you need the estimate to be (margin of error) and how varied the answers are (the expected proportion). When you have no idea of the proportion, use 50%, which gives the largest, safest sample.
If your population is small, for example 500 customers, a correction reduces the required sample. These formulas assume a simple random sample with good response rates; non-response, clustering and subgroup analysis can all require more.
How to Use the Sample Size Calculator
- Choose the confidence level and margin of error.
- Enter the expected proportion (50% if unknown).
- Optionally enter the population size.
- Read the required sample.
Formula and Method
Cochran’s formula
n₀ = z² p (1 − p) ÷ e²
Finite population
n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
Worked Example
A national survey
Input: 95%, ±5%, p = 50%
- n₀ = 1.96² × 0.25 ÷ 0.0025 = 384.16
Result: 385 respondents.
Frequently Asked Questions
Why use 50%?
p(1 − p) is largest at 50%, so it gives a sample large enough whatever the true proportion is.
Does population size matter?
Only when the sample is a sizeable share of it. For big populations the sample size barely changes.
How do I halve the margin of error?
Quadruple the sample size.
What about non-response?
Divide the required sample by the expected response rate to know how many to contact.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.