MATHS & STATISTICS / STATISTICS

Sample size calculator for surveys

Find how many responses a survey needs for a chosen confidence level and margin of error, with an optional finite population correction.

Last reviewed:

← All tools

Your numbers

Use 50% if you do not know; it gives the most cautious answer.
Leave at 0 if the population is unknown or very large.
◈ Your values stay in your browser. No account needed.
YOUR RESULT

Enter your numbers to see a result.

WORKED EXAMPLE

Sample size calculator for surveys: a worked example

With confidence level 95%, margin of error (± %) 5, expected proportion (%) 50, population size 0, the required sample size is 385.

Inputs
Confidence level95%
Margin of error (± %)5
Expected proportion (%)50
Population size0
Results
Required sample size385
Sample size before rounding up384.1458821
Without a population correction384.1458821
Z-score for the confidence level1.959963985
THE METHOD

How it works

Choose how confident you want to be and how close the result should be to the true value. The expected proportion is your best guess at the answer you are measuring; 50% is the safe default because it gives the largest sample. If you are surveying a small, known group, enter its size to apply the finite population correction, which lowers the number needed.

Formulan₀ = z² × p(1 − p) ÷ e². With a population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). Round up to a whole response.
ASSUMPTIONS

Assumptions and limits

  • Respondents are a simple random sample, and everyone selected responds.
  • The formula is for estimating a single proportion using the normal approximation.
  • Non-response, weighting and complex sampling designs need larger samples than this estimate.
  • Results are estimates based on the inputs and assumptions on this page, not professional advice.
  • Try this: use “Save scenario A”, change one input and compare the two results side by side.
SOURCES

Official sources

QUESTIONS

Frequently asked questions

How is the result of the “Sample size calculator for surveys” calculated?

n₀ = z² × p(1 − p) ÷ e². With a population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). Round up to a whole response. Choose how confident you want to be and how close the result should be to the true value. The expected proportion is your best guess at the answer you are measuring; 50% is the safe default because it gives the largest sample. If you are surveying a small, known group, enter its size to apply the finite population correction, which lowers the number needed.

What does the worked example show?

With confidence level 95%, margin of error (± %) 5, expected proportion (%) 50, population size 0, the required sample size is 385. Sample size before rounding up: 384.1458821; Without a population correction: 384.1458821; Z-score for the confidence level: 1.959963985.

What assumptions and limits apply?

This is an estimate based on the inputs and assumptions shown on this page, not professional advice. Check anything with financial, health or safety consequences independently.

Is my data private?

Yes. Calculations run in your browser and your numbers are not sent to a server. A share link contains the inputs you choose to share, so check it before sending it to anyone.

How many responses do I need for ±5% at 95% confidence?

For a large population and an expected proportion of 50%, 385 responses. The unrounded figure is about 384.15, and the sample size is always rounded up.

Why does the population size matter so little?

For large populations the required sample barely changes: about 385 responses for a city or a country alike. The correction only matters when the sample would be a noticeable share of the whole group.

Why use 50% as the expected proportion?

p(1 − p) is largest at 50%, so it gives the biggest required sample. If you are fairly sure the answer is near 10% or 90%, fewer responses are needed.

FOR WEBSITE OWNERS

Embed this calculator on your site

Free to use. Paste this where you want the calculator to appear. It resizes itself and links back to Calculator786.