Sample Size Calculator

Tells you how many completed survey responses you need for a chosen confidence level and margin of error. If your population is small — a team, a customer list, a class — enter its size and the finite population correction lowers the requirement.

Free, no signup, and everything is calculated in your browser.

385

Responses needed for ±5% at 95% confidence.

How sample size is calculated

n₀ = z² × p(1−p) ÷ e², where z is the z-score for your confidence level, p is the expected proportion, and e is the margin of error as a decimal.

p defaults to 0.5 because that maximises p(1−p) and therefore gives the largest, safest sample. Use a different value only if you have a solid prior estimate.

When you supply a population size N, the finite population correction applies: n = n₀ ÷ (1 + (n₀ − 1)/N). For a 500-person company this often halves what you need.

How do you calculate sample size for a survey?

Survey sample size for a percentage ("what share of customers would renew?") comes from Cochran's formula. You need three inputs: the confidence level, which sets the z-score (1.645 for 90%, 1.96 for 95%, 2.576 for 99%); the margin of error e you can live with, as a decimal; and the expected proportion p. The calculator above fixes p at 0.5, because p(1−p) is largest there, so the answer is the most cautious one.

Step one is the sample size for a very large population: n₀ = z² × p(1−p) ÷ e². Step two, only if you know the population size N, is the finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). Always round up — you cannot collect 0.16 of a response.

Source: Cochran, Sampling Techniques, 3rd edition (Wiley, 1977)

Worked example: 95% confidence, ±5% margin of error

n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 3.8416 × 0.25 ÷ 0.0025 = 384.16, so 385 responses. That is where the familiar "about 400 responses" advice comes from.

Now say the survey goes to a company of 500 employees. n = 384.16 ÷ (1 + 383.16 ÷ 500) = 384.16 ÷ 1.766 = 217.5, so 218 responses. The correction matters because 385 would be 77% of everyone.

Worked example: a tighter margin on a customer list

Illustration: you have 1,200 active customers and want ±3% at 95% confidence. n₀ = 3.8416 × 0.25 ÷ 0.0009 = 1,067.1. With the correction, n = 1,067.1 ÷ (1 + 1,066.1 ÷ 1,200) = 1,067.1 ÷ 1.888 = 565.1, so 566 responses — nearly half the list. Relax to ±4% and the answer drops to 401.

If you have a solid prior estimate that is far from 50%, you can use it by hand. Expecting about 20% to say yes: 3.8416 × 0.2 × 0.8 ÷ 0.0025 = 245.9, so 246 instead of 385. Only do this if the estimate comes from real earlier data; if the true figure turns out nearer 50%, your margin will be wider than you planned.

Sample size table: responses needed by margin of error and confidence level

Large (effectively unlimited) population, p = 0.5. These are the numbers the calculator returns with no population size entered.

Margin of error90% confidence95% confidence99% confidence
±1%6,7659,60416,587
±2%1,6922,4014,147
±3%7521,0681,843
±4%4236011,037
±5%271385664
±7%139196339
±10%6897166

Halving the margin roughly quadruples the sample: precision costs the square of what you gain. Computed with z = 1.6449, 1.96 and 2.5758, rounded up.

Does population size matter for sample size?

Much less than people expect. Above roughly 10,000 people the requirement barely moves; below a few thousand it drops sharply.

Population size±5%, 95%±3%, 95%±5%, 99%
50454847
100809288
200132169154
500218341286
1,000278517400
2,000323697499
5,000357880586
10,000370965623
100,0003831,056660

Finite population correction applied, p = 0.5, rounded up. For groups under a few hundred, the practical answer is usually to invite everyone.

Is sample size the number of responses or invitations?

Completed responses. The formula assumes every sampled person answers, so the number it returns is what must arrive, not what you send. To plan invitations, divide by the response rate you actually expect for this audience and channel: needing 385 responses at a 25% response rate means inviting 1,540 people; at 10% it means 3,850. Our survey response rate calculator measures the rate from a past survey, and the survey invitation planner turns a completion target into invitation scenarios.

The harder problem is who does not respond. If the people who ignore your survey differ from those who answer — less engaged customers, busier staff — sending more invitations produces a bigger sample with the same bias. Sample size controls random error only. Reminders, a short questionnaire and a clear reason to answer do more for accuracy than padding the invite list.

Source: AAPOR, Standard Definitions (response rate calculation)

How many responses do I need for each subgroup?

The calculator's answer applies to the whole sample. If you plan to report results by department, region or plan tier, each of those groups needs its own adequate sample, and a subgroup of 60 inside a sample of 400 carries a margin of about ±12.7 points at 95% confidence, not ±4.9.

