Sample size and power analysis
Calculate the sample size needed for two means, two proportions, a correlation or multiple regression; add attrition and see on a power curve how fragile the effect is.
Why power analysis first?
A study’s statistical power is the probability of detecting an effect that really exists. Underpowered studies don’t just miss effects; when they do come out significant, they tend to exaggerate the effect. One reason for psychology’s replication crisis is years of small-sample studies that came out significant by chance. Setting the sample size before collecting data, based on the expected effect, is a basic step of good research.
How to use it
- Choose the analysis: two means (independent or paired t-test), two proportions, correlation or multiple regression.
- Enter the expected effect size. For means you can type Cohen’s d directly or compute it from expected means and standard deviation.
- Choose the significance level (α), desired power (usually 0.80 or 0.90) and the hypothesis direction.
- Enter expected attrition; the tool inflates the sample you need to recruit.
The power curve shows how the probability of detecting the effect changes as the sample grows. Its steepness tells you how fast power falls if your effect estimate is even slightly optimistic.
Where to get the effect size
Cohen’s “small, medium, large” benchmarks (0.2 / 0.5 / 0.8 for d) are a rough start, and Cohen himself stressed they were for when no field-specific information is available. Better to look at meta-analyses in your area. Funder and Ozer suggest that in psychology r = 0.10 can be small but consequential over time, 0.20 medium and 0.30 large. An effect taken from a single earlier study is usually inflated by publication bias; choosing a more cautious value is wise. To convert the effect you found into other metrics, use the Effect size converter.
Sources
Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Erlbaum. · Faul, F., Erdfelder, E., Lang, A.-G., & Buchner, A. (2007). G*Power 3. Behavior Research Methods, 39(2), 175–191. · Funder, D. C., & Ozer, D. J. (2019). Evaluating effect size in psychological research: Sense and nonsense. Advances in Methods and Practices in Psychological Science, 2(2), 156–168.
A normal approximation is used for t-tests, proportions and correlations; regression uses an exact noncentral F calculation. Calculations run in your browser.
Frequently asked questions
Are the results the same as G*Power?
Why is power usually set at 0.80?
How should I set attrition?
Should I choose a one-sided test?
02 Systems
Organisations, data and design
People can only be as well as the systems they live in. I work in four areas so that workplaces, interfaces, trainings and processes fit the people who use them:
Related training
Evidence literacy: What numbers can and can’t say about people
We can work on this together for your team or organisation.
Request a training