32
1.9604
0.8415
—
32
1.9604
0.8415
—
The Power Analysis Calculator determines the minimum sample size required to detect a statistically significant effect with a specified probability. Statistical power is the probability that a study will correctly reject a false null hypothesis -- in other words, the probability of finding an effect that truly exists. Underpowered studies waste resources and risk missing real effects; overpowered studies are unnecessarily expensive.
This calculator uses the normal approximation method for one-sample and two-sample t-tests. Enter the expected effect size (Cohen's d), desired significance level (α), desired power (1 - β), and test type to determine how many participants or observations you need. Proper power analysis is considered essential for ethical research design and is often required by funding agencies, IRBs, and journal reviewers.
The required sample size is computed using the relationship between effect size, significance level, power, and sample size. For a one-sample z-test:
$$n = \left(\frac{z_{\alpha/2} + z_{\beta}}{d}\right)^2$$
For a two-sample z-test (equal groups):
$$n_{\text{per group}} = 2\left(\frac{z_{\alpha/2} + z_{\beta}}{d}\right)^2$$
Where:
Cohen's conventions for interpreting effect size:
| d value | Interpretation |
|---|---|
| 0.2 | Small effect |
| 0.5 | Medium effect |
| 0.8 | Large effect |
The z-values are computed using the rational approximation to the inverse normal CDF (Abramowitz and Stegun formula 26.2.23). For the common case of α = 0.05 and power = 0.80, zα/2 ≈ 1.96 and zβ ≈ 0.842. The formula applies the ceiling function to round up to the nearest integer, ensuring the desired power is at least met.
This is an approximation based on the normal distribution. For small sample sizes or when the population variance is unknown, the exact power calculation requires the non-central t-distribution, which yields slightly larger sample sizes.
The calculator results guide your study design decisions:
Key trade-offs: increasing power requires more subjects; detecting smaller effects requires many more subjects (n is inversely proportional to d²); stricter significance levels require more subjects. Doubling the power from 0.80 to 0.90 increases n by about 30%. Halving the effect size quadruples the required n.
Inputs
Results
For a two-sample t-test with d = 0.5 (medium effect), α = 0.05, power = 0.80: n = 2 × ((1.96 + 0.84)/0.5)² = 2 × (2.80/0.5)² = 2 × 31.36 ≈ 63 per group (126 total). This is a common scenario in behavioral and social science research.
Inputs
Results
For a one-sample t-test with d = 0.2 (small effect), α = 0.05, power = 0.90: n = ((1.96 + 1.28)/0.2)² = (3.24/0.2)² = 16.2² ≈ 263. Small effects with high power demand large samples. This is typical for epidemiological and public health research.
Statistical power (1 - β) is the probability that a study will correctly detect a real effect -- formally, the probability of rejecting the null hypothesis when it is actually false. Power of 0.80 means there is an 80% chance of finding a significant result if the effect truly exists. The complement β is the Type II error rate (probability of missing a real effect). Most fields consider power of 0.80 as the minimum acceptable standard, with 0.90 preferred for confirmatory studies.
Cohen's d is a standardized effect size measuring the difference between two means in standard deviation units: d = (M₁ - M₂) / SD_pooled. You can estimate d from: (1) pilot data or preliminary studies; (2) previous literature on similar interventions; (3) Cohen's conventions (0.2 = small, 0.5 = medium, 0.8 = large); (4) the minimum clinically important difference -- the smallest effect that would be practically meaningful in your context. Using pilot data or literature is strongly preferred over conventions.
An underpowered study has a high probability of failing to detect real effects (Type II error). Even worse, significant results from underpowered studies tend to be inflated (the "winner's curse") because only unusually large observed effects cross the significance threshold. This leads to poor reproducibility. Underpowered studies waste participant time, research funding, and can be considered ethically questionable if they cannot meaningfully answer the research question they set out to address.
The two-sample formula includes a factor of 2 because the variance of the difference between two means is the sum of their individual variances. For equal group sizes with equal variance: Var(X̄₁ - X̄₂) = σ²/n₁ + σ²/n₂ = 2σ²/n. This doubled variance means you need roughly twice as many subjects per group (compared to a one-sample test) to achieve the same statistical power for the same effect size.
A stricter (smaller) α requires a larger critical z-value, which increases the required sample size. For example, moving from α = 0.05 (z = 1.96) to α = 0.01 (z = 2.576) at power = 0.80 and d = 0.5 increases the one-sample n from about 32 to 44 -- a 38% increase. The choice of α involves a trade-off: stricter α reduces false positives but requires more resources. Many fields use α = 0.05 by convention, but α = 0.005 has been proposed for more credible discoveries.
This calculator uses the normal (z) approximation, which is accurate for moderate to large sample sizes but slightly underestimates the required n for small samples. The exact power calculation for t-tests uses the non-central t-distribution, which accounts for the additional uncertainty in estimating the population standard deviation. For n > 30, the difference is typically 1-3 subjects. For critical applications, use software like G*Power, R's pwr package, or SAS PROC POWER for exact calculations.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Random Number Generator
Advanced & Specialized Statistical Tools
Central Limit Theorem Calculator
Advanced & Specialized Statistical Tools
Empirical Rule Calculator
Advanced & Specialized Statistical Tools
Chebyshev's Theorem Calculator
Advanced & Specialized Statistical Tools
Monte Carlo Estimation Calculator
Advanced & Specialized Statistical Tools
Effect Size Calculator (Cohen's d)
Advanced & Specialized Statistical Tools