NNT Calculator
Calculate Number Needed to Treat, absolute and relative risk metrics, and confidence intervals from clinical trial data
2×2 Contingency Table
Control Group
Treatment Group
Enter Trial Data to Calculate NNT
Choose an input mode, enter your clinical trial data, and click Calculate to see the Number Needed to Treat along with all associated risk metrics and visual charts.
How to Use the NNT Calculator
Select Your Input Mode
Choose from four input modes based on the data available from your clinical trial or study. Raw Counts mode accepts events and total patients per group. Percentages mode accepts CER and EER directly as percentages. Patient-Years mode handles time-to-event data by converting incidence rates using the exponential formula. Odds Ratio mode converts a published OR and baseline event rate (PEER) into NNT using the CEBM conversion method.
Enter Your Clinical Data
Fill in all required fields for your selected input mode. For raw counts, enter the number of events and total patients in both the control and treatment groups using the 2x2 contingency table layout. For percentages, enter the CER and EER as values between 0 and 100. For patient-years, enter event counts and total person-time of follow-up. For odds ratio mode, enter the OR value and the expected baseline event rate in your patient population.
Adjust Advanced Options (Optional)
Expand the Advanced Options section to change the confidence level from the default 95% to 80%, 90%, or 99%. A higher confidence level produces a wider confidence interval. The 95% level is standard in most clinical research and is appropriate for most users. Confidence intervals for NNT are only available when sample sizes are known (raw counts mode).
Review Results and Interpret Findings
After calculating, review the NNT or NNH value, the clinical interpretation, and all associated metrics (CER, EER, ARR, RRR, RR, OR). Examine the event rate bar chart and risk breakdown donut chart for visual context. Use the sensitivity table to understand how the NNT would change at different baseline risk levels. Export your results as CSV or print them for inclusion in clinical reports or presentations.
Frequently Asked Questions
What is the Number Needed to Treat (NNT) and why does it matter?
The Number Needed to Treat (NNT) is a clinical statistic that expresses how many patients must receive a specific treatment, over a defined time period, to prevent one additional adverse outcome compared to a control group. It was introduced by Laupacis, Sackett, and Roberts in 1988 to make clinical trial results more intuitive for clinicians and patients. The NNT matters because it translates abstract statistical findings into a concrete, patient-centered number. Unlike p-values or relative risk alone, the NNT directly communicates the clinical effort required to achieve benefit. An NNT of 5 is far more actionable than knowing the relative risk reduction is 50%, because the NNT accounts for baseline risk and absolute effect size.
What is the difference between NNT and NNH?
NNT (Number Needed to Treat) and NNH (Number Needed to Harm) are complementary metrics derived from the same formula. When the treatment reduces the event rate compared to control (positive ARR), the result is expressed as NNT, meaning the number of patients to treat to prevent one additional adverse event. When the treatment increases the event rate (negative ARR), the result is expressed as NNH, meaning the number of patients treated before one additional patient is harmed. Both are calculated as the ceiling of 1 divided by the absolute value of the ARR. A single treatment can have both an NNT for one outcome and an NNH for a different outcome, which is why benefit-harm trade-off analysis is essential in clinical decision-making.
Why is the NNT always rounded up instead of using standard rounding?
The NNT is always rounded up to the nearest whole integer using the mathematical ceiling function. This convention exists because you cannot treat a fraction of a patient. If the raw calculation yields 1/ARR = 6.2, reporting an NNT of 6 would overstate the treatment's efficiency by implying that benefit occurs within every 6 patients. Rounding up to 7 provides a conservative, clinically honest estimate. This ensures that the NNT does not exaggerate treatment efficacy. For example, if the ARR is 0.07 (7%), 1/0.07 equals approximately 14.3, and the reported NNT is 15. The calculator displays both the raw reciprocal and the ceiling-rounded NNT so you can see the exact mathematical relationship.
How do I interpret the confidence interval for NNT?
The confidence interval for NNT is derived by inverting the confidence interval of the ARR. If the 95% CI for ARR is 0.02 to 0.12, the NNT CI is 1/0.12 to 1/0.02, which equals approximately 9 to 50. This means we are 95% confident the true NNT lies between 9 and 50. However, when the ARR confidence interval crosses zero, the NNT CI becomes complex: it includes a range of positive NNTs, passes through infinity, and continues through negative values (NNH). This indicates the treatment effect is not statistically significant. Confidence intervals are only computable when group sample sizes are known, which is why the raw counts input mode is needed for CI calculation.
Why does the same treatment have different NNTs in different patient populations?
The NNT is fundamentally linked to baseline risk. The same relative risk reduction produces vastly different NNTs depending on the control event rate (CER). Consider a treatment with a relative risk of 0.50: in a population where 40% of untreated patients experience the outcome, the ARR is 20% and the NNT is 5. In a population where only 4% experience the outcome, the ARR is 2% and the NNT is 50. The treatment is equally potent in relative terms (50% RRR), but the absolute benefit differs tenfold. This is why the sensitivity table in this calculator is so valuable: it shows how the NNT changes across a range of baseline risk values for the observed relative risk.
When should I use the odds ratio input mode instead of raw counts?
The odds ratio input mode is designed for situations where only a published odds ratio is available, rather than the raw event counts. This is common with case-control studies, systematic reviews, and meta-analyses that report pooled odds ratios. To convert an OR to NNT, you also need the Patient Expected Event Rate (PEER), which is the baseline event rate you expect in your specific patient population. The PEER may differ from the original study's control rate if your patients have different risk profiles. The conversion formula, derived from the Oxford Centre for Evidence-Based Medicine, is: EER = (OR x PEER) / (1 - PEER + OR x PEER), from which ARR and NNT are calculated. This mode is approximate and assumes the OR is a reasonable approximation of the relative risk.