Plan from the smallest group you intend to report. Illustration: to give four departments ±10% each, you need roughly 97 responses per department (fewer if a department is small enough for the population correction to apply), so about 390 in total, spread evenly. Pew Research Center does not publish subgroup estimates based on fewer than 100 interviews, which is a sensible floor for anything you plan to present.

Source: Pew Research Center: Why we will display margins of error in some graphics (2021)

When sample size math doesn't apply

The formula assumes a probability sample: everyone in the population had a known, non-zero chance of being selected, and you chose people at random. A link posted on social media, a website pop-up that anyone can answer, or a panel of people who signed up to take surveys is a non-probability sample. The American Association for Public Opinion Research (AAPOR) says the margin of sampling error does not apply to opt-in online surveys and other non-probability polls — so a "required sample size" for them has nothing solid underneath it.

This is not a theoretical worry. In a 2023 comparison, Pew Research Center found that opt-in online samples averaged 5.8 percentage points of absolute error against benchmarks, versus 2.6 points for probability-based panels, and the gap was wider for young adults and Hispanic adults. More opt-in responses did not close it.

Three other cases where the calculator is the wrong tool. Small populations: for a team of 50 you need 45 answers for ±5%, so just survey everyone and chase response rate. Comparing two groups or two versions: that needs a power calculation, which depends on the size of the difference you want to detect; the A/B test significance calculator is the closer fit. Qualitative research: interview studies are sized by when new themes stop appearing, not by a margin of error.

Source: AAPOR: Margin of Sampling Error / Credibility Interval

Source: Pew Research Center: Comparing two types of online survey samples (2023)

Common sample size mistakes

Collecting the responses with a form

Once you know the target, the form settings should protect it. In Zunoform you can close a form automatically when it reaches a response count, so a survey stops at the planned sample instead of running on; turn on one response per person so the same respondent is not counted twice; and keep partial responses on (the default) to see where people drop off. Anonymous mode stores no IP address, user agent or location for that form, which can lift honesty on sensitive questions. Hidden fields record which invitation channel each response came from, so you can check whether one channel is over-represented. The Free plan allows 500 responses a month; larger samples need Pro (5,000) or Business (25,000).

Survey templates to start from

Each one can be edited before you publish; the sample size target is up to you.

Questions people ask

How many responses do I need for a survey?

For ±5% at 95% confidence with no population limit, 385. That's the number behind most "about 400 responses" advice. Tighten the margin to ±3% and it jumps to 1,068. If the whole population is small — a few hundred people — enter its size and the requirement drops, often by a third or more.

Is this the number of invitations or responses?

Completed responses. To work out invitations, divide by your expected response rate — at 25%, needing 385 responses means inviting roughly 1,540 people. Inviting more people does not fix nonresponse bias, though: if the people who ignore the survey differ from those who answer, a bigger sample repeats the same skew.

How many responses do I need for a 5% margin of error?

About 385 at 95% confidence, assuming a large population. If you are surveying a group of 500 people, the finite population correction brings that down to roughly 218, and for a team of 50 you need 45 — nearly everyone. At 90% confidence the large-population figure is 271; at 99% it is 664.

Does population size affect sample size?

Only when the population is small. For ±5% at 95% confidence, a population of 1,000 needs 278 responses, 10,000 needs 370, and 100,000 needs 383 — almost the same as an unlimited population's 385. That is why national polls of around 1,000 people work for a country of millions.

What sample size is statistically significant?

No sample size is significant by itself. Significance is about whether a difference is larger than random noise, and it depends on the size of the difference as well as the sample. For estimating a single percentage, pick a margin of error and use this calculator; for comparing two groups or versions, use a power calculation or the A/B test calculator.

What confidence level should I use?

95% is the convention in survey research and polling, and the calculator's default. Use 90% for low-stakes internal decisions where a smaller sample is worth the extra uncertainty, and 99% only when being wrong is expensive — it needs about 1.7 times as many responses as 95% at the same margin.

How many survey responses do I need for a dissertation?

If you drew a random sample from a defined population, the same formula applies: 385 for ±5% at 95%, less for a small population. Many student projects use convenience samples (shared links, classmates), where a margin of error cannot be validly calculated. Report that honestly as a limitation and follow your department's methods guidance.

Related tools

Ready when you are

Better forms.
Better data.

Start with a conversation, a document or a single page.
Unlimited forms and 500 responses per month on Free.
No card required.

  • No credit card
  • Unlimited forms
  • 500 responses / month