Number Needed to Treat (NNT) Calculator
Turn a trial's control and treatment event rates into NNT, NNH, absolute and relative risk reduction, and a 95% confidence interval — with the full working shown. Built for medical, nursing and pharmacy students appraising a randomised trial. No signup, sources cited.
How it works
The calculator follows the standard evidence-based-medicine formulas published by the Oxford Centre for Evidence-Based Medicine (CEBM) and the two founding BMJ papers by Cook & Sackett (1995) and Altman (1998). Throughout, the counted “event” is the bad outcome — death, myocardial infarction, relapse and the like — not the number of patients who improved.
- Event rates. The control event rate is CER = control events ÷ control total; the experimental event rate is EER = treatment events ÷ treatment total. In Rates mode you enter these two percentages directly.
- Absolute risk reduction.
ARR = CER − EER. This is the extra fraction of patients spared the bad outcome by the treatment. - Number needed to treat.
NNT = 1 / ARR, always rounded up to the next whole patient — you cannot treat a fraction of a person. - Harm case. If EER exceeds CER the treatment increases the bad outcome. The tool then reports the number needed to harm, NNH = 1 / (EER − CER), and relabels the headline.
- Relative measures.Relative risk RR = EER / CER and relative risk reduction RRR = ARR / CER = 1 − RR. When CER is zero these are undefined and shown as “n/a”.
- Confidence interval (Altman 1998). The standard error of the ARR is
SE = √[CER(1−CER)/n_c + EER(1−EER)/n_t]. The ARR interval is ARR ± z·SE, with z = 1.645, 1.96 or 2.576 for 90%, 95% or 99%. Inverting each ARR bound gives the NNT bounds.
When the ARR confidence interval crosses zero the treatment effect is not statistically significant: a true ARR of zero maps to an infinite NNT. Following Altman, the interval is then written across infinity — NNTB a to ∞ to NNTH b — because the data cannot rule out either benefit or harm. As an independent check, the tool also recomputes the NNT through the relative-risk route, 1 / (CER × (1 − RR)), and confirms it matches the 1/ARR result to the rounded patient.
Worked examples
Frequently asked questions
Sources & references
- Cook RJ, Sackett DL — The number needed to treat (BMJ 1995;310:452)
- Altman DG — Confidence intervals for the number needed to treat (BMJ 1998;317:1309)
- Oxford CEBM — Number Needed to Treat (NNT): formulas and interpretation
The formulas on this page were last cross-checked against these sources on 2026-07-12. NNT is defined for binary (event / no-event) outcomes from a single randomised trial; continuous outcomes and pooled meta-analysis are out of scope.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.