DASS › Tools › Relative risk and NNT

Data literacy · free tool

Relative risk, absolute risk and NNT calculator

A "17% lower risk" can mean saving 19 lives in 1,000 or fewer than 2. Enter the events and group sizes for two groups to see the same result as a relative risk, an absolute difference, and the number of people who would need to be treated for one to benefit.

Your two groups

Start from

Intervention / exposed group

Control / unexposed group

Result

Sentence you can paste into a report

Detailed results

Relative risk vs absolute risk: the same result, three ways

A hospital study of an AI sepsis alert reported a 17% relative reduction in sepsis deaths, which was a 1.9 percentage point absolute reduction. At a baseline mortality of about 11.2%, that is roughly 112 deaths per 1,000 patients falling to 93. The calculator starts with those per-1,000 figures. The relative risk is 0.83, a 17% relative reduction. The absolute risk reduction is 1.9 percentage points, and the NNT is 53: about 53 patients treated under the new system for one extra survivor. All three describe one result. The relative figure sounds largest, and it is the one that cannot be read without the baseline. Read the full case study.

The per-1,000 figures are an illustration built from the study's two published rates, not its real sample, which was 6,217 patients. The interval the calculator shows for them describes 1,000 patients per group, not the precision of the study.

What the calculator reports

When a group has zero events

If either group has no events, log(RR) or its standard error is undefined, so the Wald interval cannot be computed. The calculator says so instead of printing an infinite bound. If no one in the intervention group had the event, the RR is 0. If no one in the control group did, the RR is undefined. The risks, the absolute difference and the NNT are still reported. For an interval in these cases, use an exact method or a continuity correction, and say which one you used.

Before you trust the result

Checked against R and Python

The calculations run in your browser. They were compared case by case with independent R and Python code using the same formulas, including harm cases, zero-event cases and risk differences that are exactly 1/k. The code panel above reproduces your result in R.

Sources