Home › Calculators › Statistical Power Calculator

Statistical Power Calculator

Plan a study before you collect data. Choose a t-test, a proportion test or a correlation, enter the effect size you expect, α and either the sample size (to get power) or the target power (to get the sample size you need). A power curve shows how quickly power grows with n.

Last updated:

Test
Calculate
Effect size

Difference in means ÷ SD. 0.2 small, 0.5 medium, 0.8 large

Group 1 (or true) proportion

Group 2 (control) proportion

0.1 small, 0.3 medium, 0.5 large

Design

1 = equal groups

%
Enter your values to see the result.
Advertisement
Advertisement

How to use the Statistical Power Calculator

  1. Pick the test you plan to run: two-sample t, one-sample/paired t, two proportions, one proportion or correlation.
  2. Choose what to calculate: the required sample size, or the power for a sample size you already have.
  3. Enter the effect size: Cohen's d, the expected proportions or the expected correlation.
  4. Set α, the alternative and the target power (80% is the usual minimum) and press Calculate.
  5. Read the result and the power curve, and use the tables to see how the answer changes with power or effect size.

Power formulas used

All tests use the critical value for your α (split over both tails for a two-sided test) and then ask how often the test statistic lands beyond it when the true effect is the one you entered.

TestEffect sizePower calculation
Two-sample t-testd = (μ₁ − μ₂) / σNoncentral t with df = n₁ + n₂ − 2, δ = d / √(1/n₁ + 1/n₂)
One-sample or paired t-testd = (μ − μ₀) / σ (paired: mean difference / SD of differences)Noncentral t with df = n − 1, δ = d·√n
One proportionp₁ vs p₀ (Cohen's h shown)Φ((|p₁ − p₀|√n − z·√(p₀q₀)) / √(p₁q₁))
Two proportionsp₁ vs p₂ (Cohen's h shown)Φ((|p₁ − p₂| − z·√(p̄q̄(1/n₁ + 1/n₂))) / √(p₁q₁/n₁ + p₂q₂/n₂))
Correlationρ (Fisher z = atanh ρ)Φ(|atanh ρ|·√(n − 3) − z)

For a required sample size the calculator searches for the smallest whole n whose power reaches your target, so the actual power is always at or slightly above it.

Sample sizes at a glance (two-sided, α = 0.05)

DesignEffect80% power90% power
Two-sample t-test (per group)d = 0.2394527
Two-sample t-test (per group)d = 0.56486
Two-sample t-test (per group)d = 0.82634
Paired / one-sample t-testd = 0.53444
Correlationρ = 0.385113

Tips for a sound power analysis

  • Do it before collecting data. Power computed from the observed effect after a study ("observed power") adds nothing beyond the p-value.
  • Plan for drop-out. If you expect 15% of participants to leave, divide the required n by 0.85.
  • Be conservative with effect sizes. Published effects tend to be overestimated; halving a pilot estimate roughly quadruples the sample you need, so check the effect-size table.
  • Check the assumptions. The t-test results assume roughly normal data with equal variances; the proportion formulas rely on the normal approximation, which is reliable once each group expects at least 10 successes and 10 failures.

Frequently asked questions

What is statistical power?

Power is the probability that a test rejects the null hypothesis when a real effect of the size you specified exists. It equals 1 − β, where β is the Type II error rate (missing a real effect). Most studies aim for at least 80% power, and many grant reviewers expect 90%.

What four quantities are linked in a power analysis?

Significance level α, effect size, sample size and power. If you fix any three, the fourth is determined. A priori power analysis fixes α, effect size and power to find the sample size; post hoc or sensitivity analysis fixes n to find power or the detectable effect.

How many participants do I need for a medium effect?

For a two-sided two-sample t-test with α = 0.05 and Cohen's d = 0.5, you need 64 participants per group (128 in total) for 80% power and 86 per group for 90% power. For a small effect (d = 0.2) the requirement jumps to 394 per group for 80% power.

Which effect size should I enter?

Use the smallest effect that would matter in practice, or an estimate from pilot data or published studies. Cohen's conventions are d = 0.2, 0.5 and 0.8 for small, medium and large mean differences, and ρ = 0.1, 0.3 and 0.5 for correlations. Avoid using an inflated effect from a single small study.

How is the power of a t-test calculated?

The calculator uses the noncentral t distribution. With df = n − 1 (one sample) or n₁ + n₂ − 2 (two samples) and noncentrality δ = d·√n or δ = d / √(1/n₁ + 1/n₂), power is the probability that a noncentral t variable exceeds the critical t value. This matches G*Power and similar software.

Does a one-sided test need fewer participants?

Yes, because all of α sits in one tail, so the critical value is smaller. Only use a one-sided test if an effect in the other direction would genuinely be treated the same as no effect, and decide this before seeing the data.

Why do unequal groups need more participants?

For a fixed total, the standard error of a difference is smallest when the groups are equal. With a 2:1 ratio you need roughly 12% more participants in total to keep the same power, and the penalty grows quickly for more lopsided designs.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.
See all 52 Statistics & Probability Calculators →