Sample Size Calculator

Work out the sample size a survey needs for a target margin of error, with the finite population correction.

% points
%
50% gives the largest, most conservative sample.
%
Sample needed, large population 1068
n = z²p(1−p) ÷ m², then n′ = n ÷ (1 + (n−1)/N) for a finite population
Sample needed with the finite correction 1068
n = z²p(1−p) ÷ m², then n′ = n ÷ (1 + (n−1)/N) for a finite population
Invitations to send at your response rate 4272
n = z²p(1−p) ÷ m², then n′ = n ÷ (1 + (n−1)/N) for a finite population
Margin achieved at that sample 2.999 % points
Sample for a 1 point margin 9604
Sample for a 5 point margin 385

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Sample Size Calculator does

This sample size calculator will work out the sample size a survey needs for a target margin of error, with the finite population correction. Fill in all 5 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for planning a survey or poll. If you need the other side of this job, there is also a normal distribution calculator.

How to use it

  1. Enter the margin of error you want, in percentage points.
  2. Pick a confidence level.
  3. Leave the expected proportion at 50% unless you have good reason to change it.
  4. Enter the population size if it is small, and your expected response rate.

How it works

The counter-intuitive result here is that population size barely matters once the population is reasonably large. A 95% confidence interval with a 3-point margin needs about 1067 respondents whether the population is a hundred thousand or three hundred million. The finite population correction only bites when the sample is a substantial fraction of the whole.

That is why national polls use samples of around a thousand and why people find it implausible. The precision comes from the sample size, not from the sampling fraction.

Using 50% as the expected proportion gives the largest sample, because p(1−p) is maximised there. If you have good reason to expect a lopsided result, a smaller sample suffices — but guessing wrong in that direction leaves you under-powered, so 50% is the safe default.

All of this assumes genuine random sampling. A biased sample of ten thousand is worse than a random sample of a thousand, and no sample size calculation fixes a sampling frame that systematically misses people.

When to use it

  • Planning a survey or poll.
  • Working out how many invitations to send for a target completed sample.
  • Checking whether a published survey had enough respondents.
  • Explaining why national polls use samples of around a thousand.

Common mistakes to avoid

  • Assuming a larger population needs a proportionally larger sample.
  • Using an optimistic expected proportion and ending up under-powered.
  • Treating sample size as a substitute for representativeness. It is not.

Frequently asked questions

How many people do I need for a survey?

For a 3-point margin at 95% confidence, about 1067 respondents — almost regardless of population size. For a 5-point margin, 385.

Why does population size barely matter?

Because the margin of error depends on the absolute sample size, not the sampling fraction. The finite population correction only matters when your sample is a large share of the whole population.

Does a bigger sample fix a biased survey?

No. Bias does not shrink with sample size. A systematically unrepresentative sample of ten thousand is less reliable than a genuinely random sample of a thousand.

Related tools

See all math & statistics calculators →