Statistics calculator
FreePower Analysis: Two-Sample t-Test
Find the sample size a two-sample t-test needs. Drag the effect-size slider and watch the required n move, with power and alpha stated up front.
Your numbers
Results update as you change the inputs.
Significance level α (two-sided)
Power (1 − β)
Calculating…
Assumption check
How to use this tool
What this tool is for
This calculator finds the sample size a two-sample t-test needs. You state the effect size you want to detect, the significance level, and the power, and it returns the number of subjects required in each group under a two-sided test with equal group sizes.
How to use it
- Drag the effect size slider to the smallest difference that would matter, expressed as Cohen d.
- Choose the significance level. The preset 0.05 is the common choice.
- Choose the power: 80 percent, or 90 percent for a safer plan.
- Read the required number of subjects per group in the headline.
The fields
- Effect size (Cohen’s d)
- The difference between the two group means, expressed in standard deviations. A d of 0.2 is small, 0.5 is medium, and 0.8 is large. Smaller effects need far larger samples.
- Significance level α (two-sided)
- The risk of a false alarm you accept. At 0.05, a difference this large would arise by chance about one time in twenty when the groups are really equal.
- Power (1 − β)
- The chance the test detects the stated effect size when it is really there. Eighty percent is the common floor.
Two-sided, equal group sizes, normal approximation. Answer: how many subjects per group to have the chosen power of detecting the given effect size.
Get new free tools as they ship
One short email when a new calculator or template lands. No spam, unsubscribe anytime.