About the Sample Size Calculator
This calculator determines the minimum number of respondents a survey needs to estimate a population proportion within a chosen margin of error and confidence level. It is the standard tool for planning a poll, customer survey, or research study before data collection begins, so you know how many people to reach in advance.
How It Works
You select a confidence level, set a target margin of error as a percentage, and provide an estimated proportion (defaulting to 50%, the most conservative assumption when the true value is unknown). If you know the total population size, you can enter it to shrink the required sample using a finite population correction; leaving it at zero treats the population as effectively unlimited. The result is the smallest whole number of respondents needed to hit your precision target.
Formula & Methodology
By hand, square the z-score, multiply by p(1-p), and divide by e squared to get n0. For a 95% confidence level (z = 1.96), 50% proportion, and 5% margin of error, that is 1.96^2 x 0.25 / 0.05^2 = 0.9604 / 0.0025 = 384.16, which rounds up to 385, the figure many surveys cite as a rule of thumb. If a finite population is known, apply the correction term afterward to reduce n0 further, since sampling a large share of a small population needs fewer people than an unlimited population would.
Examples
Unknown population survey
At 95% confidence, a 5% margin of error, and 50% estimated proportion with no population entered, n0 works out to 384.16, so the calculator returns a required sample size of 385 respondents.
Known population of 2,000
Using the same 384.16 uncorrected figure but entering a population of 2,000 applies the finite population correction: n = 384.16 / (1 + 383.16/2000) = 384.16 / 1.19158 = 322.46, rounding up to 323 respondents, fewer than the unlimited-population case.
Advantages
- Prevents both under-sampling, which leaves results too imprecise to trust, and over-sampling, which wastes time and budget on data collection beyond what precision requires.
- Builds in the finite population correction automatically, so researchers surveying a known, bounded group do not have to apply that adjustment by hand.
- Defaults to the conservative 50% proportion assumption, giving a safe planning number even before any pilot data exists.
Common Mistakes
- Assuming a fixed number like 385 or 1,000 always applies, when the required size actually shifts with the chosen margin of error, confidence level, and proportion.
- Entering the total population size when the true intent is a proportion estimate for a much larger group, which unnecessarily shrinks the calculated sample size.
- Confusing margin of error with confidence level; a tighter margin of error at the same confidence level requires a much larger sample, since e appears squared in the denominator.
Edge Cases to Watch For
- Margin of error must be greater than zero; a zero value triggers an error since it would require an infinite sample.
- Leaving population size at zero skips the finite population correction entirely and treats the population as unlimited.
- p(1-p) is maximized at p = 50%, so using 50% when the true proportion is unknown produces the largest, most conservative sample size.
- The finite population correction only meaningfully reduces the sample when the population is small relative to n0; for large populations the corrected and uncorrected values converge.
Common Use Cases
- Market researchers planning how many customers to survey before launching a satisfaction or preference study.
- Academic and applied researchers determining respondent counts needed for a thesis, grant proposal, or funded study.
- Political pollsters and public opinion firms sizing samples to hit a target margin of error for a published poll.