Power Analysis Calculator
Find statistical power and required sample size for your study design - enter effect size, n, and α.
📖 What is Statistical Power?
Statistical power is the probability that a hypothesis test will correctly detect a true effect - that is, reject the null hypothesis H₀ when it should be rejected. Power = 1 − β, where β is the probability of a Type II error (failing to detect a real effect). If a study has 80% power, it has an 80% chance of finding statistical significance when the hypothesised effect is real. Low-powered studies miss real effects and waste resources.
Power analysis is most valuable before data collection, when designing a study. Given a desired power level (typically 80% or 90%), a significance level α (typically 0.05), and an expected effect size, power analysis tells you the minimum sample size needed. Alternatively, given a fixed n, it tells you what power you have - and whether the study is worth running.
The key input is the effect size (Cohen's d) - a standardised measure of how large the true difference is relative to variability. For a one-sample test, d = (μ − μ₀) / σ. Larger effects require smaller samples to detect. Jacob Cohen's benchmarks - d = 0.2 (small), 0.5 (medium), 0.8 (large) - are widely used when the true effect is unknown, though it is always better to use domain-specific knowledge or prior studies to estimate d.
This calculator supports both Z-tests (when σ is known) and t-tests (σ estimated from sample), with both one-tailed and two-tailed options. It computes power for your current n and also finds the required n to achieve 80% and 90% power.
📐 Formulas
One-tailed Z-test power: Power = Φ(d√n − z_α)
where Φ = standard normal CDF, d = Cohen's d effect size, n = sample size, z_α/2 = critical Z (e.g., 1.96 for α = 0.05 two-tailed)
Non-centrality parameter: δ = d√n - the expected Z-score under H₁. Larger δ = more power.
t-test power (approximation): Replace z_α/2 with t_crit(df = n−1) in the formula above. This normal approximation to non-central t is accurate for practical purposes.
Required n for target power: Solve n = (z_α/2 + z_β)² / d² for Z-tests. For example, at α = 0.05 (two-tailed), 80% power (z_β = 0.842), d = 0.5: n = (1.96 + 0.842)² / 0.5² ≈ 32.
Type I error: α (probability of rejecting H₀ when it is true, set by the researcher)
Type II error: β = 1 − Power (probability of failing to reject H₀ when H₁ is true)
📖 How to Use This Calculator
📝 Example Calculations
Example 1 - Clinical Trial Design
A clinical trial plans to test a new drug. Based on prior studies, the expected effect is d = 0.5 (medium). The trial uses α = 0.05 two-tailed. How many patients are needed for 80% power?
Power formula: n = (z_0.025 + z_0.20)² / d² = (1.960 + 0.842)² / 0.25 = 7.849 / 0.25 ≈ 32 patients
With n = 32 and d = 0.5: Power ≈ 80%. To achieve 90% power, n ≈ 44 patients are needed.
Example 2 - Survey Planning (Small Effect)
A market researcher expects a small effect (d = 0.2) and uses a two-tailed Z-test at α = 0.05. What sample size achieves 80% power?
n = (1.96 + 0.842)² / 0.2² = 7.849 / 0.04 ≈ 197 respondents
Small effects require large samples. With n = 100 and d = 0.2, power ≈ only 29% - the study would likely miss the effect.
Example 3 - Psychology Experiment (Current Power Check)
A psychology study has n = 25 participants and expects d = 0.6. Test is two-tailed at α = 0.05. What is the power?
δ = d√n = 0.6 × √25 = 3.0; Power ≈ Φ(3.0 − 1.96) + Φ(−3.0 − 1.96) = Φ(1.04) + Φ(−4.96)
Power ≈ 0.8508 + 0.0000 ≈ 85%. The study has adequate power.
Example 4 - Underpowered Study Warning
A pilot study is planned with n = 15 and d = 0.4 at α = 0.05, two-tailed. Is it adequately powered?
δ = 0.4 × √15 = 1.549; Power ≈ Φ(1.549 − 1.96) = Φ(−0.411) ≈ 34%
Power is only 34% - far below 80%. The study needs n ≈ 50 for 80% power with d = 0.4. Running with n = 15 risks a Type II error probability of 66%.