Free tool · Effect sizeUpdated October 8, 2026

Number needed to treat calculator, with a confidence interval

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.

  • ARR, RR, RRR and NNT
  • NNTB or NNTH, 95% CI
  • Runs in your browser

Free sandbox · No credit card · 21 CFR Part 11 aligned

Demo two-arm trial: unwanted event by end of follow-up

Control event rate

20.0%

Experimental event rate

15.0%

Absolute risk reduction

5.0 points

NNTB

20

Control: events100/500

100 of 500

Experimental: events75/500

75 of 500

Demo data. 95% CI for the NNTB: 11 to 334.

NNT in brief

  • NNT = 1 / absolute risk difference, rounded up to the next whole number.
  • A positive difference in the right direction gives an NNTB (to benefit); the wrong direction gives an NNTH (to harm).
  • The same relative risk reduction gives very different NNTs at different baseline risks, so NNT always needs a population and a time frame.
  • The confidence interval comes from the reciprocals of the risk difference limits. If that interval crosses zero, the NNT interval runs through infinity.
  • A difference of exactly zero means there is no finite NNT.

Free tool

Calculate ARR, RRR, relative risk and NNT

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.

Input
CER
20.0%
EER
15.0%
Absolute risk reduction
5.00%
95% CI for the benefit difference: 0.30% to 9.70% (Wald)
Relative risk (EER / CER)
0.750
Relative reduction
25.0%
(EER − CER) / CER
Number needed to treat to benefit
NNTB 20
1 / 0.0500 = 20.00, rounded up. 95% CI: NNTB 11 to 334

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

How the number needed to treat is calculated

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 confidence interval, and when it crosses zero

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

The same 25% relative risk reduction at different baseline risks

Relative risk reduction held at 25%. Only the control event rate changes.

Control event rateExperimental event rateAbsolute risk reductionNNTB
40%30%10 points10
20%15%5 points20
4%3%1 point100
1%0.75%0.25 points400

A treatment that looks identical in relative terms can need 10 or 400 people treated for one to benefit.

Interpretation

Pitfalls when reading or reporting an NNT

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.

Other common mistakes

These come up repeatedly in protocols, publications and investor decks.

  • Rounding down, which makes a treatment look better than the data support.
  • Quoting a relative risk reduction without the absolute difference behind it.
  • Computing NNT from a per-protocol subset while the primary analysis is intention to treat.
  • Dichotomising a continuous outcome without a pre-specified responder definition, such as a minimal clinically important difference.
  • Reporting a benefit NNT without the matching NNTH for the main harms.

Collect the endpoint data that the NNT depends on

Build the event forms, randomise and test exports in the free sandbox. No credit card. You pay only when you go live.

Start free in the sandbox

From trial data to NNT

Where the numbers come from in a running study

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

NNT reporting checklist

Direction labelled

NNTB or NNTH, not a bare NNT.

Time frame stated

The follow-up period the event rates refer to.

Baseline risk shown

The control event rate the NNT was calculated from.

Interval reported

95% CI, including the infinity case when the difference CI crosses zero.

Population matches the analysis

Same denominator as the primary analysis set.

Rounded up

Next whole number, never rounded down.

FAQ

Questions teams ask before they switch

Something not covered here? Ask us directly.

How do you calculate the number needed to treat?

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.

What is the difference between NNTB and NNTH?

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.

Why is NNT always rounded up?

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.

What does it mean if the NNT confidence interval includes infinity?

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.

Can I calculate an NNT from a relative risk?

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.

Is this calculator validated?

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.

Get clean event counts from day one

Free sandbox with every feature. No credit card. You pay only when you go live.

Start free in the sandbox