Advanced

Statistical Power Analysis Calculator

Find the sample size needed to detect an effect at a given power level, or calculate the power of a test you already have data for — using Cohen's d, significance level and the two-sample z-approximation.

Mode

0.2 = small, 0.5 = medium, 0.8 = large (Cohen's convention)

Significance level (α)

Probability of detecting the effect when it exists — typically 0.80 or 0.90
Sample size per group
63

Total N = 126 • Achieved power = 80.1%

n per group
63
Total N
126
Achieved power
80.1%
Type II error (β)
19.9%
Effect size (d)
0.5
z_α/2
1.96
80.1%
Step by step
  1. 1

    z_β = Φ⁻¹(target power)

    Φ⁻¹(0.8) = 0.842
    Inverse normal CDF at the desired power level.
  2. 2

    (z_α/2 + z_β) ÷ d

    (1.96 + 0.842) ÷ 0.5 = 5.6032
  3. 3

    n per group = ⌈2 × ratio²⌉

    ⌈2 × 5.6032²⌉ = 63
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Required n per group = ⌈2 × ((z_α/2 + z_β) / d)²⌉ for a two-sample test. With α = 0.05 and 80% power, a medium effect (d = 0.5) needs about 64 participants per group (128 total). Power = Φ(d√(n/2) − 1.96) for a given n.

Formula
n = ⌈2 × ((z_α/2 + z_β) / d)²⌉ • Power = Φ(d√(n/2) − z_α/2)
How this is calculated

Statistical power is the probability that a hypothesis test correctly detects a true effect — i.e., it avoids a Type II error (false negative). Four linked quantities determine the result: effect size (Cohen's d, the expected group difference in standard-deviation units), sample size n per group, significance level α (Type I error rate, typically 0.05), and power (1 − β, typically 0.80 or 0.90).

This calculator uses the two-sample z-approximation, the standard planning formula for continuous outcomes when σ is estimated from pilot data or prior literature. Required n per group is n = ⌈2 × ((z_α/2 + z_β) / d)²⌉, where z_α/2 is the two-tailed critical value for α (e.g., 1.960 for α = 0.05) and z_β = Φ⁻¹(power) (e.g., 0.842 for 80% power). With d = 0.5 and α = 0.05 at 80% power this gives about 64 participants per group. The power mode reverses the formula: given n, power = Φ(d√(n/2) − z_α/2), where Φ is the standard normal CDF. The power curve shows how power grows with n for your chosen effect size and α.

Assumptions and limitations: the z-approximation is accurate for moderate-to-large samples; very small samples benefit from a non-central t distribution approach (slightly different answers). The formula assumes equal group sizes, a two-tailed test, and that Cohen's d is known exactly — in practice d is estimated from prior data, introducing uncertainty. Post-hoc power calculations (computing power after an experiment using the observed effect) are generally discouraged in statistics as they are circular and uninformative.

Frequently asked questions

Power is the probability your study finds a statistically significant result when the true effect exists. Low power (e.g., 50%) means a coin-flip chance of detecting your effect, wasting resources. Conventionally, 80% power is the accepted minimum for a well-designed study. Under-powered studies contribute to the replication crisis by producing unreliable findings.

Cohen's d = (μ₁ − μ₂) / σ, the group mean difference in standard-deviation units. Cohen suggested d = 0.2 as small, 0.5 as medium, and 0.8 as large. Use estimates from published meta-analyses or pilot data for your specific domain; using d = 0.5 (medium) when genuinely uncertain is a common conservative default.

Larger samples reduce the standard error (∝ 1/√n), making it easier to distinguish signal from noise. The non-centrality parameter d√(n/2) grows with n, shifting the power curve upward. Doubling n does not double power — the relationship is sublinear, and returns diminish at high power levels.

Also known as

statistical power calculator
sample size power analysis
power analysis effect size
cohens d sample size
type ii error calculator
minimum detectable effect
hypothesis test power
required sample size calculator

APA

TG we-Calculate Editorial Team. (2026). Statistical Power Analysis Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/power-analysis-calculator

Chicago

TG we-Calculate Editorial Team. "Statistical Power Analysis Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/power-analysis-calculator.

IEEE

TG we-Calculate Editorial Team, "Statistical Power Analysis Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/power-analysis-calculator

BibTeX

@misc{wecalculate_power_analysis_calculator, title = {Statistical Power Analysis Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/power-analysis-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?