CALCULATOR · CLINICAL RESEARCH
Number Needed to Treat Calculator with Absolute and Relative Risk Reduction
Enter the events and the group size in the control and treatment groups. The number needed to treat with its confidence interval, the absolute and relative risk reduction and a plain reading of them update as you type. Nothing you enter leaves your browser.
Runs in your browser. No data is sent or stored.
Method reviewed by an in-house statistician · Last checked November 2026
In Short
A number needed to treat calculator converts the difference in event risk between a control and a treatment group into the number of patients who must be treated for one additional patient to benefit. It is the reciprocal of the absolute risk reduction, so it carries the same baseline risk as the groups it came from. The calculator reports the control and experimental event rates, the absolute and relative risk reduction, and an interval for the NNT that stays honest when the absolute risk reduction is close to zero.
How It Is Calculated
The control event rate (CER) and experimental event rate (EER) give the absolute and relative risk reductions, and the NNT is the reciprocal of the absolute one:
ec, nc = events and total in the control group · et, nt = events and total in the treatment group. When ARR is below zero the result is the number needed to harm (NNH), shown as a positive number with that label.
The interval for the absolute risk reduction uses the Newcombe hybrid score method (method 10), built from the Wilson limits (l1, u1) for the control rate and (l2, u2) for the treatment rate (Newcombe, 1998b):
The interval for the NNT is the reciprocal of the ARR limits, in reverse order (Altman, 1998). The NNT is shown as the reciprocal to one decimal and also rounded up to the next whole person for the interpretation sentence, such as “about 7 patients must be treated for one additional patient to benefit.”
When the interval for the ARR includes zero, the calculator does not print a finite interval. It prints the NNT with its interval in Altman’s notation, running from NNT(benefit) through infinity to NNT(harm). For 30/150 against 25/150, for example, the calculator prints “NNT 30; the 95% CI for the ARR includes zero, so the NNT interval runs from NNT(benefit) 8.3 to ∞ to NNT(harm) 18.3.” A risk difference of exactly zero returns “NNT undefined (no difference in risk)” with the ARR interval.
Assumptions and When Not to Use It
- Independent groups, one binary outcome. Each participant appears once, and the outcome is counted over the same follow-up in both groups.
- The baseline risk is part of the answer. The NNT applies to the control risk entered. A different baseline risk gives a different NNT, even if the relative effect is the same. See Absolute Risk Reduction vs Relative Risk Reduction: What Is the Difference?
- A relative question needs a relative measure. When the point is how many times larger or smaller the risk is, use the Relative Risk Calculator with Confidence Interval. The NNT is an absolute measure.
- An interval that includes zero. When the ARR interval includes zero, the NNT interval is not a single range and the result must be reported in the benefit-to-harm notation.
- Valid counts. Events cannot exceed the group total, and each group needs at least one participant. Otherwise the calculator returns a message, not a number.
Worked Example (Hypothetical Values)
A trial reports an event in 30 of 100 control participants and 15 of 100 treated participants over the same follow-up.
| Input or result | Value |
|---|---|
| Control group, events / total | 30 / 100 |
| Treatment group, events / total | 15 / 100 |
| Control event rate (CER) | 0.30 |
| Experimental event rate (EER) | 0.15 |
| Absolute risk reduction (95% CI) | 0.150 (0.034 to 0.261) |
| Relative risk reduction | 0.50 |
| NNT (95% CI) | 6.7 (3.8 to 29.3) |
| NNT rounded up for interpretation | 7 |
About 7 patients must be treated for one additional patient to benefit. The interval is wide on the upper side because the lower limit of the ARR is close to zero. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.
What the Result Still Needs
- 1
A comparable follow-up. Both groups were observed for the same time, and the NNT states that time, since it is meaningless without it.
- 2
A baseline risk that fits your population. The control risk comes from your trial or a source you can cite, and the NNT is not carried to a population with a different baseline risk.
- 3
The interval reported with the NNT. An NNT without its confidence interval hides how uncertain the absolute risk reduction is, especially when the interval touches zero.
- 4
Absolute and relative measures together. The risk reduction in both forms, with the group event rates, so the reader sees the size and the baseline.
- 5
A clinical reading checked against the research question. The NNT is described as a population-level summary of a trial, not as a prediction for one patient.
A statistician checks the counts and the follow-up against your design, confirms the measures and intervals, and writes the results sentence for your manuscript or report.
Results Reporting & InterpretationIndependent Statistical Review confirms an analysis prepared by you, a colleague or an AI tool before it goes to a committee or a journal.
Independent Statistical ReviewFrequently Asked Questions
Why is the NNT shown to one decimal and also as a whole number?
The reciprocal of the absolute risk reduction is rarely a whole number, and the decimal keeps the calculation traceable. For interpretation, the NNT is rounded up to the next whole person, since a fraction of a patient cannot be treated. In the worked example, 6.7 becomes 7.
Why does my NNT interval include "∞"?
When the interval for the absolute risk reduction includes zero, the data are compatible with no effect, and the reciprocal of zero is infinite. A finite interval would be misleading, so the calculator reports it in Altman’s notation, from the NNT for benefit through infinity to the NNT for harm. Report that notation as printed; do not replace it with a single range.
What is the number needed to harm?
When the treatment group has the higher event risk, the absolute risk reduction is negative. The calculator then reports the number needed to harm as a positive number with that label. The label matters more than the sign.
Can I transfer an NNT to another population?
Only with care. The NNT depends on the baseline risk of the control group, so it applies to the risk entered. A population with a different baseline risk has a different NNT, even if the relative effect is the same.
Why is the interval for the risk reduction not the simple formula?
The simple (Wald) interval performs poorly with small groups and risks near 0 or 1. The Newcombe hybrid score method builds the interval from Wilson limits for each group, which is more reliable. The NNT interval follows from the ARR limits by taking reciprocals in reverse order.
References
- Altman, D. G. (1998). Confidence intervals for the number needed to treat. BMJ, 317(7168), 1309-1312. https://doi.org/10.1136/bmj.317.7168.1309
- Cook, R. J., & Sackett, D. L. (1995). The number needed to treat: A clinically useful measure of treatment effect. BMJ, 310(6977), 452-454.
- Newcombe, R. G. (1998b). Interval estimation for the difference between independent proportions: Comparison of eleven methods. Statistics in Medicine, 17(8), 873-890. https://doi.org/10.1002/(SICI)1097-0258(19980430)17:8<873::AID-SIM779>3.0.CO;2-I
Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release
Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.
Have a Statistician Check Your NNT and Its Interval
Share the study aim, the outcome and the counts or the source of your numbers. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.
No Commitment Required
Strictly Confidential
Fixed Project Fee
In-House PhD-Level Statisticians
Same-Day Response