Sample Size Calculator

Before you send a single survey question, know exactly how many responses you need. This sample size calculator works for proportions (yes/no answers) and for means (averages), applies the finite population correction for small groups, and shows the trade-off between accuracy and effort.

What you get
  • Proportions and meansSwitch between yes/no surveys and measured averages.
  • Small-population correctionSurveying 500 people costs far less than 50,000.
  • The accuracy trade-off curveSee what each extra point of precision costs you.

Survey constraints

Results update as you type

Not sure what the answer will be? Leave the proportion at 50%: it is the safest possible choice and the convention for planning surveys.

Population known group size sharpens the estimate

Runs entirely in your browser. Nothing you type is sent or saved

Sample size guide

Why sample size matters

Every survey or experiment draws a small group from a larger population and generalizes from it. Ask too few people and your estimate wobbles: one unusual respondent can swing the result by several percentage points. Ask more than you need and you spend money, time and goodwill on precision you will never use. The sample size calculator sits in the middle: given how confident you want to be and how close to the truth you need to land, it returns the smallest sample that delivers both.

The three dials interact in a way worth internalizing early. Doubling your precision (halving the margin of error) roughly quadruples the required sample, because sample size grows with the square of the inverse error. Raising the confidence level from 95% to 99% multiplies the need by about 1.7. And a small finite population actually reduces the requirement, sometimes dramatically, which is the surprise most first-time researchers miss.

The inputs, one by one

  • Confidence level: how often you want your method to succeed. A 95% level means that if you repeated the same survey many times, the interval would capture the true population value in 95 runs out of 100. The standard choices map to fixed z scores: 90% uses 1.645, 95% uses 1.960, 98% uses 2.326 and 99% uses 2.576.
  • Margin of error: how far your estimate is allowed to drift from the truth. A poll reported as "52%, plus or minus 3 points" used a 3% margin. Five percent is the common choice for opinion research, three for studies that feed decisions, one when the stakes are high enough to justify a much larger sample.
  • Expected proportion: your best guess at the yes-share before you start. This is the one input people get wrong. The requirement is largest at 50% and shrinks as you move toward 0% or 100%, because a nearly unanimous population is easy to detect. If you truly have no idea, 50% is the honest and safe default; if prior studies say about 6%, using that knowledge cuts the requirement from 385 people to 87 at the same precision.
  • Population standard deviation (mean mode): how spread out your measurements are. A pilot study of 20 to 30 observations is the best source. Without one, a classic rough estimate is the plausible range divided by 4, which matches the spread of most roughly bell-shaped data.
  • Population size: optional. When the group you are studying is small (a company roster, a school, a customer list), knowing its size earns you a discount through the finite population correction described below.

The math behind the number

For a yes/no question, the estimate from a random sample of size n has a standard error of √(p(1 - p) ÷ n). Setting the allowed error equal to the margin of error e and solving for n gives Cochran's formula:

n = z2 · p(1 - p) ÷ e2

z critical value for the confidence level · p expected proportion as a decimal · e margin of error as a decimal

The worked example behind the default settings: at 95% confidence (z = 1.96), a 5% margin and the conservative p = 0.5, the formula gives 1.9602 × 0.25 ÷ 0.052 = 384.15, and since you cannot survey 0.15 of a person, the answer is 385 people.

For a measured average, the same argument with the population standard deviation σ gives:

n = (z · σ ÷ e)2

σ population standard deviation · e margin of error in the same units as the measurement

With z = 1.96, σ = 15 and a margin of 3 units: (1.96 × 15 ÷ 3)2 = 96.04, so plan for 97 observations. Notice how directly the precision price shows up here: wanting a margin of 1.5 instead of 3 would square the requirement to about 385.

Small populations: the finite population correction

The formulas above assume the population is large enough that removing one member barely changes the next draw. When your population is genuinely small, sampling without replacement makes consecutive draws depend on each other, and the requirement shrinks. The correction divides the unadjusted size by:

n′ = n ÷ (1 + (n - 1) ÷ N)

N population size · the result is still rounded up

The effect is real but bounded. Surveying a company of 1,000 people at 95% confidence and a 5% margin needs 384.15 ÷ (1 + 383.15 ÷ 1,000) = 277.7, or 278 people, not 385. For N = 500 in the mean example, 96.04 ÷ (1 + 95.04 ÷ 500) = 80.7, so 81 observations suffice. Notice that even an unknown population of any size never needs more than 385 for these settings: the requirement plateaus, it does not grow without bound.

Rule of thumb: if your population is at least 20 times larger than the unadjusted sample size, the correction changes the answer by less than 5%. Leave the field empty and plan for the larger number.

Sample size rules of thumb worth memorizing

The proportion formula with p = 50% produces a short list of numbers that covers almost every planning conversation. At 95% confidence:

  • Margin of error 5%: 385 responses. The default of opinion research.
  • Margin of error 3%: 1,068 responses. The typical choice for studies that steer decisions.
  • Margin of error 2%: 2,401 responses. Where serious money or policy is at stake.

Changing the confidence level moves the same 5% target to 271 responses at 90% confidence and 664 at 99%. Notice the pattern in the margins: each halving quadruples the sample, because the formula divides by the square of the margin. That single fact explains most of the sticker shock in survey budgeting.

Sample size for interviews and qualitative research

