Sample Size Calculator

Determine the minimum sample size needed to estimate a population proportion or population mean with a given confidence level and margin of error.

Type

Estimates sample size to determine a population proportion p within margin of error E.

Formula: n = z²·p·(1−p) / E²

Use 0.5 for maximum sample size
e.g. 0.05 for ±5%
Required Sample Size (95% CI, ±5.0%)
385

Results

ParameterValue
Confidence Level95%
Critical value (z*)1.96
Proportion (p)0.5
1 − p = q0.5
Margin of Error (E)±0.05 (5.0%)
Unadjusted n₀385
Required n385

Reference: Proportion (p = 0.5)

Margin of Errorn (95% CI)n (99% CI)
±1%9,60416,587
±2%2,4014,147
±3%1,0681,843
±4%6011,037
±5%385664
±10%97166

A ±5% margin of error needs 385 completed answers. A ±2.5% margin needs 1,537, and ±1% needs 9,604. Each time the margin is halved, the required sample quadruples, because the margin shrinks only with the square root of n. That one fact explains why a survey of a thousand people has a respectable margin of about ±3% while a survey that promises ±1% costs ten times as much. This page does the arithmetic for either a yes/no style share or a measured average, and always rounds up.

Two formulas, the round-up rule and the small-group correction

Population Proportion tab: n = z² x p x (1 - p) / E². The multiplier z comes from the Confidence Level list (1.2816 at 80%, 1.4395 at 85%, 1.6449 at 90%, 1.96 at 95%, 2.5758 at 99%) and is shown in the read-only Critical Value (z*) box. p is the expected share, E is the margin as a decimal, so 0.05 means ±5 percentage points. The product p x (1 - p) peaks at p = 0.5, which is why 0.5 is the default for an unknown share.

Worked example with the page's starting values, 95%, p = 0.5, E = 0.05. z² = 1.96² = 3.8416. Times 0.25 gives 0.9604. Divided by 0.05² = 0.0025 gives 384.16. A sample cannot contain 0.16 of a person, and rounding down would leave the margin above 5%, so the page rounds up to 385. Other levels at the same E: 165 at 80%, 271 at 90%, 664 at 99%.

Population Mean tab: n = (z x σ / E)². Here σ is the standard deviation you expect and E is a distance in the same units as σ, not a percentage. With σ = 15 and E = 3 at 95%, (1.96 x 15 / 3)² = 96.04, so the answer is 97. Halving E to 1.5 gives 384.16 and then 385, four times as many. A wrong guess for σ matters: σ = 20 raises 97 to 171.

Finite population correction: tick the box and enter Population size (N). The raw figure n0 becomes n0 / (1 + (n0 - 1) / N). With n0 = 384.16, N = 500 gives 217.49, shown as 218, and N = 10,000 gives 369.98, shown as 370. The card also prints the unadjusted n0 (385) beside the adjusted result. For a population of millions the correction changes nothing.

The reference table at the foot of the page uses p = 0.5 and the same round-up rule, so it matches the calculator row for row: ±1% needs 9,604 at 95% and 16,587 at 99%, ±3% needs 1,068 and 1,843, ±5% needs 385 and 664, and ±10% needs 97 and 166. The result is the number of completed, usable responses, not invitations: at a 20% reply rate, 385 completes means contacting 1,925 people.

How to Use This Calculator

  1. Choose Population Proportion for a share of a group, or Population Mean for a measured quantity such as weight or time.
  2. Pick a Confidence Level: 80%, 85%, 90%, 95% or 99%. The Critical Value (z*) box updates to match.
  3. On Population Proportion, enter Estimated proportion (p) between 0 and 1 and Margin of error (E) as a decimal, such as 0.05 for ±5%. On Population Mean, enter the population standard deviation (σ) and Margin of error (E) in the same units.
  4. For a small, known group, tick Finite population correction and type the Population size (N). If N is blank, zero or not a whole number, a message asks you to fix it or untick the box, and no result is shown.
  5. Read Required Sample Size in the purple box and the table on the right. There is no Calculate button.

Frequently Asked Questions

Do I type 5 or 0.05 for a ±5% margin of error?

Type 0.05 on the proportion tab. The field expects a decimal below 1, so an entry of 5 removes the result. On the mean tab E is not a percentage at all, it is a distance in the units of your data.

Can I use a better guess than 0.5 for the proportion?

Yes, and it lowers the number: p = 0.2 gives 246 instead of 385, and p = 0.9 gives 139. If the true share is nearer 50%, your margin will be wider than planned, so keep 0.5 when you have no firm prior figure.

When is the finite population correction worth ticking?

When the sample would be a large fraction of the group, such as 385 from a club of 500, where the need drops to 218. For a population of 10,000 it saves 15 responses, and for millions it saves none.

Why do the reference table and the calculator now agree?

Both round up, because a rounded-down sample would give a margin slightly wider than requested. The exact value for the starting inputs is 384.16, and both show 385.

What standard deviation should I enter before collecting any data?

Use a figure from a pilot study, an earlier survey or published work. The result scales with the square of σ, so a poor estimate moves the answer a lot; err on the high side if unsure.