Sample Size Calculator
The sample size a survey or experiment needs for a target margin of error and confidence level — with finite population correction.
Required sample size
Note: The formula assumes random sampling from the population. Non-response and biased sampling are not fixed by any sample size — inflate invitations for expected response rates.
How Many Responses Do You Actually Need?
For estimating a proportion to within a margin of error e at a given confidence, the required sample is n = z*2 × p(1 − p) / e2. Use p = 0.5 when you have no prior guess — it maximises p(1 − p) and therefore gives the safe, largest sample. If the population is small, the finite population correction then shrinks the requirement: nadj = n / (1 + (n − 1) / N). The table under the result shows the requirement across margins from 1% to 10% so the cost of precision is visible before you commit.
Worked Example
At 95% confidence (z* = 1.96), a 5% margin and p = 0.5: n = 3.8416 × 0.25 / 0.0025 = 384.16, rounded up to 385 — the famous number behind most national polls. If the population is only 10,000, the correction trims it to 370. Halving the margin to 2.5% quadruples the requirement to about 1,537: precision is bought at square prices, which is why "±3%, n ≈ 1,067" is the polling industry's resting point.
Round Up, Then Recruit More
Always round the result up — rounding down quietly widens your real margin past the one you promised. Then inflate for reality: if you expect a 70% response rate, invite n / 0.7 people. And note what the formula does not do: it assumes random sampling. A biased sample of 100,000 is worse than a random sample of 400, a lesson every failed election poll re-teaches.
Frequently Asked Questions
Why is 385 the famous answer?
At 95 percent confidence, a 5 percent margin and the safe p of 0.5, the formula gives 384.16, which rounds up to 385. Most national polls start from this number.
Why use p = 0.5 if I expect 0.3?
p(1 - p) is largest at 0.5, so 0.5 gives the biggest, safest sample. If you are confident about 0.3, using it trims the requirement — at the risk of being wrong.
What does the finite population correction do?
When the population is small, sampling a large fraction of it earns extra precision, so fewer responses are needed: 385 becomes 370 for a population of 10,000.
Should I invite exactly the required number?
No. Round up (rounding down widens your real margin), then inflate for non-response: at a 70 percent expected response rate, invite the requirement divided by 0.7.