Power Analysis Tool

Sample Size Calculator

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.

Select Study Design
One-Sample t-Test

Tests if a population mean equals a hypothesized value. Uses the z-approximation (large n) or t distribution.

Independent-Samples t-Test

Compares means of two independent groups (equal group sizes assumed). Assumes equal variances (pooled SD).

Paired t-Test

Pre-post or matched-pairs design. Provide the SD of the within-pair differences.

One-Sample Proportion Test

Tests if a population proportion equals a hypothesized value (e.g. compliance rate, response rate).

Two-Sample Proportions

RCT or case-control design comparing two event rates or response rates.

One-Way ANOVA

Compares means across k groups. Uses Cohen's f as the effect size (f = σ_means / σ_error).

Chi-Square Test

For independence tests or goodness-of-fit. df = (rows−1)×(cols−1) for contingency tables.

Multiple Regression (F-test)

Total sample size for an OLS model with u predictors. Effect size f² = R²/(1−R²).

Pearson Correlation

Uses Fisher's z transformation to test H₀: ρ = 0.

Survival Analysis (Log-Rank)

Schoenfeld formula for log-rank test. Enter survival probabilities at end of follow-up (e.g. 1-year survival).

Survey / Prevalence Study

Estimates required n to achieve a desired margin of error. Optionally apply finite population correction.

Cronbach's Alpha Reliability

Determine the number of participants needed to establish instrument reliability (Bonett, 2002).

Key References for This Test
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Erlbaum.
Faul, F., Erdfelder, E., Lang, A.-G., & Buchner, A. (2007). G*Power 3. Behavior Research Methods, 39(2), 175–191.
Effect Size Quick Reference
Manuscript Template ↓
EffectCohen's dCohen's fCohen's f²Cohen's wPearson r
Small0.200.100.020.100.10
Medium0.500.250.150.300.30
Large0.800.400.350.500.50

Source: Cohen (1988). d for means; f for ANOVA; f² for regression; w for chi-square; r for correlation.

Common Default Conventions
ParameterTypical valueMeaning
α0.055% Type I error rate (false positive)
Power (1−β)0.8080% chance of detecting a true effect
β0.2020% 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 Δ.

How to Use This Calculator
  1. Choose your study design — Select the test that matches how you plan to collect and compare your data.
  2. Enter your parameters — Plug in your expected standard deviation, effect size, or proportions. Use pilot data or published literature if available; otherwise use Cohen's medium effect size as a conservative default.
  3. Set significance level α — Typically 0.05 (5% false positive risk). Use 0.01 for clinical/high-stakes research.
  4. Set desired power (1−β) — Standard convention is 80%. Some journals require 90% for clinical trials.
  5. Click Calculate — The minimum required N is displayed along with the power curve showing how power scales with sample size.
  6. Apply an attrition buffer — Add 10–20% to your calculated N to account for expected dropout, non-response, or data loss.
    Adjusted N = Calculated N ÷ (1 − attrition rate)
  7. Report your power analysis — Copy the result and include it in your Methods section under "Sample Size Justification".
How to Interpret Your Results
What does the required N mean?
The required N is the minimum number of participants you must recruit to detect the specified effect size with the stated power and significance level. Enrolling fewer participants risks an underpowered study (high Type II error — you miss a true effect). This is the number needed after any exclusions — always recruit more to offset attrition.
Reading the power curve
The power curve plots statistical power (y-axis) against sample size (x-axis). Key points:

Purple curve — how power increases as you add more participants.
Yellow dot — your calculated required N and its achieved power.
— — Green dashed line — the 80% power threshold (standard minimum).

A steep curve means adding a few participants gives large power gains. A flat curve means diminishing returns — you may not need a larger N than calculated.
Effect size — what if I don't know it?
If unknown, use the effect size presets (Small / Medium / Large buttons). Cohen (1988) recommended medium effect size as the default planning assumption when no prior data exist. You can also:

• Run a pilot study (n=20–30) to estimate σ and Δ before the main study.
• Use published meta-analyses in your field for typical effect sizes.
• Use the minimum clinically important difference (MCID) from guidelines for clinical outcomes.
Common mistakes in power analysis
1. Over-optimistic effect sizes — Using a large effect size to justify a small sample. Always use realistic estimates from pilot data or literature.

2. Forgetting attrition — The calculated N is the analysed sample. If 20% will drop out, you need N ÷ 0.80 enrolled participants.

3. Post-hoc power ("observed power") — Computing power after a non-significant result is circular and misleading. Plan power before data collection.

4. Multiple comparisons — If testing many outcomes, apply Bonferroni correction: use α / k comparisons in each calculation.

5. Ignoring cluster effects — For cluster-randomised trials (e.g. schools, clinics), multiply N by the design effect = 1 + (cluster size − 1) × ICC.
How to report in a manuscript
Include the following in your Methods / Sample Size section:

"A priori power analysis was conducted using [test name]. Based on an expected [effect size metric] of [value], a significance level of α = [α], and a desired power of 1−β = [power], a minimum sample size of N = [n] was determined [per group / total]. An attrition buffer of [x]% was applied, yielding a target recruitment of N = [adjusted n]. Calculations were performed using the TBI Sample Size Calculator (Tech Bridge Innovations, 2026)."

Replace bracketed values with your actual inputs from the Results panel above.
Test-specific notes
Two-Sample Means: Assumes equal group sizes. Unequal groups increase total N — use allocation ratio adjustment if needed.

Paired t-Test: σ_d is the SD of differences, not of individual scores. This is typically smaller than σ, leading to smaller sample sizes than independent tests.

ANOVA: Cohen's f = σ_means / σ_within. Partial η² ≈ f²/(1+f²). For multiple comparisons across groups, post-hoc tests (Tukey, Scheffé) will reduce effective power.

Chi-Square: df = (rows−1)×(columns−1) for contingency tables; df = (categories−1) for goodness-of-fit.

Regression: f² represents the effect on top of other predictors. For the overall model R², use f² = R²/(1−R²). SPSS uses this parameterisation.

Survival: N here is patients; what truly determines power is the number of events. If event rate is low, you need more patients even if events look adequate.

Survey: p=0.50 gives the most conservative (largest) N. If you have prior prevalence estimates, use those. Finite Population Correction (FPC) reduces N when sampling >5% of the population.

Cronbach's α: k = total number of scale/questionnaire items, not subscales.
How to Cite This Calculator

If you use this calculator in your research, please cite it using one of the formats below.

APA 7th Edition
Tech Bridge Innovations. (2026). TBI Sample Size Calculator [Web application]. https://techbridgeinn.com/samplesize/
MLA 9th Edition
Tech Bridge Innovations. "TBI Sample Size Calculator." TechBridgeInn.com, 2026, techbridgeinn.com/samplesize/. Accessed 22 March 2026.
Chicago 17th Edition
Tech Bridge Innovations. "TBI Sample Size Calculator." Accessed March 22, 2026. https://techbridgeinn.com/samplesize/.
IEEE
Tech Bridge Innovations, "TBI Sample Size Calculator," TechBridgeInn.com. [Online]. Available: https://techbridgeinn.com/samplesize/. [Accessed: 22-Mar-2026].
Vancouver
Tech Bridge Innovations. TBI Sample Size Calculator [Internet]. 2026 [cited 2026 Mar 22]. Available from: https://techbridgeinn.com/samplesize/