What Is Statistical Power?
Statistical power is the probability of detecting a true effect of a specified size at a chosen significance level. It equals 1 − β, where β is the Type II error rate — the probability of failing to detect an effect that is actually there. Power of 80% means that, if the true effect is exactly as assumed, the study has an 80% chance of producing a significant result.
Two errors are in play. A Type I error (α) is rejecting H₀ when it is true — a false positive. A Type II error (β) is failing to reject H₀ when a real effect exists — a false negative. Power is the complement of the second. Power is not the probability that a hypothesis is true, and a high-power study does not guarantee a significant result on any single run.
What Power Analysis Does
Power analysis connects the four quantities that determine whether a study can detect an effect: sample size, effect size, α, and power (with β as its complement). Given any three, the fourth is determined. This calculator solves for power, required sample size, minimum detectable effect, or β — for a chosen design and test direction.
It also runs sensitivity analyses: how power changes as sample size grows, as α changes, and as the assumed effect size varies. Those tables and the power curve show how sensitive the conclusion is to each input.
Power Analysis vs Sample Size Calculator
A general sample size calculator answers a survey estimation question: how many observations do I need for a confidence interval with a specified margin of error? A power analysis calculator answers a study design question: how many observations do I need to have a reasonable chance of detecting an effect of interest? The two overlap when a survey is being designed to detect a difference, but they are separate planning problems. For general estimation sample size, use the Sample Size Calculator. For Slovin's finite-population formula, use the Slovin's Formula Calculator.
How Power Is Calculated
There is no single formula that covers every design. The calculator applies the correct method for the selected design:
- Means (one-sample, two-sample, paired) — noncentral normal approximation. The noncentrality parameter is nc = δ ÷ SE, where δ is the effect and SE is the standard error for that design.
- Proportions — normal approximation to the binomial, using the null and alternative variances. Paired binary uses the Connor/McNemar formula on discordant pairs.
- Pearson correlation — Fisher z transform: nc = z(r) × √(n − 3).
- Multiple regression — exact noncentral F with λ = f² × n, where f² = R² ÷ (1 − R²). Power is computed as 1 − noncentralF_CDF(F_crit; u, v, λ).
For two-sample means with unequal SDs, the calculator uses a Welch-style SE: √(s₁²/n₁ + s₂²/n₂). For equal SDs, the pooled SE √(1/n₁ + 1/n₂) × σ applies.
Required Sample Size
For a target power, the workflow is: expected effect → variability → α → target power → required n. The calculator solves for n and always rounds up — a fractional sample is meaningless. For two-group designs, n is reported per group and in total, and unequal allocation is supported via the n₂/n₁ ratio.
Required n is a planning target, not a guarantee. It depends on the assumed effect size and variability. If the true effect is smaller than assumed, or the true variability is larger, the achieved power will be lower than planned.
Minimum Detectable Effect
The MDE is the smallest effect a study can reasonably detect, given its sample size, α, and target power. It answers a different question than "what effect do I expect?" — MDE is a property of the design, not of the underlying phenomenon. A study with a large MDE can only reliably detect large effects; a study with a small MDE can detect smaller ones but requires more observations. The observed effect after the study is a third quantity that depends on the data.
Effect Size Metrics by Design
- Cohen's d — standardized mean difference for one-sample, two-sample, and paired means. The calculator can also report Hedges' g, the small-sample-corrected version.
- Proportion difference — absolute difference (p₂ − p₁) for one- and two-proportion designs. The engine uses the absolute difference even when a relative label is chosen for reporting.
- Correlation r — Pearson correlation, analyzed via Fisher z.
- R² and f² — for multiple regression, in overall-model or incremental (added predictors) mode.
- Discordant proportions — p₀₁ and p₁₀ for paired binary (McNemar).
These are not interchangeable. A d of 0.5 is not the same as r of 0.5, and a 5-percentage-point proportion difference depends on the baseline rate. Choose the metric that matches the design.
Alpha, Beta, and the Trade-Off
Stricter α (e.g. 0.01 instead of 0.05) reduces false positives but lowers power for the same n and effect — you need a larger sample to compensate. Looser α raises power but increases the false-positive rate. Power analysis makes that trade-off explicit: you can see exactly how much n is required to keep power at 80% if you tighten α.
One-Sided vs Two-Sided Testing
One-sided tests have more power for the same n when the direction of the effect is genuinely known in advance. They should be chosen because the scientific hypothesis is directional, not because the sample size requirement is smaller. Switching from two-sided to one-sided after seeing the data is a form of p-hacking. The calculator allows both; the assumptions panel reflects the choice.
A Priori vs Post-Hoc Power
A priori power analysis is performed before data collection to plan sample size. Post-hoc power analysis is performed after the study, using the observed effect. The calculator supports both, but the post-hoc case is caveated: observed-effect power is a deterministic function of the p-value and adds no new information beyond the test statistic — a study that just reached significance will show post-hoc power near 50%, and one that fell short will show low post-hoc power regardless of the true effect. Confidence intervals and effect estimates are the better follow-up.
Attrition: Recruitment vs Statistical Sample
Two quantities must stay separate. The statistical required sample is what the power calculation returns. The recruitment target is that number divided by the expected retention rate. If you expect 20% dropout, you need to recruit required_n ÷ 0.80. The calculator shows both — attrition adjusts only the recruitment target and never the statistical n used for power.
Assumptions and Limits
Power calculations depend entirely on the assumptions entered. The effect size, variability, α, and design all have to be specified; if any is wrong, the power estimate is wrong in proportion. Common assumptions the calculator relies on:
- Independent observations within each group.
- Approximately normal residuals or sufficiently large n (for means).
- Normal approximation to the binomial with reasonable n and proportions not extremely near 0 or 1 (for proportions).
- Bivariate normality or large-n Fisher z validity (for correlation).
- Linear model with independent errors (for regression).
A power calculation is not a guarantee of study success. It is a planning estimate that says: under the stated assumptions, this is the probability of a significant result if the effect is exactly as assumed. Real studies rarely match their assumptions precisely.
Common Mistakes
- Using an inflated effect size. Planning for an unrealistically large effect produces an underpowered study when the true effect is smaller.
- Ignoring variability. Underestimating SD has the same effect as overestimating the mean difference.
- Reporting post-hoc power as evidence. It is not independent evidence — it is a p-value restated.
- Switching from two-sided to one-sided to save sample size. The test direction must be prespecified.
- Forgetting attrition. Statistical n is not the recruitment target.
- Treating one design's effect size as another's. d, r, and proportion differences are not interchangeable.
- Planning for 80% power and treating it as certain. 80% power means a 20% chance of a Type II error under the assumed effect.