Mortgage & Loans

Investing & Retirement

Salary, Tax & Business

India Finance

Health & Fitness

Math & Statistics

Date, Time & Everyday

Home, Construction & Science

Unit Converters

Sample Size Calculator

Find how many people you need to survey — or how many measurements to take — to hit your target margin of error at a chosen confidence level.

Free, no sign-upPrivate — runs in your browserUpdated October 2026
Live
Estimating a
%
%
Required sample size
385
95% confidence, ± 5%
Without population correction
385
Critical value (z)
1.9600
Invitations needed at 20% responseAdjust for your expected response rate
1,925
Step-by-step solution
  1. Critical value for 95% confidence: z = 1.9600.
  2. Infinite-population sample size (Cochran): n₀ = z² × p(1 − p) ÷ E² = 1.9600² × 0.5 × 0.5 ÷ 0.05² = 384.15.
  3. Always round up: you need 385 completed responses.

Sample size by margin of error (p = 50%)

Margin of error90%95%99%
± 1%6,7649,60416,588
± 2%1,6912,4014,147
± 3%7521,0681,844
± 4%4236011,037
± 5%271385664
± 7%139196339
± 10%6897166
At a glance

Find how many people you need to survey — or how many measurements to take — to hit your target margin of error at a chosen confidence level.

Formulan₀ = z² × p(1 − p) ÷ E²   →   n = n₀ ÷ [1 + (n₀ − 1) ÷ N]
Also searched assurvey sample size · how many respondents · margin of error · statistical sample size · cochran formula · finite population correction

How to use the sample size calculator

Choose whether you are estimating a proportion — the typical survey question, such as "what percentage of customers would recommend us?" — or a mean, such as average spend or average blood pressure. Pick a confidence level, enter the margin of error you can accept, and (optionally) the size of the population you are studying. The calculator returns the number of completed responses you need, shows the effect of the finite population correction, and builds a quick-reference table for other margins of error and confidence levels.

Sample size formulas

For a proportion, the standard approach is Cochran's formula, followed by a correction when the population is small:

n₀ = z² × p(1 − p) ÷ E²   →   n = n₀ ÷ [1 + (n₀ − 1) ÷ N]

For a mean, the formula uses the expected standard deviation instead:

n₀ = (z × σ ÷ E)²
  • z — the critical value for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%)
  • p — the expected proportion as a decimal; σ — the expected standard deviation
  • E — the margin of error (as a decimal for proportions, in the original units for means)
  • N — the population size

Worked example

You want to estimate the share of customers who are satisfied, to within ±5 percentage points at 95% confidence, and you have no idea what the answer will be, so you use p = 50%. Then n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 3.8416 × 0.25 ÷ 0.0025 = 384.16, which rounds up to 385 responses. This is the famous "about 385" figure behind many polls.

If your entire customer base is only 2,000 people, the finite population correction gives 384.16 ÷ (1 + 383.16 ÷ 2000) ≈ 322.4, so 323 responses are enough. For a mean, if past data suggests a standard deviation of 15 and you want ±3 units at 95%, n = (1.96 × 15 ÷ 3)² ≈ 96.04, so you need 97 measurements.

Why 50% is the safe default

The term p(1 − p) is largest when p = 0.5, so assuming 50% gives the biggest — most conservative — sample size. If you have good evidence that the true value is near 10% or 90%, you can use that and need fewer responses: at p = 10%, the same ±5% at 95% needs only 139 people. But if your guess is wrong, your margin of error will be wider than planned.

Tip: The sample size you calculate is the number of completed responses. If you expect a 20% response rate, you must invite five times as many people. The calculator shows this figure as a starting point.

How population size affects the answer

Surprisingly, population size barely matters once it is large. A ±5% survey at 95% confidence needs about 385 responses whether the population is 100,000 or 300 million. Population only makes a real difference when your sample would be more than roughly 5% of it — for example, surveying employees of a 500-person company, where 218 responses are enough. That is why national polls of around 1,000 people can describe whole countries.

Practical tips for planning a study

  • Plan for subgroups. If you want to compare regions or age groups, each subgroup needs its own adequate sample. Four regions at ±5% each means roughly 4 × 385 responses.
  • Precision is expensive. Halving the margin of error requires four times the sample: ±2.5% at 95% needs 1,537 responses.
  • Representative beats large. A big sample from a biased source (only your most loyal customers, say) is less useful than a smaller random one.
  • Experiments differ. Comparing two groups in an A/B test requires a power calculation, which typically needs more participants than a simple estimate.

Once your data is in, use the confidence interval calculator to report the actual margin of error, and the standard deviation calculator to summarise numeric responses. Results here are planning estimates; complex survey designs such as clustered or stratified samples may need a statistician's input.

Built and reviewed by the Calcivia editorial team following our editorial policy · Last updated .
Cite or link to this page

Using this sample size calculator in an article, report or homework? Copy a citation or a ready-made link:

APACalcivia. (2026). Sample Size Calculator. Retrieved October 31, 2026, from https://www.calcivia.com/sample-size-calculator/
MLA"Sample Size Calculator." Calcivia, 2026, https://www.calcivia.com/sample-size-calculator/. Accessed 31 Oct. 2026.
HTML link<a href="https://www.calcivia.com/sample-size-calculator/">Sample Size Calculator</a> by Calcivia
Was this calculator helpful?

Frequently asked questions

How many people do I need to survey?

For a margin of error of ±5% at 95% confidence you need about 385 completed responses from a large population. For ±3% you need about 1,068, and for ±10% about 97.

What sample size do I need for a population of 1,000?

For ±5% at 95% confidence with p = 50%, the finite population correction gives about 278 responses from a population of 1,000.

Why use 50% as the expected proportion?

Because p(1 − p) is largest at 50%, it produces the largest and safest sample size. Use a different value only if you have reliable prior data.

Does a bigger population need a bigger sample?

Only up to a point. Beyond about 20,000 people the required sample size barely changes, which is why national polls can use around 1,000 respondents.

What is the difference between confidence level and margin of error?

The margin of error is how close you want the estimate to be to the truth (for example ±5%). The confidence level is how often that range would capture the truth across repeated samples (for example 95%).

Related calculators