Skip to content
Zesona
Sample Size CalculatorLocal

Sample Size Calculator

Find the sample size needed for a target margin of error, with the finite population correction, rounded up.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

In percentage points. Enter 5 or 0.05.

Enter 95 or 0.95 - both are read correctly.

Leave at 50% unless you have a prior estimate; 50% gives the largest, safest requirement.

Optional. Supplying it applies the finite population correction, which lowers the requirement.

How many digits to show when the answer is irrational. An exact answer ignores this.

Try an example

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Enter the margin of error you want and the confidence level.

  2. 2

    Supply the population size if it is small and known; otherwise an effectively infinite population is assumed.

Questions about Sample Size Calculator

Why is 385 the answer for plus or minus 5% at 95%?

Because 1.96 squared times 0.25, divided by 0.05 squared, is 384.15 - and you cannot survey a fraction of a person, so it rounds up to 385. Rounding to nearest would give 384 and leave the margin of error very slightly worse than you asked for.

Why does the expected proportion default to 50%?

Because the requirement is largest there, so it is the safe assumption when you do not yet know the answer - which is usually why you are running the survey. If you have a solid prior estimate of, say, 10%, the requirement drops substantially.

Why does the population size barely matter?

Because the precision of a sample depends on its absolute size, not on the fraction of the population it covers. 385 people gives plus or minus 5% whether the population is 100,000 or 100 million. The finite population correction only bites when the sample is a large fraction of the whole - for 10,000 people the requirement drops from 385 to 370.

Is this how many people I need to invite?

No - it is how many responses you need. If you expect 40% to reply, invite two and a half times this number. Non-response is also not random: the people who do not answer often differ systematically from those who do, which is a bias this calculation cannot address.

Is my data sent anywhere?

No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.

Other tools you might reach for next.