The sample size is capped by budget, a rare disease or a recruitment ceiling. Enter the number you can enrol and get the smallest mean difference, response rate or hazard ratio that trial can detect at your power, for two means, two proportions and time-to-event outcomes.
Free sandbox · No credit card · 21 CFR Part 11 compliant
Evaluable per arm
54
Detectable difference
6.5
Standardised d
0.54
5.8
6.5
7.6
Minimum detectable effect in brief
Free tool
The defaults show a two-arm trial with 60 participants per arm, 10% dropout, SD 12 and 80% power. Switch the outcome type, change the numbers and read the plain-language result and the power table underneath.
With 54 and 54 evaluable participants and σ = 12, the trial has 80% power only for a true difference of 6.53 or larger. A smaller real effect is more likely than not to be missed.
| Power | Difference |
|---|---|
| 70% | 5.79 |
| 80% | 6.53 |
| 90% | 7.56 |
Planning aid, not validated software; runs in your browser and stores nothing. Two arms, a two-sided test and the standard normal approximations (means: optional t correction on n₁ + n₂ − 2 degrees of freedom; proportions: pooled-variance formula; survival: Schoenfeld with proportional hazards). It is the inverse of the sample size calculators: it fixes n and solves for the effect. Confirm the final figures with a statistician.
When you need it
The usual sample size question starts from an effect and asks for a number. In practice the number often arrives first. A rare disease has 80 eligible patients in the country. A grant funds 120 participants. A phase 2 study is budgeted for one cohort. A site network can recruit about 30 per arm in the window the sponsor will wait. In each case the useful question is not “how many do we need?” but “what difference could we reliably see with the people we can get?” The answer is the minimum detectable effect.
Stating the MDE in the protocol is good practice for two reasons. It lets the reader judge whether the trial is worth running before anyone is enrolled, and it removes the temptation to claim after the fact that a null result “proves no effect”. A trial with an MDE of 6.5 mmHg that finds 3 mmHg has not shown the drug does nothing; it has shown that any effect is probably smaller than 6.5. The power analysis calculator gives the power at one effect; this tool gives the effect at one power, for three outcome types.
The MDE is also the right language for a feasibility conversation with a funder or an ethics committee. It turns “we can only recruit 60 per arm” into “with 60 per arm and the SD from the pilot, we can detect a difference of 6.5 points, which is 0.54 standard deviations, and the smallest difference we would call clinically important is 5”. That sentence makes the trade-off visible, and it is easier to defend than a sample size that was simply the budget.
Method
All three formulas are the standard sample size formulas solved for the effect. Let z_a be the normal quantile for the two-sided alpha (1.96 at 0.05) and z_b the quantile for power (0.84 at 80%).
Two means. The detectable difference is (z_a + z_b) × SD × √(1/n₁ + 1/n₂), using the number evaluable in each arm. With 64 per arm and an SD of 1 this gives 0.495, the textbook “64 per group for a half-SD effect at 80% power”. The tool optionally replaces the normal quantiles with t quantiles on n₁ + n₂ − 2 degrees of freedom, which matters below about 30 per arm. In the default example, 60 randomised per arm and 10% dropout leave 54 evaluable; with SD 12 the MDE is 6.53 (6.47 with the plain normal formula), a standardised difference of 0.54.
Two proportions. There is no closed form for the detectable proportion, because the variance depends on the proportion itself, so the tool solves the pooled-variance sample size formula for the treatment-arm proportion by bisection. With a 30% baseline and 93 per arm it returns 50.0% on the high side, which agrees with the two-proportions sample size calculator (93 per arm for 30% against 50%). On the low side it returns 13.2%: a fall of 16.8 points is detectable where a rise of 20.0 points is needed. The asymmetry is real, so state the direction of your hypothesis.
Time to event. Under proportional hazards, the number of events D needed to detect a hazard ratio HR with allocation fraction p to the treatment arm is D = (z_a + z_b)² / (p(1 − p) (ln HR)²) (Schoenfeld, 1981). Inverted, HR = exp(−(z_a + z_b) / √(D p(1 − p))). With 247 events, 1:1 allocation and 80% power the detectable hazard ratio is 0.700, the same pairing the survival sample size calculator uses in the forward direction. The participant count only enters through the proportion who have an event.
These are planning approximations. They assume a two-sided test, a single final analysis, independent observations and, for survival, proportional hazards and independent censoring. Interim looks change the maximum sample size (see the group sequential design calculator); clustered or repeated data change the variance. The glossary entry on sample size calculation lists the other inputs a protocol must state.
Worked examples
All at two-sided alpha 0.05 and 80% power, 1:1 allocation, computed with this tool’s formulas. Evaluable numbers are after dropout.
| Scenario | Evaluable | Variability | Minimum detectable effect | How to read it |
|---|---|---|---|---|
| Systolic blood pressure, mean change | 54 per arm (60 randomised) | SD 12 mmHg | 6.5 mmHg (d = 0.54) | Worthwhile only if 6.5 mmHg is a plausible drug effect |
| Same trial, fewer participants | 30 per arm | SD 12 mmHg | 8.8 mmHg (d = 0.73) | Only a large effect is visible; a modest one will usually be missed |
| Same trial, doubled | 200 per arm | SD 12 mmHg | 3.4 mmHg (d = 0.28) | Four times the participants of 54-per-arm buys about half the MDE |
| Responder rate, baseline 30% | 93 per arm | Binomial | 50.0% (up) or 13.2% (down) | Detects +20 points or −17 points |
| Responder rate, baseline 30%, small study | 45 per arm (50 randomised) | Binomial | 59.0% (up) or 7.3% (down) | Needs a +29 point effect: unrealistic for most drugs |
| Oncology-style progression, 1:1 | 247 events | Proportional hazards | HR 0.700 | A 30% hazard reduction; with 100 events only HR 0.571 |
Hazard ratios for other event counts at 80% power, 1:1: 100 events, HR 0.571; 150 events, HR 0.633; 300 events at 90% power, HR 0.688. Check each against your own statistician’s software before it goes in a protocol.
Interpretation
A number is only useful against a yardstick. Compare the MDE with four things, in this order.
If the smallest difference that would change practice is 5 points and the MDE is 6.5, the trial can miss a worthwhile benefit. Either enlarge it, tighten the measurement, or accept in writing that the study is a signal-finding step. Defining the endpoint and its important difference comes first; the primary endpoint glossary entry covers what to specify.
Phase 2 effects are usually optimistic. If the earlier study reported a 7-point difference, planning to detect exactly 7 leaves no room for shrinkage; planning to detect 5 is more robust.
An MDE is proportional to the SD. A 25% underestimate of the SD makes the real MDE 25% larger. Run the tool at an SD you consider pessimistic and see whether the answer still holds; the two-means sample size calculator discusses where the SD should come from.
Dropout, missing primary assessments and protocol exclusions reduce n. Use the realistic loss rate; the dropout-adjusted sample size calculator explains why dividing is correct and adding a percentage is not. An MDE computed on the randomised number is optimistic.
Build the eCRFs, visit schedule and randomization for your capped cohort in the free sandbox, with no credit card. Pay only when you go live.
The square-root rule
SD 12, two-sided alpha 0.05, 80% power, t correction on, equal evaluable numbers per arm.
| Evaluable per arm | Minimum detectable difference | Standardised d | Relative to 54 per arm |
|---|---|---|---|
| 30 | 8.8 | 0.73 | 135% |
| 54 | 6.5 | 0.54 | 100% |
| 100 | 4.8 | 0.40 | 73% |
| 200 | 3.4 | 0.28 | 52% |
Going from 54 to 200 per arm is 3.7 times the participants for roughly half the MDE. If the budget can stretch only a little, spend it on lowering the SD (a better measurement, a baseline covariate, repeated measures) as often as on n.
In Capture
An MDE is only as good as the SD and the dropout you assumed. Capture does not calculate sample sizes; it keeps the data that tests your assumptions clean and visible, and puts randomization in the same system as the forms.
For the protocol
Name the primary endpoint, its unit and whether a higher or lower value is better, so the one-sided or two-sided choice is clear.
Cite the study or pilot the SD or baseline rate came from, and the number of participants behind it.
State the dropout assumption and give both numbers.
Two-sided 0.05 and 80% or 90% are common; say which you used.
Give the minimal clinically important difference next to the MDE so readers can compare them.
A non-significant result rules out effects larger than about the MDE, not all effects.
It is the smallest true effect (a mean difference, a difference in proportions or a hazard ratio) that a trial with a given sample size has the chosen power to detect at the chosen significance level. It is computed before the trial from n, the variability, alpha and power.
They are the same relationship used in opposite directions. A sample size calculation fixes the effect and solves for n. The minimum detectable effect fixes n and solves for the effect. If you plug the MDE back into a sample size calculation with the same alpha, power and variability, you get the n you started with.
No. The MDE comes from statistics and your sample size; the minimal clinically important difference comes from clinical judgement about what matters to patients. A well-planned trial has an MDE at or below the clinically important difference. If the MDE is larger, the trial can miss a difference that matters.
The variance of a proportion is p(1 − p), which is not symmetric around the baseline. Moving up from 30% adds variance, moving down toward 0% removes it, so a smaller absolute change is detectable on the low side. With a 30% baseline and 93 per arm, the high side is 50.0% (+20 points) and the low side 13.2% (−16.8 points).
Events come from the Schoenfeld formula: for a hazard ratio of 0.70 with 1:1 allocation, 80% power and two-sided alpha 0.05 about 247 events. Participants then depend on the proportion expected to have an event during follow-up: divide events by that proportion. The survival sample size calculator works forward from the hazard ratio.
For means with fewer than about 30 evaluable participants per arm, yes: the t quantiles are larger than the normal ones and the MDE is a little larger. With 54 per arm the difference is small (6.53 against 6.47 in the default example). The correction is exact in form for means and an approximation for the other two outcome types, where the tool uses the normal formulas.
Not directly. Those designs have a margin instead of an effect, and one-sided or two one-sided tests. See the non-inferiority sample size calculator and the equivalence calculator, and treat the margin as the quantity you can demonstrate.
No. The calculation runs in your browser and nothing is saved or transmitted. It is a planning aid, not validated software, and a statistician should confirm the final design.
Keep exploring
Power analysis calculator
Power for a given effect and n.
Two-means sample size calculator
Solve for n from a mean difference.
Two-proportions sample size calculator
Solve for n from two proportions.
Survival sample size calculator
Events and total N for a hazard ratio.
Dropout-adjusted sample size calculator
Convert evaluable to enrolled.
Pilot study sample size calculator
Getting the SD from a small study.
Build the eCRFs, visit schedule and randomization in the free sandbox with nearly every feature. No credit card, pay only at go-live.