Sample Size Calculator

Work out how many survey responses you need for a given margin of error and confidence level.

%
%
%

Use 50% if unsure — it gives the largest, safest sample

Leave blank for a very large or unknown population

Required sample size
385
Required sample size vs margin of error
05001,0001,5002,0002.53.6254.755.87578.1259.25±5% → 385Margin of error (%)
Sample size before rounding (infinite population)
384.1459
After finite population correction
—
z critical value
1.96
Show the working
  1. z for 95% confidence = 1.95996
  2. n₀ = z² × p(1 − p) ÷ E² = 1.95996² × 0.5 × 0.5 ÷ 0.05² = 384.146
  3. Round up to the next whole respondent: 385

Runs entirely in your browser. Nothing you enter is uploaded.

Formula

n₀ = z² × p(1 − p) ÷ E²n = n₀ ÷ (1 + (n₀ − 1) ÷ N) (finite population)

How it works

Before running a survey or poll, you need to know how many people to ask. The answer depends on three things: how confident you want to be (usually 95%), how precise you need the result to be (the margin of error, often ±5 percentage points), and how varied the answers are likely to be.

Variability is captured by p(1 − p), where p is the proportion you expect to answer “yes”. This product is largest when p = 50%, so if you have no prior estimate, 50% gives a sample big enough for any outcome. At 95% confidence and ±5%, that famous worst case needs 385 responses.

If the population is small — say, the 1,000 employees of one company — you can apply the finite population correction, which reduces the required sample because each response covers a meaningful share of everyone. For populations in the hundreds of thousands or more, the correction makes almost no difference.

Frequently asked questions

Why does a national poll only need about 1,000 people?

Precision depends mainly on the sample size, not the population size. About 1,000 random respondents give a margin of error near ±3% at 95% confidence, whether the country has 5 million or 300 million people.

Does this account for people who don’t respond?

No. This is the number of completed responses you need. If you expect a 20% response rate, invite five times as many people.

How do I halve the margin of error?

You need roughly four times the sample size, because the margin of error shrinks with the square root of n.

esc