Enter the events and participants in each arm, or just the two event rates. Get the absolute risk reduction, relative risk, relative risk reduction and the number needed to treat to benefit or harm, rounded the conventional way.
Free sandbox · No credit card · 21 CFR Part 11 aligned
Control event rate
20.0%
Experimental event rate
15.0%
Absolute risk reduction
5.0 points
NNTB
20
100 of 500
75 of 500
NNT in brief
Free tool
Choose whether the event is unwanted (death, relapse) or wanted (response, remission), then enter counts or rates. Counts also give a 95% confidence interval. Nothing is saved or sent.
Planning aid and reference only, not validated software. NNT = 1 / absolute difference, rounded up to the next whole number. The confidence interval uses the Wald (normal approximation) interval for the risk difference and takes reciprocals of its limits (Altman 1998); when that interval includes zero, the NNT interval runs from NNTB through infinity to NNTH. The Wald interval is unreliable with few events or rates near 0% or 100%; your statistician may prefer the Newcombe or another method.
The method
Start with the event rate in each arm. The control event rate (CER) is the events in the control arm divided by its participants; the experimental event rate (EER) is the same for the experimental arm. For an unwanted event, the absolute risk reduction (ARR) is CER minus EER. The relative risk (RR) is EER divided by CER, and the relative risk reduction (RRR) is 1 minus RR.
The number needed to treat is the reciprocal of the absolute difference: NNT = 1 / ARR. It reads as the average number of people who need the experimental treatment instead of the control, over the trial's follow-up, for one extra person to avoid the event. By convention it is rounded up, so an ARR of 0.12 gives 8.3, reported as 9, and an ARR of 0.22 gives 4.5, reported as 5 (the Cochrane Handbook uses these examples in chapter 15).
Worked example with the demo numbers: 100 of 500 control participants and 75 of 500 experimental participants have the event. CER = 20.0%, EER = 15.0%, ARR = 5.0 percentage points, RR = 0.75 and RRR = 25%. NNT = 1 / 0.05 = 20. Treat 20 people with the experimental option and, on average, one fewer will have the event than if all 20 had received the control.
The calculator puts a Wald 95% interval on the risk difference: ARR plus or minus 1.96 standard errors, where the standard error is the square root of CER(1 - CER)/n1 + EER(1 - EER)/n2. For the demo data that is 5.0% plus or minus 4.7%, so 0.30% to 9.70%. Following Altman (BMJ, 1998), the NNT limits are the reciprocals: about 10.3 and 333, reported as NNTB 11 to 334.
Now take 60 of 300 versus 45 of 300. The point estimate is the same ARR of 5.0%, but the interval is -1.07% to 11.07%, which includes zero. The NNT interval is then NNTB 10 to infinity to NNTH 94: the data are compatible with a modest benefit, no effect, or a small harm. Reporting only "NNT 20" here would overstate what the trial shows.
Why baseline risk matters
Relative risk reduction held at 25%. Only the control event rate changes.
| Control event rate | Experimental event rate | Absolute risk reduction | NNTB |
|---|---|---|---|
| 40% | 30% | 10 points | 10 |
| 20% | 15% | 5 points | 20 |
| 4% | 3% | 1 point | 100 |
| 1% | 0.75% | 0.25 points | 400 |
A treatment that looks identical in relative terms can need 10 or 400 people treated for one to benefit.
Interpretation
An NNT has no meaning without a time frame. An NNT of 20 over one year and an NNT of 20 over five years describe very different treatments, so always state the follow-up period alongside the number. Likewise, an NNT from a high-risk trial population does not transfer to a lower-risk clinic population: apply the trial's relative effect to the new baseline risk instead, as the table above shows.
Use NNTB and NNTH rather than a bare NNT when the direction matters. The Cochrane Handbook recommends these labels and advises against the older "number needed to harm" wording, because readers can misread it as the number of people harmed. For a meta-analysis, do not add up events and participants across trials and divide; compute the NNT from the pooled risk difference, or from a pooled relative effect applied to an assumed control risk.
These come up repeatedly in protocols, publications and investor decks.
Build the event forms, randomise and test exports in the free sandbox. No credit card. You pay only when you go live.
From trial data to NNT
An NNT is only as good as the event counts behind it. Every event needs a clear definition in the protocol, a form that records it the same way at every site, and a denominator that matches the analysis population. See clinical trial endpoints for how binary and time-to-event endpoints differ, and use the sample size calculator to check that the trial can detect the absolute difference you hope to report.
In Capture, the event forms are eCRFs with edit checks that raise a query automatically when an entry breaks a rule, and every change sits in a field-level audit trail with the reason for change. Allocation can run inside the same system with built-in randomisation, and blinded roles never receive treatment-arm values. At analysis time, CSV or Excel exports come with a data dictionary, and SDTM datasets export as SAS XPT files with Define-XML, so the statistician can calculate the risk difference and its interval in their own validated software. EDC for biostatisticians and SAS programmers covers the export side in more detail.
Before you publish an NNT
NNTB or NNTH, not a bare NNT.
The follow-up period the event rates refer to.
The control event rate the NNT was calculated from.
95% CI, including the infinity case when the difference CI crosses zero.
Same denominator as the primary analysis set.
Next whole number, never rounded down.
Subtract the experimental event rate from the control event rate to get the absolute risk reduction, then take 1 divided by that difference and round up. With 20% and 15%, the difference is 0.05 and the NNT is 20.
NNTB is the number needed to treat for one additional person to benefit. NNTH is the number needed to treat for one additional person to be harmed. The calculator shows NNTH when the experimental arm does worse.
It is a convention that avoids overstating the benefit. An exact value of 8.3 is reported as 9, because you cannot treat a fraction of a person and rounding down would flatter the treatment.
The confidence interval for the risk difference includes zero. The data are then compatible with benefit, no effect and harm, so the NNT interval runs from an NNTB through infinity to an NNTH.
Yes, if you supply a baseline risk. Multiply the control event rate by the relative risk reduction to get the absolute difference, then take its reciprocal. The answer depends heavily on the baseline risk you choose.
No. It is a free planning and reference aid that runs in your browser. Confirm reported values with your statistician and your validated analysis software.
Keep exploring
Clinical trial sample size calculator
Power the trial for the difference you want to show.
Non-inferiority sample size calculator
When the goal is "not worse by more than M".
Dropout-adjusted sample size calculator
Inflate enrolment for attrition.
Clinical trial randomization software
Allocation in the same system as the data.
Clinical trial endpoints
Binary, continuous and time-to-event outcomes.
Free sandbox with every feature. No credit card. You pay only when you go live.