One of the most common questions in research design: "How many participants do I need?" Too few and you miss real effects (low power). Too many and you waste resources. This guide shows you exactly how to calculate the right sample size for different study types.

Why Sample Size Matters

Key Inputs for Sample Size Calculation

Formula 1: Estimating a Mean

n = (z × σ / E)²

Example: Estimate mean daily study time for students (σ = 1.5 hours from pilot study). Want 95% CI (z = 1.96) with margin of error E = 0.3 hours.

n = (1.96 × 1.5 / 0.3)² = (9.8)² = 96 students

Formula 2: Estimating a Proportion

n = z² × p(1−p) / E²

Most conservative: Use p = 0.5 when unknown (maximises required n).

Example: Survey to estimate proportion of people who support a policy. 95% CI, E = 0.05, p unknown.

n = (1.96)² × 0.5 × 0.5 / (0.05)² = 3.84 × 0.25 / 0.0025 = 384 respondents

Formula 3: Two-Sample T-Test (Power Analysis)

When comparing two group means with desired power 1−β:

n = 2(z_α/2 + z_β)² × σ² / δ²

Where δ = expected difference between means. This gives the required n per group.

Example: You expect a drug to reduce blood pressure by δ = 8 mmHg (σ = 12 mmHg). α = 0.05, power = 0.80 (z_α/2 = 1.96, z_β = 0.84).

n = 2(1.96 + 0.84)² × 144 / 64 = 2 × 7.84 × 2.25 = 35 per group (70 total)

Practical Adjustments

Common Sample Size Rules of Thumb

Study TypeMinimum Recommended n
Survey / opinion poll≥ 384 (95% CI, ±5%)
T-test comparison≥ 30 per group
Linear regression≥ 10–20 observations per predictor
Chi-square test≥ 5 expected per cell
Pilot study≥ 12–30 per group

Use our free Sample Size Calculator to get exact required n for any combination of confidence level, margin of error, and power.