Relative Risk, Odds Ratio & NNT Calculator
Enter event counts from a 2×2 cohort study or randomized controlled trial (RCT) to calculate Relative Risk (RR), Odds Ratio (OR) with 95% confidence intervals, Absolute Risk Reduction (ARR), Relative Risk Reduction (RRR), and Number Needed to Treat (NNT) or Harm (NNH).
| Study Group | Outcome / Event (+) | No Event (−) | Group Total |
|---|---|---|---|
| Treatment / Exposed | Cell a (Events) | Cell b (No Event) | 200 |
| Control / Unexposed | Cell c (Events) | Cell d (No Event) | 200 |
| Column Total | 58 | 342 | 400 |
RR = [a/(a+b)] / [c/(c+d)] | OR = (a*d)/(b*c) | ARR = CER - EER | NNT = ceil(1 / |ARR|)
Complete Study Guide: Understanding RR, OR, ARR & NNT
In USMLE, MCAT, MPH epidemiology, and biostatistics coursework, measuring how strongly an exposure or treatment changes an outcome requires distinguishing between relative measures (Relative Risk and Odds Ratio) and absolute measures (Absolute Risk Reduction and Number Needed to Treat). Relative metrics highlight proportional impact, whereas absolute metrics show real-world clinical benefit for individual patients.
Step-by-Step Calculation Workflow
- Build the 2×2 table consistently: Put Treatment (or Exposed) in Row 1 (a = events, b = non-events) and Control (or Unexposed) in Row 2 (c = events, d = non-events).
- Find group risks (incidence): Experimental Event Rate
EER = a / (a + b)and Control Event RateCER = c / (c + d). - Compute Relative Risk (RR): Divide treatment risk by control risk:
RR = EER / CER. An RR below 1.0 suggests reduced risk; above 1.0 suggests increased risk; equal to 1.0 indicates no difference. - Compute Odds Ratio (OR): Divide odds in the exposed group
(a/b)by odds in the unexposed group(c/d), which simplifies to the cross-product ratioOR = (a × d) / (b × c). - Compute ARR and NNT:
ARR = CER − EER. Take the reciprocal1 / |ARR|(with ARR expressed as a decimal, not a percentage) and round UP to the next whole integer. If treatment increases bad events (EER > CER), report Absolute Risk Increase (ARI) and Number Needed to Harm (NNH).
Relative Risk vs. Odds Ratio: Which Study Design Uses Which?
| Metric | Formula | Appropriate Study Designs | Null Value & Significance Rule |
|---|---|---|---|
| Relative Risk (RR) | [a/(a+b)] / [c/(c+d)] |
Cohort studies & Randomized Controlled Trials (RCTs) where true incidence is observed forward in time. | Null = 1.0. If the 95% CI includes 1.0, the result is not statistically significant at α = 0.05. |
| Odds Ratio (OR) | (a × d) / (b × c) |
Case-control studies (primary metric), cross-sectional studies, logistic regression, and also computable in cohorts/RCTs. | Null = 1.0. Approximates RR closely when outcome prevalence is rare (< 10%). |
| ARR / ARI | |CER − EER| |
Cohort studies & RCTs (requires baseline risk; cannot be computed from standard case-control studies). | Null = 0. Directly measures excess events prevented or caused per 100 patients. |
| NNT / NNH | 1 / |ARR| |
RCTs and prospective clinical studies translating absolute risk differences into patient counts. | Smaller NNT = stronger clinical benefit; larger NNH = safer exposure/intervention. |
Worked Clinical Trial Example
Problem: In a 2-year trial of a new antiplatelet medication, 200 high-risk patients received the drug and 18 suffered a cardiovascular event (a = 18, b = 182). Among 200 control patients on placebo, 40 suffered an event (c = 40, d = 160). Find RR, RRR, ARR, and NNT.
Solution: Treatment risk EER = 18 / 200 = 0.09 (9%); control risk CER = 40 / 200 = 0.20 (20%). Thus RR = 0.09 / 0.20 = 0.45, meaning a 55% relative risk reduction (RRR = 1 − 0.45 = 0.55). The absolute risk reduction is ARR = 0.20 − 0.09 = 0.11 (11 percentage points). Finally, NNT = 1 / 0.11 = 9.09, which rounds up to 10 patients needed to treat over 2 years to prevent 1 additional cardiovascular event.
1 / ARR (e.g., 11% = 0.11, so 1 / 0.11 = 9.09 → 10, not 1 / 11). (3) Watch out for headline bias: a drug can cut risk from 0.2% to 0.1% (an impressive 50% RRR!) while having an ARR of only 0.1% and an NNT of 1,000.
Frequently Asked Questions
Why do we round NNT up to the next whole number?
You cannot treat a fraction of a patient. If 1 / ARR = 9.09, treating 9 patients prevents slightly less than 1 full event on average (9 × 0.11 = 0.99), so conservative clinical convention rounds NNT up to 10 (and similarly, some texts round NNH conservatively down when evaluating safety).
When is the Odds Ratio close to the Relative Risk?
Under the rare disease assumption (typically when baseline event risk is under 10% in both groups), the denominators a + b and b are nearly identical, so OR closely approximates RR. When the outcome is common (20%–50%), OR always appears more extreme (further from 1.0) than RR.
How do I check statistical significance from the 95% CI?
For ratio metrics (RR and OR), the null value of “no effect” is 1.0. If the entire 95% confidence interval sits below 1.0 (e.g., 0.27 to 0.76), the intervention significantly lowers risk. If the interval crosses 1.0 (e.g., 0.82 to 1.45), the result is not statistically significant at the 5% level.