Free Tool
NNT Calculator
Enter the number of events and patients in a control group and a treatment group, or the two event rates, to calculate the number needed to treat (NNT) or number needed to harm (NNH), the absolute and relative risk reduction and a 95% confidence interval.
The calculator opens with the hypothetical worked example below.
Inputs
What you have
The event is
Results
NNT 20: on average, 20 patients need the treatment instead of the comparator to prevent one additional event.
- Control event rate (CER)
- 20%
- Treatment event rate (EER)
- 15%
- Absolute risk reduction (ARR)
- 5 percentage points
- 95% CI 1.03 to 8.97 percentage points
- Relative risk (EER ÷ CER)
- 0.75
- Relative risk reduction (RRR)
- 25%
- NNT (rounded up)
- 20
- 1 ÷ 0.05 = 20 before rounding
- 95% confidence interval for the NNT
- 11.1 to 97.3
- Fewer events per 1,000 patients treated
- 50
Educational tool. This calculator is for learning and quick checks. It is not a substitute for a full economic model, which handles time, uncertainty and the methods an HTA body requires, or for an HTA submission. Calculations run in your browser and the numbers you enter are not stored.
Method
How the calculation works
The number needed to treat is the reciprocal of the absolute difference in risk between two groups. The calculator first turns the counts into event rates, then works out the absolute and relative effect, and finally the NNT with its confidence interval.
- CER
- Control event rate: the proportion of patients in the control (comparator) group who have the event during follow-up.
- EER
- Experimental event rate: the proportion of patients in the treatment group who have the event over the same follow-up.
- ARR
- Absolute risk reduction, CER − EER, also called the risk difference. If the event is more common with treatment, the difference is an absolute risk increase (ARI).
- RR
- Relative risk (risk ratio): the event rate with treatment divided by the event rate in the control group.
- RRR
- Relative risk reduction: the ARR as a share of the control event rate, equal to 1 − RR.
- NNT
- Number needed to treat: patients who must receive the treatment instead of the comparator for one additional patient to benefit, over the follow-up of the study.
- NNH
- Number needed to harm: patients treated for one additional patient to be harmed. Calculated as 1 ÷ ARI.
- nc, nt
- Number of patients in the control group and in the treatment group.
By convention the NNT is rounded up to the next whole number, so 16.7 is reported as 17. The calculator shows the value before rounding as well, so you can see how close it was. It applies the same rule to an NNH: the Cochrane Handbook states the convention for NNTs in general and sets no separate rule for harms.
NNT or NNH: which one you get
For an unwanted event such as death, relapse or a heart attack, a lower rate with treatment is a benefit and the result is an NNT. If the rate is higher with treatment, the difference is an absolute risk increase and the result is a number needed to harm (NNH = 1 ÷ ARI). The Cochrane Handbook recommends the labels NNTB and NNTH instead of NNH; this page keeps NNH because it is the more familiar term. For a wanted outcome such as response or cure, switch the outcome type: a higher rate with treatment is then the benefit, and the NNT is 1 divided by the absolute benefit increase.
The 95% confidence interval
The interval is calculated for the absolute risk difference first, with the standard large-sample (Wald) formula for a difference between two proportions. The limits for the NNT are the reciprocals of those two limits, in reverse order.
When the interval for the risk difference includes zero, the result is not statistically significant at the 5% level and the NNT interval cannot be written as two ordinary numbers. It runs from a number needed to harm, through infinity (no effect), to a number needed to benefit. The calculator shows it in the notation Altman proposed: NNTH to ∞ to NNTB.
The Wald interval is an approximation. It becomes unreliable when groups are small or when event rates are close to 0% or 100%; in those cases use a statistical package with a score-based method such as Newcombe’s.
Worked example
Worked example (hypothetical)
In a one-year trial, 700 patients receive standard care and 140 of them have a heart attack. Another 700 receive a new medicine and 105 have a heart attack. All numbers are hypothetical and chosen to keep the arithmetic simple. They are the default inputs of the calculator above.
- CER = 140 ÷ 700 = 0.20 (20%)
- EER = 105 ÷ 700 = 0.15 (15%)
- ARR = 0.20 − 0.15 = 0.05 (5 percentage points)
- RR = 0.15 ÷ 0.20 = 0.75, so RRR = 0.05 ÷ 0.20 = 0.25 (25%)
- NNT = 1 ÷ 0.05 = 20
- SE = √(0.20 × 0.80 ÷ 700 + 0.15 × 0.85 ÷ 700) = √0.0004107 = 0.0203
- 95% CI for ARR = 0.05 ± 1.96 × 0.0203 = 0.0103 to 0.0897
- 95% CI for NNT = 1 ÷ 0.0897 to 1 ÷ 0.0103 = 11.1 to 97.3
Twenty patients need the new medicine for one year to prevent one heart attack, and the data are compatible with an NNT anywhere between 11.1 and 97.3. Steps 7 and 8 use the unrounded standard error and limits, as the calculator does. The medicine also avoids 50 heart attacks per 1,000 patients treated.
Now keep the same event rates but shrink the trial to 200 patients per group (40 and 30 events). The NNT is still 20, but the standard error rises to 0.0379 and the 95% interval for the ARR becomes −0.0243 to 0.1243. It includes zero, so the interval for the NNT is NNTH 41.1 to ∞ to NNTB 8.0: the smaller trial cannot rule out that the medicine has no effect or does harm.
In practice
How to read an NNT in HTA
An NNT is easy to communicate, but it is tied to the comparator, the outcome, the length of follow-up and the baseline risk of the patients studied. The same relative effect produces a larger NNT in a low-risk population than in a high-risk one, so an NNT from one trial should not be carried over to patients with a different baseline risk without recalculating it. NNTs from trials of different length are not comparable either.
For these reasons evidence syntheses usually pool a relative measure, such as a risk ratio, and then apply it to a stated baseline risk to express the result in absolute terms. HTA bodies that use economic evaluation go one step further and combine effects, harms, quality of life and costs in measures such as the QALY and the ICER, which an NNT cannot capture on its own.
The full background, including the number needed to harm, time-to-event data and a reporting checklist, is in our article on the number needed to treat. Absolute and relative effect measures and confidence intervals are taught in Module 3: Biostatistics.
- BlogNumber Needed to Treat (NNT): Formula, Calculation and Limits
- GlossaryNumber needed to treat (NNT): definition
- BlogHazard Ratio Explained: How to Interpret HRs
- BlogKaplan-Meier Curve: How to Read and Use It in HTA
- Course · Module 3Biostatistics
- Course · Module 4Evidence Synthesis
Sources
FAQ
Frequently asked questions
More free tools