Statistical Power Calculator
The power of a one-sample, paired or two-sample t-test from the effect size, sample size and α, or the sample size you need for a target power.
Result…
How it's calculated
One-sample or paired: df = n − 1, δ = d √n Two-sample: df = n₁ + n₂ − 2, δ = d √(n₁n₂ ÷ (n₁ + n₂)) t_c = t(1 − α ÷ k, df), k = 2 (two-sided) or 1 Power = P(T > t_c) [+ P(T < −t_c) two-sided], T ~ noncentral t(df, δ)
Statistical power is the chance that a test finds an effect when one really exists, 1 − β. For a t-test it depends on the effect size d (the difference in means in standard-deviation units), the sample size, the significance level α and whether the test is one- or two-sided. The calculator works with the noncentral t distribution, integrating the normal distribution against the distribution of the sample standard deviation, rather than the cruder normal approximation, so small samples come out right. In the sample-size mode it searches for the smallest whole number of observations (per group, for two samples of equal size) that reaches your target. Cohen suggested 0.2, 0.5 and 0.8 as small, medium and large effects, but he warned these are only a fallback when nothing better is known.
Your numbers, step by step
About the Statistical Power calculator
This statistical power calculator tells you how likely a t-test is to detect an effect of a given size, or how many participants you need to reach a target power. It covers one-sample, paired and two-sample t-tests, one-sided or two-sided, at any significance level. Enter the effect size as Cohen's d, the difference in means in standard-deviation units. The power comes from the noncentral t distribution, not a normal shortcut, so it stays accurate for small samples; the results match standard power software. In sample-size mode it finds the smallest whole number of observations, pairs or participants per group that reaches your target, and shows the power one below it. The steps give the degrees of freedom, the noncentrality, the critical t and both rejection tails, and the chart shows how power grows with sample size. Use it when planning a study, writing a grant or checking a design.
How to use it
- Pick the “Test”: “Two-sample” for two independent groups, “One-sample” to compare one mean with a fixed value, or “Paired” for before-and-after measurements.
- Choose what to “Find”: “Power” for a sample size you already have, or “Sample size” for a target power.
- Enter the “Effect size (Cohen's d)”, from earlier studies or the smallest difference that would matter.
- Enter the sample size (or both group sizes), or the “Target power”, usually 80% or 90%.
- Set the “Significance level (α)” and the “Alternative”, then read the power or the sample size and check the steps.
Worked example
Two groups of 50 with an expected effect of d = 0.5 and a two-sided α of 0.05 give 98 degrees of freedom, a noncentrality of 0.5 × √(50 × 50 ÷ 100) = 2.5 and a critical t of 1.9845. The power is 69.69%, so a real effect of that size would be missed about 30% of the time. Switching to “Sample size” with an 80% target gives 64 per group (128 in all), with a power of 80.15%; 63 per group gives only 79.52%.
Updated
Questions people ask
How do I calculate the power of a t-test?
Work out the degrees of freedom and the noncentrality δ (d × √n for one sample, d × √(n₁n₂ ÷ (n₁ + n₂)) for two), find the critical t for your α, and take the chance that a noncentral t variable with that δ falls beyond it. The calculator does this exactly and shows each number.
What is a good statistical power?
80% is the most common target and 90% is often used for confirmatory trials. Lower power means a real effect is easily missed, and a significant result from an underpowered study tends to overstate the effect.
Where does the effect size come from?
Use a standardised difference from earlier studies or a pilot, or the smallest difference that would matter in practice, divided by the expected standard deviation. The effect size calculator turns means and standard deviations into Cohen's d.
Can I use this for conversion rates or other proportions?
No, this page is for comparing means with a t-test. For two proportions, such as conversion rates in an experiment, use the A/B test calculator.
Why does a one-sided test need fewer participants?
All of α is placed in one tail, so the critical value is lower and the same effect is easier to detect. It is only valid if you decided the direction before collecting the data and an effect the other way would not matter.
What does this power calculation not account for?
It assumes roughly normal data, equal variances in the two groups and that the true effect equals the d you entered. It does not allow for dropouts, clustering or several tests, so add a margin, and ask a statistician for complex or high-stakes designs.