Sample size calculator for comparing two groups (power analysis)
Planning an experiment or RCT with two arms? Enter the smallest effect size worth detecting, your α and desired power, and get the participants needed per group.
Or skip the manual work
In the app, you chat with your data — the AI runs the analysis and writes it up.
Free accounts include AI chat, data analysis, and every tool on this site.
When to use this
Use this at the design stage of any two-arm study — treatment vs. control, intervention vs. usual care, condition A vs. condition B — where the outcome is continuous and will be tested with an independent samples t-test. Funders, ethics boards, and preregistration templates all expect exactly this calculation: the sample size follows from the smallest effect size you care about, your α, and the power you want. Base the expected d on a pilot study, a meta-analysis in your area, or the smallest effect that would be practically meaningful — not on hope.
Key assumptions
- Two independent groups of equal size, continuous outcome, t-test analysis.
- The effect size entered is in standard deviation units (Cohen’s d).
- Normal-approximation formula with a small-sample correction — matches G*Power within a participant or two.
Common mistakes
- Powering for the effect you found in a small pilot — pilot effect sizes are noisy and usually inflated.
- Ignoring attrition: recruit above n to end with n analyzable participants.
- Running a "post-hoc power" analysis on a completed study — it adds no information beyond the p-value.
Frequently asked questions
What effect size should I enter if I have no pilot data?
Why 80% power?
Does this work for a Mann–Whitney U test or unequal groups?
Related free tools
Stop copying numbers between tools
Inside Kahubi, the AI agent runs this analysis directly on your uploaded dataset — then writes the results section in your own writing style, with the statistics reported correctly.