Sample size and power calculator
Choose what you are testing, then enter alpha, power and the expected difference or effect size. The result shows the required n and says whether it is exact or a normal approximation.
Sample size and power calculator calculates in your browser: the numbers you enter are never sent to a server. It is free and needs no sign-up.
How to use it
- Pick a tab and a target In the Sample size and power calculator, open Survey, Means, Proportions, ANOVA, χ² and correlation, or Effect sizes. In a tab, choose Sample size or Power, then enter α, target power and effect size.
- Read the sample size and power Read the large result first. For two groups with d 0.5, alpha 0.05 and power 0.8, the page shows 64 per group and 128 in total, then the actual power of 0.8015 in the rows below.
- Check the curve and assumptions Use the power curve to see how power rises with n, and read the notes. The formulas assume simple random sampling. A clustered design needs a design effect that you apply yourself.
Questions
Why does another program give a different number?
Programs differ in rounding, in approximations and in the exact method they use. Some use a normal approximation, where this page computes the exact non-central distribution for t, F and chi-squared tests. A one-participant difference is possible, so state the method you used.
Should I add a dropout rate?
This tool does not add one. A sample size counts the people you need to analyze. If some will leave the study, divide the per-group number by the expected share who stay, and round up. The Survey tab has a response rate field for invitations instead.
Does the page upload my inputs?
No. The calculation runs in your browser. The share link puts your inputs after the # sign, which is not sent to our server, and anyone with the link can read them. The tool is a planning aid and assumes simple random sampling.