Compute the minimum sample size for 12 study designs — with interactive power curves. All calculations run locally in your browser. Free, fast, and no data uploaded.
Tests if a population mean equals a hypothesized value. Uses the z-approximation (large n) or t distribution.
Compares means of two independent groups (equal group sizes assumed). Assumes equal variances (pooled SD).
Pre-post or matched-pairs design. Provide the SD of the within-pair differences.
Tests if a population proportion equals a hypothesized value (e.g. compliance rate, response rate).
RCT or case-control design comparing two event rates or response rates.
Compares means across k groups. Uses Cohen's f as the effect size (f = σ_means / σ_error).
For independence tests or goodness-of-fit. df = (rows−1)×(cols−1) for contingency tables.
Total sample size for an OLS model with u predictors. Effect size f² = R²/(1−R²).
Uses Fisher's z transformation to test H₀: ρ = 0.
Schoenfeld formula for log-rank test. Enter survival probabilities at end of follow-up (e.g. 1-year survival).
Estimates required n to achieve a desired margin of error. Optionally apply finite population correction.
Determine the number of participants needed to establish instrument reliability (Bonett, 2002).
| Effect | Cohen's d | Cohen's f | Cohen's f² | Cohen's w | Pearson r |
|---|---|---|---|---|---|
| Small | 0.20 | 0.10 | 0.02 | 0.10 | 0.10 |
| Medium | 0.50 | 0.25 | 0.15 | 0.30 | 0.30 |
| Large | 0.80 | 0.40 | 0.35 | 0.50 | 0.50 |
Source: Cohen (1988). d for means; f for ANOVA; f² for regression; w for chi-square; r for correlation.
| Parameter | Typical value | Meaning |
|---|---|---|
| α | 0.05 | 5% Type I error rate (false positive) |
| Power (1−β) | 0.80 | 80% chance of detecting a true effect |
| β | 0.20 | 20% Type II error rate (false negative) |
| For clinical trials: α = 0.05, power = 0.90 is often required. | ||
Tip: When the expected effect size is unknown, use a medium effect size as a conservative planning assumption. Consider adding 10–20% attrition buffer to your final N for dropout. Pilot studies help refine σ and Δ.
If you use this calculator in your research, please cite it using one of the formats below.