Power analysis in statistics is the calculation you run before a study to find the smallest sample size that can still detect a real effect. (If you came here for chip or circuit power analysis, this is the other kind, the statistics kind.)
Get it wrong and you either pay to collect data you never needed or, worse, run a study too small to catch the very thing you set out to prove. Get it right and you know your number before you recruit a single participant.
By the end of this guide, you'll be able to size your own study instead of guessing.
What is statistical power?
Statistical power is the probability that your study detects a real effect when one actually exists. In plainer terms, it's a measure of how good your study is at catching something that's really there.
Power is written as 1 − β, where β (beta) is the chance of a Type II error: missing an effect that does exist. So a study with 80% power has an 80% chance of spotting a true effect, and a 20% chance of missing it. Around 0.80 is the usual minimum researchers aim for.
Say you're testing a new fertilizer. You think it helps plants produce more crops, and you want to prove it. The statistical power of your study tells you how likely you are to confirm that, assuming the fertilizer really works.
- A high-power study is likely to detect the effect and confirm your hypothesis.
- A low-power study is more likely to miss it and leave you with an inconclusive result.
Power doesn't stand on its own. It's set by a handful of inputs you choose up front, which is where power analysis comes in.
What is power analysis?
Power analysis is the process of calculating how much data a study needs to reliably detect an effect of a given size. It takes your target power, your significance level, and your expected effect size, and hands back the sample size.
The best time to run one is while you're still designing the study, before you collect any data. That's why it's usually called an a priori power analysis, and it's the main reason the technique exists.
Back to the fertilizer. You could plant crops in two fields and apply the fertilizer in only one, then compare the yields at harvest. A power analysis tells you how many plants each field needs for that comparison to stand a good chance of detecting a real difference.
A power analysis showing how sample size and power relate across different effect sizes. Created in seconds with Julius AI.
What is power analysis built from? The four components
Every power analysis balances four numbers: statistical power, significance level, effect size, and sample size. Fix any three of them and the fourth is set.
In practice, you decide on the power you want, the significance level you'll accept, and the effect size you expect, then solve for the sample size. Here's what each one means:
- Statistical power: your chance of detecting a real effect, usually set at 0.80.
- Significance level (alpha): the chance of a Type I error, calling an effect real when it isn't. It's usually set at 0.05, or 5%.
- Effect size: the standardized size of the difference you're looking for, often measured as Cohen's d.
- Sample size: the number of observations you need, and usually the thing you're solving for.
Effect size is the input people guess at most, so it helps to have benchmarks. Jacob Cohen's conventions are the standard reference:
| 📏 Cohen's d | 🔎 What it means |
| 0.2 | Small, hard to spot |
| 0.5 | Medium, visible to the eye |
| 0.8 | Large, obvious |
💡 Tip: You never set all four numbers. You pick three (power, alpha, and a target effect size) and let the power analysis solve for the fourth, which is almost always your sample size.
Types of power analysis: a priori, post hoc, and sensitivity
There are three types of power analysis, and they differ by when you run them and what you solve for.
- A priori: run before data collection to find the sample size you need. This is the standard, recommended use.
- Post hoc: run after the study, using the effect you actually observed. It's widely discouraged, because observed power is just another way of stating your p-value, so it tells you nothing new.
- Sensitivity: run with your sample size, alpha, and power fixed, to find the smallest effect your study could realistically detect. It's closely related to a sensitivity analysis and is handy when your sample size is already locked in.
If you only remember one rule here, make it this: run your power analysis while you're still designing the study.
What happens when a study is underpowered?
An underpowered study can miss an effect that's really there, which means wasted time, a wasted budget, and a result nobody can replicate.
Every hypothesis test sets up two possibilities. The null hypothesis says there's no effect. The alternative hypothesis says there is one, and it's the idea you're trying to support. Your goal is to gather enough evidence to reject the null when the effect is real.
Two errors sit in the way. A Type I error is a false positive: you declare an effect that isn't there, and its rate is your significance level. A Type II error is a false negative: the effect is real, but your study was too small to see it.
Power analysis is how you keep the Type II risk low on purpose, instead of finding out the hard way. For a deeper look at how these tests fit together, see our guide to inferential statistics.
How to increase the power of a study
You can raise a study's power in a few reliable ways. Most of them come down to collecting cleaner data or more of it:
- Increase the sample size. More observations mean more information, and sample size is the lever you control most directly.
- Target a larger, well-measured effect. Bigger effects are easier to detect, and measuring them precisely helps as much as their size.
- Reduce measurement error and variability. The less noise in your data, the easier a real signal is to see, so tighten your instruments and procedures.
- Use a paired or repeated-measures design. Measuring the same subjects under different conditions cancels out a lot of between-subject noise.
- Use a one-tailed test, but only when a directional hypothesis is genuinely justified.
One lever looks tempting and mostly isn't: raising your significance level. Pushing alpha from 0.05 to 0.10 does increase power, but it buys that power by doubling your false-positive rate, so it's a trade almost no reviewer will accept. Treat it as a last resort.
How to run a power analysis (with a worked example)
The math behind a power analysis is fiddly, so almost nobody does it by hand. Start with a worked example, then pick a tool to run it.
Say you're comparing two groups with an independent-samples t-test. You expect a medium effect (Cohen's d = 0.5), you'll use the standard alpha of 0.05 (two-sided), and you want 0.80 power. Plug those into any power calculator and you get roughly 64 participants per group, about 128 in total. As a rough rule of thumb for this two-group t-test, the number per group is about 16 divided by the effect size squared (16 / d²), which at d = 0.5 gives 16 / 0.25 = 64.
Change the inputs and the number moves. Chase a smaller effect and you'll need far more people. Accept lower power and you'll need fewer, at the cost of missing more real effects. (For the two-group setup itself, see our independent samples t-test guide.)
Here are the tools most people reach for:
| 🛠️ Tool | 💬 How you run it | 💰 Cost |
| G*Power | Pick the test, enter alpha, power, and effect size | Free |
| R | pwr.t.test() from the pwr package | Free |
| Python | TTestIndPower().solve_power() in statsmodels | Free |
| Excel | Formulas or an add-in; workable but manual | Paid |
| Julius | Describe the test in plain English and ask | Free plan |
G*Power is the free desktop standby for one-off calculations. R and Python are the picks if your analysis already lives in code. For tests beyond the t-test, like an analysis of variance (ANOVA), the same tools cover you, and plenty of AI data analysis tools can help with the setup too.
Find your sample size before you collect a single data point
A power analysis is only as good as the inputs you feed it, and the fiddly part is usually translating your study into the right test, effect size, and formula. That's where a lot of researchers stall, especially the ones who don't live in R.
We built Julius to close that distance. You describe your study in plain English, and it handles the statistics underneath. Here's how Julius helps with a power analysis:
- Plain-English setup: describe your test and the effect you expect, and Julius works out the sample size, no formula required.
- Start from a question: Julius can search the web for public data, so you can explore before you even have a dataset.
- Built-in visualization: see the full power-versus-sample-size curve, so you can watch how your assumptions move the result.
- Scheduled runs: re-run the same calculation whenever your assumptions change, and keep your study plan consistent as it evolves.
It's the same engine that helps researchers spend less time wrestling with setup and more time on the actual question.
Ready to size your next study without touching a formula? Try Julius for free today.
Frequently asked questions
What are the four components of power analysis?
The four components of power analysis are statistical power, significance level (alpha), effect size, and sample size. Fixing any three of them determines the fourth, which is usually the sample size you solve for.
What does 80% power mean?
80% power means your study has an 80% chance of detecting an effect that truly exists, leaving a 20% chance of missing it (a Type II error). It's the common minimum standard because it balances reliability against the cost of a larger sample.
Is a p-value the same as power analysis?
No, a p-value is not the same as power analysis. A p-value is calculated from your data after the study to weigh evidence against the null hypothesis, while a power analysis is planned before the study to decide how much data you need.
What is the difference between a priori and post hoc power analysis?
The main difference is timing and purpose. A priori power analysis runs before data collection to find the sample size you need, which is the recommended use, while post hoc power is calculated afterward from the observed effect and is discouraged because it mirrors the p-value.
What is the minimum sample size for statistical significance?
There's no single minimum sample size, because it depends on your effect size, significance level (commonly 0.05), and target power (commonly 0.80). For a medium effect in a two-group t-test, that works out to about 64 participants per group.