CalcBrew

Sample Size Calculator

Find out how many people you need to survey. Choose a confidence level and margin of error, optionally the size of the population you are sampling from, and get the number of responses required. Switch modes to see the margin of error of a sample you already collected.

Sample size needed

385

±5 % at 95 % confidence

Without population correction

385

infinite population

z-score

1.96

Share of population

enter a population size

n₀ = z² × p(1 − p) ÷ e². Using p = 50 % gives the largest, safest sample; if you know the proportion is near 10 % or 90 % the sample can be much smaller.

📌 For proportions (yes/no answers, conversion rates, defect rates). Assumes a random sample; response rates below 100 % mean you must invite more people than the sample size. For means, use n = (z × σ ÷ e)² with your estimated standard deviation.
Share:

Sample size at 95 % confidence (p = 50 %)

Margin of errorLarge populationPopulation 100,000Population 10,000
±1 %9,6048,7634,899
±2 %2,4012,3451,936
±3 %1,0681,056965
±5 %385383370
±10 %979696

Halving the margin of error quadruples the sample. At 99 % confidence multiply by about 1.73; at 90 % by 0.70.

The formula

n₀ = z² × p × (1 − p) ÷ e²

n = n₀ ÷ (1 + (n₀ − 1) ÷ N) (finite population correction)

margin of error = z × √(p(1 − p) ÷ n)

Example: 95 % confidence (z = 1.96), ±5 % margin, p = 0.5: n₀ = 1.96² × 0.25 ÷ 0.05² = 384.16 → 385 responses. For a customer base of 1,000: 384.16 ÷ (1 + 383.16 ÷ 1000) = 277.0 → 278. A finished survey of 400 responses has a margin of ±1.96 × √(0.25 ÷ 400) = ±4.9 %.

Related: percentage calculator, percent change calculator and the probability calculator.

Frequently asked questions

Related tools

More in Math & Statistics · All calculators