Sample Size Calculator for Animal Studies
Find how many animals you need for a two-group comparison, a before/after design, a one-way ANOVA or a comparison of two percentages, optionally with a second factor such as sex, and get a justification paragraph ready for your animal use protocol. Everything runs in your browser; nothing you enter is stored or sent anywhere.
Study design
Expected effect
Use pilot data or published studies. The result is only as good as this estimate.
Settings
Result
Actual power with 17 animals per group: 80.7%.
Justification for your protocol
Paste this into your animal use protocol or grant. Edit the source of your estimate first.
How the numbers are calculated
t-tests and ANOVA use exact power calculations based on the noncentral t and F distributions, the same method as the R package pwr. We checked the results against published reference values: for example, a medium effect (d = 0.5) needs 64 animals per group for 80% power.
Two percentages are compared with the normal approximation and a continuity correction (Fleiss), which is slightly conservative.
Effect sizes: Cohen’s d is the difference between group means divided by the standard deviation. For before/after designs, dz is the mean change divided by the standard deviation of the changes. For ANOVA, Cohen’s f is the standard deviation of the group means divided by the within-group standard deviation. With a second factor such as sex, the design becomes a two-way ANOVA: f is worked out separately for the main effects and the interaction from the group means, and each is tested with the two-way ANOVA F test, assuming equal group sizes.
A power analysis is only as good as the effect size you expect, so base it on pilot data or published studies. Detecting an interaction, such as whether a treatment works differently in males and females, usually takes several times more animals than detecting a main effect. For designs this calculator doesn’t cover, such as several repeated time points or mixed models, consult a statistician.
Join the Lerner Lab
Centre for Addiction and Mental Health, Toronto, Ontario
UNIVERSITY OF TORONTO

© 2026 Lerner Lab, Centre for Addiction and Mental Health. All rights reserved.