Risk Calculator - Relative Risk, Absolute Risk & NNT

Probability and Randomness

Analyze the relationship between an exposure and an outcome by calculating Relative Risk, Absolute Risk Reduction, and Number Needed to Treat.

Risk Calculator - Relative Risk, Absolute Risk & NNT
Probability and Randomness

About the Risk Calculator

Risk analysis is a cornerstone of epidemiology and clinical research. When comparing two groups — an exposed group (e.g., treated patients, individuals with a risk factor) and an unexposed group (e.g., controls, untreated patients) — several key metrics help quantify the relationship between exposure and outcome. This calculator uses the standard 2×2 contingency table framework. The four cells represent: A = number of exposed individuals who experienced the outcome; B = number of exposed individuals who did not experience the outcome; C = number of unexposed individuals who experienced the outcome; D = number of unexposed individuals who did not experience the outcome. The Risk in the exposed group is A / (A + B), and the Risk in the unexposed group is C / (C + D). Relative Risk (RR) is the ratio of these two risks: RR = [A/(A+B)] / [C/(C+D)]. An RR of 1 indicates no difference between groups. An RR > 1 indicates increased risk in the exposed group, and an RR < 1 indicates a protective effect. Absolute Risk Reduction (ARR) measures the absolute difference in risk between the unexposed and exposed groups: ARR = Risk_unexposed − Risk_exposed. When ARR is positive, the exposure reduces risk; when negative, it increases risk. Number Needed to Treat (NNT) is the reciprocal of ARR: NNT = 1 / ARR. It represents how many people must be exposed (or treated) to prevent one additional outcome event. A lower NNT indicates a more effective treatment. In harm analysis, this metric becomes the Number Needed to Harm (NNH). These metrics are widely used in systematic reviews, meta-analyses, clinical practice guidelines, and public health decision-making. They translate statistical associations into clinically meaningful quantities that help healthcare providers and patients understand the practical importance of a treatment or exposure. Relative risk is particularly intuitive for communicating risk to non-specialist audiences and is a standard reporting metric in randomized controlled trials.

Risk Calculator Examples

These examples show how to interpret risk metrics from a 2×2 table.

A / B / C / DRR / ARR / NNTInterpretation
50 / 50 / 25 / 75RR=2.0, ARR=25%, NNT=4Exposure doubles the risk
10 / 90 / 20 / 80RR=0.5, ARR=10%, NNT=10Protective exposure
30 / 70 / 30 / 70RR=1.0, ARR=0%No association

How to Use This Calculator

  1. Enter the count of exposed individuals who experienced the outcome in field A.
  2. Enter the count of exposed individuals who did NOT experience the outcome in field B.
  3. Enter the count of unexposed individuals who experienced the outcome in field C.
  4. Enter the count of unexposed individuals who did NOT experience the outcome in field D.
  5. Click 'Calculate' to see Relative Risk, ARR, and NNT instantly.

Frequently Asked Questions

What is Relative Risk (RR)?
Relative Risk is the ratio of the probability of an outcome in the exposed group to the probability in the unexposed group. An RR of 2.0 means the exposed group is twice as likely to experience the outcome. RR is used in cohort studies and randomized controlled trials.
What is the difference between RR and Odds Ratio (OR)?
Relative Risk directly compares probabilities and is easier to interpret clinically. The Odds Ratio compares odds (probability of event / probability of non-event) and is used in case-control studies where risks cannot be directly calculated. When the outcome is rare (< 10%), OR and RR approximate each other.
What does NNT mean in practice?
NNT tells you how many patients you must treat (or expose) to prevent one additional adverse outcome. An NNT of 5 means treating 5 patients prevents 1 outcome. Lower NNT values indicate more effective interventions. NNT is highly valued in evidence-based medicine for communicating treatment efficacy.
When is ARR more useful than RR?
ARR is the absolute difference in risk and accounts for baseline risk. A treatment that halves a 2% risk (ARR = 1%) is less impactful than one that halves a 20% risk (ARR = 10%), even though both have RR = 0.5. ARR provides the clinical context that RR alone can obscure.
Can RR be used for case-control studies?
No. In case-control studies, the total number of exposed and unexposed individuals is not known because subjects are selected based on outcome status. The Odds Ratio is the appropriate measure for case-control studies. RR requires knowing the total population at risk in each exposure group.
What does an RR of less than 1 mean?
An RR less than 1 indicates a protective association: the exposed group has a lower risk of the outcome than the unexposed group. For example, an RR of 0.5 means the exposed group has half the risk. In this case ARR is negative and the metric becomes NNH (Number Needed to Harm) rather than NNT.