Sample Size Calculator

Work out how many people to survey, or the margin of error you'll get.

Sample Size Calculator tool

Calculate
%
%

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

Leave blank for a large or unknown population

—
Sample size needed
—
Margin of error
—
Before population correction
—
Critical value z

About the Sample Size Calculator

Collecting too few survey responses makes results unreliable, while collecting too many wastes time and money. This sample size calculator gives the minimum number for your chosen confidence level and margin of error: at 95 percent confidence and a 5 percent margin you need 385 responses from a large population, but only about 323 from a population of 2,000. It also works in reverse, showing the margin of error for the responses you already have. Remember that a large sample cannot fix a biased one, so how you choose respondents matters as much as how many you reach.

The standard formula for estimating a proportion is n₀ = z² × p(1 − p) ÷ e², where z is the critical value for the confidence level (1.96 for 95%), p the expected proportion and e the margin of error as a decimal. Using p = 50% gives the largest, safest sample size when you have no prior estimate. For a population of known size N, the finite population correction n = n₀ ÷ (1 + (n₀ − 1) ÷ N) reduces the requirement, which matters when the sample is a sizeable fraction of the population.

Example: for 95% confidence and a ±5% margin with p = 50%, n₀ = 1.96² × 0.25 ÷ 0.05² ≈ 384.1, so you need 385 responses for a large population. For a population of only 1,000 the corrected requirement falls to 278. Tightening the margin to ±3% raises the requirement to 1,068, and with 400 responses the margin of error is about ±4.9%.

Sample size assumes a random sample; it cannot fix a biased one. Find the margin of error for other statistics with the margin of error calculator, build intervals with the confidence interval calculator, and see the role of z with the z-score calculator.

How to use the Sample Size Calculator

  1. Choose what to calculateThe sample size you need, or the margin of error for a sample you have.
  2. Pick a confidence level95% is standard; 90% and 99% are common alternatives.
  3. Enter the margin of error or sample sizeFor example ±5%, or 400 responses.
  4. Add the population if it is smallLeave it blank for a large or unknown population.

Sample Size Calculator features

  • Sample size for any confidence level
  • Margin of error from a sample size
  • Finite population correction
  • Custom expected proportion
  • Exact z critical values
  • Steps shown with your numbers
  • Free and private

Common uses

  • Planning customer and employee surveys
  • Academic research design
  • Political and market polling
  • Quality inspection sampling
  • Checking whether a survey is big enough

Planning a survey sample: response rates, subgroups, bias and cost

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

A sample size calculation tells you how many completed responses you need for a given margin of error and confidence level. But a good survey plan goes further: it allows for people who do not respond, makes sure important subgroups have enough responses and guards against samples that are large but unrepresentative. This guide covers those practical steps, with a worked example for a school survey.

From responses to invitations

The calculated sample size is the number of completed responses, not the number of people to contact. If you need 385 responses and expect 20% of invited people to reply, you need to invite about 385 ÷ 0.2 = 1,925 people. Response rates vary widely, from under 10% for some online surveys to much higher for short, personal requests, so estimate realistically and plan reminders.

A worked example: a school survey

A school with 1,200 families wants to survey parents with a 95% confidence level and a margin of error of 5 percentage points. The standard formula for a large population gives about 385 responses. Because the population is only 1,200, the finite population correction reduces the requirement to about 291 completed responses.

If the school expects about 40% of families to respond, it should invite all families, since 40% of 1,200 is 480, comfortably above 291. Sending a reminder after a week typically lifts the response rate further.

Subgroups need their own sample sizes

If you want separate results for subgroups, such as each class year or each branch of a business, each subgroup needs enough responses on its own. A sample of 400 might give a margin of error of about 5 points overall but about 10 points for a subgroup of 100. Plan the sample around the smallest subgroup you need to report on reliably.

Representative beats large

A large sample does not fix a biased one. If only the most satisfied customers answer a feedback survey, adding more of them will not make the results represent all customers. Random selection, careful wording, reaching people through several channels and following up with non-responders help keep a sample representative. A smaller random sample is usually more trustworthy than a huge self-selected one.

The cost of precision

Halving the margin of error requires about four times as many responses, because the margin depends on the square root of the sample size. Going from a 5-point margin to a 2.5-point margin raises the requirement from about 385 to about 1,537 responses. Deciding how much precision you really need saves time and money.

Choosing the expected proportion

Sample size formulas use an expected proportion, and 50% is the cautious choice because it gives the largest required sample. If earlier surveys suggest that about 20% of people will answer yes, using 20% reduces the sample size needed for the same margin of error. When in doubt, 50% keeps you safe.

Pilot surveys

A small pilot survey, perhaps with 20 to 30 people, reveals confusing questions, technical problems and likely response rates before the main survey. Fixing problems at that stage is much cheaper than discovering them after hundreds of responses have been collected.

Common mistakes

  • Treating the calculated sample size as the number of invitations.
  • Forgetting subgroups that need their own reliable results.
  • Assuming a large self-selected sample is representative.
  • Using a smaller expected proportion without evidence.

Related tools

For the precision of an existing survey, use Margin of Error Calculator. For confidence intervals, try Confidence Interval Calculator, and for standard errors, Standard Error Calculator.

Choosing a confidence level

The confidence level sets how sure you want to be that the true value lies within your margin of error. A 95% level is standard, using a z-value of 1.96; 90% uses 1.645 and needs fewer responses, while 99% uses 2.576 and needs considerably more. For quick internal surveys, 90% may be enough, while research for publication or important decisions usually uses 95% or higher.

Quotas and online panels

Online survey panels and street interviews often use quotas, such as set numbers of men and women or age groups, so that the sample matches the population. Quotas improve the balance of a sample, but they do not make it truly random, so the margin of error formulas apply only approximately. Weighting the results afterwards, so each group counts in proportion to its share of the population, corrects remaining imbalances.

Question design matters as much as size

A large sample cannot rescue badly worded questions. Leading questions, such as "How much do you love our service?", push answers in one direction, and long surveys lose respondents part-way through. Keep questions short, neutral and specific, offer balanced answer options and test the questionnaire on a few people first. Better questions often improve accuracy more than extra responses do.

Limits

Calculations follow standard formulas for simple random samples; complex survey designs need specialist methods.

Frequently asked questions

How many people do I need to survey?

For a large population with 95% confidence and a ±5% margin of error, 385. For ±3% you need 1,068, and for ±1% about 9,604. Smaller populations need fewer, which the correction handles.

What is the sample size formula?

n₀ = z² × p(1 − p) ÷ e², where z is the critical value for your confidence level, p the expected proportion and e the margin of error. With a finite population N, use n = n₀ ÷ (1 + (n₀ − 1) ÷ N).

Why use 50% for the proportion?

Because p(1 − p) is largest at p = 0.5, so it gives the most conservative, largest sample size. If you know the true proportion is near 10% or 90%, a smaller sample gives the same precision.

What confidence level should I use?

95% is the convention in most research and polling. 90% needs fewer responses but is less certain; 99% gives more certainty but needs about 70% more responses than 95%.

Does population size matter?

Only when the sample is a noticeable share of it. For populations of tens of thousands or more, the required sample barely changes, which is why national polls of about 1,000 people work.

What is the margin of error?

The plus-or-minus range around a survey result. If 52% say yes with a ±3% margin at 95% confidence, the true figure is likely between 49% and 55%.

Does a big sample guarantee accurate results?

No. Sample size only controls random error. A survey that reaches the wrong people, has low response rates or asks leading questions can be biased however large it is.