Power Analysis Calculator

Calculate required sample size, achieved power, and Type II error for z-tests, t-tests, and chi-square tests. Cohen's d effect size reference and power curves included.

Statistical Power Analysis Calculator

Small=0.2, Medium=0.5, Large=0.8
Required Sample Size
32
Minimum n to achieve 80% power at d = 0.5
Achieved Power
80.73%
Power with n = 32 subjects
Type I Error (α)
0.0500
Probability of rejecting H₀ when it\'s true
Type II Error (β)
0.1927
Probability of failing to reject H₀ when it\'s false
Critical z (α)
1.9604
z-value for α = 0.05 (two-tailed)
Critical z (β)
0.8415
z-value for power = 0.80

Sample Size for Different Power Levels

Desired PowerRequired nTotal Subjects
70%2525
75%2828
80%3232
85%3636
90%4343
95%5353

Effect Size Reference

SizeCohen\'s dRequired n (80% power)Example
Small0.2197Subtle treatment effect
Medium0.532Visible group difference
Large0.813Obvious effect
Very Large1.26Dramatic difference

Power Curve

n=10
35.2%
n=30
78.2%
n=50
94.2%
n=70
98.7%
n=90
99.7%
n=110
99.9%
n=130
100%
n=150
100%
n=170
100%
n=190
100%
Green = meets target power (80%), Yellow = below target
Planning notes, formulas, and examples

About the Power Analysis Calculator

Statistical power is the probability that a test correctly rejects the null hypothesis when it's false — in other words, the probability of detecting a real effect. Power analysis is the essential planning step before any study, answering the question: "How many subjects do I need to have a good chance of finding the effect I'm looking for?"

This calculator helps you determine the required sample size for a desired power level, or compute the achieved power for a given sample size. It supports one-sample and two-sample z-tests, t-tests, paired t-tests, and chi-square tests. Enter your expected effect size (Cohen's d), significance level, and desired power to get the minimum sample size.

Power analysis is critical in clinical trials (ethical requirement to not waste patient resources), psychology experiments, A/B tests, market research, and any study where you need to justify your sample size to reviewers, grant agencies, or ethics boards.

When This Page Helps

An underpowered study wastes resources by being unlikely to detect real effects, while an overpowered study wastes resources by enrolling far more subjects than necessary. This calculator finds the sweet spot. It also provides a power curve showing how power changes with sample size, and a reference table of Cohen's d benchmarks to help you choose a realistic effect size.

How to Use the Inputs

  1. Select the type of statistical test you plan to use.
  2. Enter the expected effect size (Cohen's d). Use 0.2 for small, 0.5 for medium, 0.8 for large if unsure.
  3. Set the significance level alpha (typically 0.05).
  4. Set your desired power (typically 0.80 or 0.90).
  5. Review the required sample size — this is the minimum per group.
  6. Optionally enter a specific sample size to see its achieved power.
  7. Use the power curve and sensitivity table to explore trade-offs.
Formula used
Required Sample Size (one-sample test): n = ((z_α + z_β) / d)² Required Sample Size (two-sample test): n = 2 × ((z_α + z_β) / d)² (per group) Where: z_α = critical z-value for significance level α z_β = z-value for desired power (1 − β) d = Cohen's d effect size = (μ₁ − μ₂) / σ Achieved Power: 1 − β = Φ(d√n − z_α)

Example Calculation

Result: Required n = 32

To detect a medium effect (d = 0.5) with 80% power at the 0.05 significance level using a two-tailed one-sample t-test, you need at least 32 subjects. With 32 subjects, your actual achieved power is approximately 80.5%.

Tips & Best Practices

  • Always perform power analysis BEFORE collecting data. Post-hoc power analysis (after the study) is widely discouraged as misleading.
  • Use the smallest effect size that would be clinically or practically meaningful, not the largest effect you hope for.
  • Power of 0.80 (80%) is conventional; 0.90 is preferred for important studies. Below 0.60 is generally considered unacceptable.
  • For two-sample tests, the required n is per group — you need twice as many subjects total.
  • If the required sample size is impractical, consider whether a one-tailed test or a larger effect size is justified.
  • Unequal group sizes reduce power. Keep groups balanced when possible.

The Four Components of Power Analysis

Power analysis involves four quantities, and knowing any three determines the fourth: (1) significance level α, (2) effect size d, (3) sample size n, and (4) power 1−β. Most commonly, you fix α and d, then solve for n given a desired power. Alternatively, you can compute what power a given n achieves, or what effect size is detectable with your n and power.

Choosing an Appropriate Effect Size

The most critical (and difficult) decision in power analysis is selecting a realistic effect size. Overly optimistic effect sizes lead to underpowered studies. Sources include: pilot studies, published literature meta-analyses, subject-matter judgment about the minimum clinically important difference (MCID), and standardized benchmarks. When in doubt, use a smaller effect size for a more conservative (larger) sample size estimate.

Power in Different Study Designs

Paired designs (e.g., before-after) typically have more power than independent-groups designs because they control for individual differences. Unequal group sizes always reduce power relative to balanced designs with the same total n. For ANOVA and regression, power depends on the number of groups/predictors and the expected effect size (Cohen's f or f²). Multi-site studies pool power across locations but introduce complexity in the analysis.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Cohen's d is a standardized effect size measuring the difference between two means divided by the pooled standard deviation. d = 0.2 is small (hard to see), 0.5 is medium (visible to careful observer), and 0.8 is large (obvious). It's the most common effect size for power analysis.