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,0671,843
±4%6001,037
±5%384664
±10%96166

Determine the right sample size for your survey or study with our free calculator, balancing statistical confidence against practical constraints.

How It Works

Sample Size = (Z² × p × (1-p)) / e², where Z is the z-score for your confidence level, p is your estimated proportion (use 0.5 if unknown, which maximizes required sample size), and e is your margin of error.

How to Use This Calculator

  1. Enter your desired confidence level
  2. Enter your acceptable margin of error
  3. Enter estimated population proportion (or use 50% as a conservative default)
  4. Click Calculate to see your required sample size

Frequently Asked Questions

Why use 50% for the proportion if I don't know it?

50% produces the largest possible required sample size for a given confidence and margin of error, making it the safe, conservative choice when you have no prior estimate.

What margin of error is typical for surveys?

Common survey margins of error range from 3-5%, tighter margins require larger samples, so this is often a practical trade-off against cost and feasibility.

Does total population size matter?

For very large populations, it has minimal effect on required sample size; for smaller, finite populations, a finite population correction can reduce the required sample size.

What confidence level should I use?

95% is the most common standard for survey research, though 90% or 99% may be appropriate depending on how much precision your specific use case requires.