The formulas on this page answer "how many people must I survey for a reliable percentage?". Qualitative research asks a different question, so it plays by different rules:

  • Usability testing: a widely cited finding from usability engineering holds that testing about 5 users surfaces most of the serious problems in an interface, because the same issues keep reappearing. Larger rounds are for measuring, not finding.
  • In-depth interviews: researchers keep recruiting until new interviews stop producing new themes, a stopping rule called saturation. In practice this lands somewhere between 5 and 30 interviews for a single, well-defined topic.
  • Focus groups: 6 to 10 participants per group keeps every voice heard, and 3 to 4 groups is a common minimum before patterns are trusted.

If your study needs both flavors, plan the quantitative sample with the calculator and the qualitative round with saturation, then report the two separately.

Using the calculator well

  • Plan for nonresponse. The calculator returns completed responses, not invitations. If only 60% of the people you contact will answer, divide: 385 ÷ 0.6 = 642, so target roughly 642 invitations to bank 385 completes.
  • Choose the margin before the sample, not after. Deciding the sample size first and then reading whatever error it implies inverts the logic. Fix the error your decision can tolerate, then collect enough data to honor it.
  • When the number is out of reach, say so with numbers rather than quietly shipping an underpowered study. Every result page here shows the trade-off curve: pick the point on the curve you can afford, and report the larger margin of error that comes with it. A smaller sample is not worthless; it is just honest about a wider error band.
  • Segments need their own budgets. If you plan to compare answers between regions or age groups, each comparison needs its own sample size. A total of 385 split across five groups leaves about 77 per group, which supports far weaker conclusions than the headline number suggests.
  • Random matters more than big. These formulas assume a random or near-random sample. A perfect 385-person sample of one city's commuters says nothing about the whole country. Bias is not diluted by size.

Why polls get away with 1,000 people

The most famous lesson in sampling happened in 1936. The Literary Digest magazine mailed ballots to about 10 million Americans and received 2.4 million back, still the largest poll ever run, and confidently predicted Alf Landon would beat Franklin Roosevelt. George Gallup, using a carefully constructed sample of around 50,000, predicted Roosevelt's landslide correctly, because the Digest's huge sample was drawn from automobile registrations and telephone books, which largely skipped the poorer voters of the Depression era.

The lesson is the "random matters more than big" bullet above. Modern national polls land near 1,000 to 1,500 respondents, close to the 1,068 that a 3% margin demands at p = 50%, and they track the whole country within a few points. The mathematics on this page is the direct descendant of that correction, and the 1936 fiasco is why every poll you read now prints a margin of error beside its headline.

Common questions

It depends on just three choices you make: the confidence level, the margin of error you can tolerate, and your best guess at the answer. For a typical opinion survey at 95% confidence and a 5% margin, about 385 completed responses are needed no matter whether the population is a thousand people or a hundred million, which is why national polls use samples in the low hundreds.

Because p times (1 - p), the term that drives the sample size, reaches its maximum of 0.25 exactly at 50%. Assuming 50% therefore produces the largest possible requirement for any true proportion, so your survey will be adequate no matter what the real answer turns out to be. Using a smaller assumed proportion without evidence risks a sample that is too small if the truth is closer to an even split.

Match it to the decision. Five percent suits exploratory research and opinion polling; three percent fits studies that will steer budget or policy; one percent is reserved for high-stakes measurement, because the cost grows with the square: tightening 5% to 2.5% quadruples the sample. Remember the margin describes how far your estimate may sit from the truth, not the chance of being wrong.

No, and this is the most common misconception. Once the population is large relative to the sample, the requirement plateaus: 385 people suffice at 95% confidence and a 5% margin whether the population is ten thousand or ten million. Small populations do earn a discount through the finite population correction, but the curve flattens quickly rather than climbing.

Do not abandon the study; reprice the precision. Read the trade-off curve on the results panel to find what your achievable sample buys you, and report that wider margin of error alongside your findings. You can also lower the confidence level to 90%, or narrow the study to a subgroup where the population correction helps. An honest 200-person study with a stated 7% margin beats an unqualified 200-person study presented as precise.

The margin of error is how wide the net is; the confidence level is how often the net catches the truth. "52% plus or minus 3 points at 95% confidence" means the procedure, repeated across many surveys, would produce an interval containing the true value 95% of the time. Narrow the net (smaller margin) or catch more often (higher confidence) and either choice demands a bigger sample.

Run a small pilot of 20 to 30 observations and use its standard deviation, or estimate it by dividing the plausible range (highest minus lowest value you would expect) by 4. If even that is impossible, the proportion mode is a reasonable fallback: a 50/50 split produces the same conservative sample size the mean mode would need if the standard deviation were half the margin.

Always up. The formula produces the exact minimum, so 384.15 means 384 responses fall just short of your promised precision. This calculator rounds up for you, and the guide examples use the same convention.

Not proportionally. Precision improves with the square root of the sample, so quadrupling from 385 to 1,540 responses only halves the margin of error from 5% to 2.5%. Beyond the point your decision needs, extra responses buy very little. And no sample size fixes a biased selection method: a badly drawn sample of 10,000 can be further from the truth than a random one of 400.

The formula is per question, not per questionnaire, so the count stays the same for one headline question no matter how long the form is. What does change the requirement is analysis: if you plan to report answers separately for subgroups, or to run many comparisons, plan the sample for the smallest subgroup you will quote and the most important question you will test, because those are the estimates that will be thinnest.

When the population is small enough that the finite population correction brings the requirement close to its size: surveying all 60 employees of a company is a census and costs less than arguing about sampling error. Two cautions apply even then. Nonresponse can still turn a census into an unintended sample, and if you plan to repeat the survey over time, a full census leaves no one to compare against.

No. Every calculation runs in your browser. Nothing is stored or transmitted.

Plan the survey right, before the first question.

Browse all math calculators