Teaching · For Teachers · Research sampling and design

How many students
is enough?

Choose the size of difference you want to be able to detect, how sure you want to be and how likely you want to be to find it. The page works out the students each of two groups needs for a comparison of means, adds an allowance for dropout and shows what smaller and larger differences would need.

$9.99a month · everything on Caveat

Cancel anytime. How plans and refunds work

Included with Caveat Plus ($9.99 a month or $99.90 a year), Caveat Family (up to 5 people, $14.99 a month) and Caveat Teams (25 people, $199 a month). Anything you bought before stays yours.

The statistical power analysis workspace

The worked example is a difference of 0.5 standard deviations, a 5 percent false alarm, 80 percent power and 10 percent dropout. Nothing you type leaves this browser.

Loading the calculator. If nothing appears, turn on JavaScript.

What you get

Teaching · For TeachersIncluded with Caveat Plus

What you finish with
The students each of two groups needs to detect a difference of a chosen size at a chosen false-alarm rate and power, the number to recruit allowing for dropout, the total, and a table of other effect sizes.
Who it is for
Teachers, school leaders and graduate students who plan a comparison of two groups and need to know how many students to include.
Format
Browser calculator for a phone, tablet or computer, by touch or keyboard. Prints a summary; downloads a spreadsheet (.csv); export and import a file.
Access
Included with Caveat Plus ($9.99 a month) and Caveat Teams. It opens once you are signed in, on every device. Anything you bought before stays yours. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The For Teachers space in Caveat Teaching.
Support
Questions, a correction or a request: team@caveatacademic.com.

How to use it

  1. Name the study.
  2. Type the difference you want to detect, in standard deviations.
  3. Choose the false-alarm chance and the power.
  4. Type the dropout you expect.
  5. Read the students needed and try other differences in the table.

Find the sample size

How the figures are worked out

A normal-curve formula for two group means, with a small correction and an allowance for dropout.

The worked example: d = 0.5Difference0.5standard deviationsTo analyze64each groupDropout10%expectedRecruit72each groupThe worked example: d = 0.5Difference0.5standard deviationsTo analyze64each groupDropout10%expectedRecruit72each group
The sample grows with the square of how sure you want to be and shrinks with the square of the difference.

Power is chosen before the study

Power is the chance a study finds a difference that is really there. Cohen's widely used guide suggests aiming for 80 percent, and sizes his small, medium and large effects at 0.2, 0.5 and 0.8 standard deviations. Choosing the sample after the data are in cannot fix a study that was too small.

Why the formula has a small correction

The simple normal-curve formula slightly understates the sample a t test needs. Adding the false-alarm z squared over four closes most of the gap, and gives 64 per group for a medium effect at 5 percent and 80 power, the figure power software gives for the same design.

Sources

  1. Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum: effect sizes and sample sizes for comparing two means.
  2. Guenther, W. C. (1981). Sample size formulas for normal theory t tests. The American Statistician, 35(4), 243-244.
  3. Your own judgment of the smallest difference that would matter.
  4. Power software, for designs other than two independent groups.

A planning guide for one design, not a power analysis for your whole study. The worked example is made up. Your entries stay in this browser. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.