How many participants per group to detect a difference in a continuous outcome — blood pressure, length of stay, a lab value, a score.
Most online calculators use the normal approximation, which overstates power (and understates the n you need) in small samples. This one uses the exact noncentral t distribution (algorithm AS 243) and searches for the smallest n that reaches your target power — the same computation as R's power.t.test, against which it is validated. With the defaults (difference 5, SD 10, α = 0.05, 80% power) both give 64 per group.
What drives the answer is the standardized difference δ/σ: halving the detectable difference quadruples the required sample.
A sample size is one line of a statistical plan. MedStatica turns a plain-language description of your study into the full plan — design, recommended analysis, power, causal diagram, methods paragraph, and runnable R, Python, SAS, and Stata code. The first plans are free, no card required.
Plan my study free →Related calculators: paired t-test · one mean vs a reference value · comparing two proportions · all calculators