Relative Risk Calculator

Relative Risk Calculator

Calculate relative risk, absolute risk difference, and number needed to treat from a 2×2 contingency table. Essential for epidemiology, clinical trials, and risk assessment studies.

Last updated: March 2026

2×2 Contingency Table

Exposed Group:

Control Group:

EventNo Event
Exposed1585
Control595
Relative Risk (RR)
3.0000
95% CI: [1.1333, 7.9411]
Risk (Exposed)15.00%
Risk (Control)5.00%
ARD10.00%
NNT10

What is Relative Risk?

Relative Risk (RR) is a measure of the probability of an outcome occurring in an exposed group compared to an unexposed (control) group. It quantifies how many times more (or less) likely an event is to occur in the exposed group relative to the control group. RR is fundamental to epidemiology and clinical research for assessing the strength of associations between exposures and health outcomes.

An RR of 1.0 means equal risk in both groups (no association). An RR greater than 1 indicates increased risk in the exposed group (the exposure is a risk factor). An RR less than 1 indicates decreased risk in the exposed group (the exposure is protective). For example, an RR of 2.5 means the exposed group is 2.5 times more likely to experience the event compared to the control group.

The Absolute Risk Difference (ARD) shows the percentage point difference in risk between groups, while the Number Needed to Treat (NNT) indicates how many people would need to receive an intervention to prevent one event. The 95% Confidence Interval provides a range where we're 95% confident the true RR lies. If the CI crosses 1.0, the result is not statistically significant.

How to Calculate Relative Risk

Understanding the 2×2 Table

Exposed + Event (a): People exposed who experienced the event
Exposed + No Event (b): People exposed who did NOT experience the event
Control + Event (c): People not exposed who experienced the event
Control + No Event (d): People not exposed who did NOT experience the event

Formulas

Risk (Exposed) = a / (a + b)
Risk (Control) = c / (c + d)
Relative Risk = Risk(Exposed) / Risk(Control)
ARD = |Risk(Exposed) - Risk(Control)|
NNT = 1 / ARD (rounded up)

Interpretation Guide

  • RR = 1.0: No difference in risk between groups
  • RR > 1.0: Increased risk in exposed group (risk factor)
  • RR < 1.0: Decreased risk in exposed group (protective)
  • NNT: Number of people to treat to prevent 1 event
  • 95% CI: If it includes 1.0, result is not statistically significant

Example Calculation

A study examines smoking and lung disease. Among 100 smokers, 15 developed lung disease. Among 100 non-smokers, 5 developed lung disease. Calculate relative risk.

Given:
Exposed (Smokers): 15 with disease, 85 without
Control (Non-smokers): 5 with disease, 95 without
Step 1:
Calculate risk in exposed group:
Risk(Exposed) = 15 / 100 = 0.15 (15%)
Step 2:
Calculate risk in control group:
Risk(Control) = 5 / 100 = 0.05 (5%)
Step 3:
Calculate relative risk:
RR = 0.15 / 0.05 = 3.0
Result:
RR = 3.0: Smokers are 3 times more likely to develop lung disease compared to non-smokers. This is a strong evidence that smoking increases lung disease risk.

Frequently Asked Questions

What's the difference between RR and Odds Ratio?

RR compares probabilities (risk) of an outcome in exposed vs control groups. Odds Ratio compares odds instead of risks. Both measure associations but are calculated differently. RR is more intuitive for prospective studies; OR is preferable for case-control studies.

What does RR = 1 mean?

RR = 1 means equal risk in both groups—there's no association between exposure and outcome. The exposure neither increases nor decreases risk. This is the null hypothesis in most studies.

Is an RR of 0.5 protective?

Yes! An RR of 0.5 means the exposed group has half the risk of the control group. This indicates a protective effect. For example, vaccinated people having 0.5× the infection risk as unvaccinated people.

What does 'not statistically significant' RR mean?

If the 95% confidence interval includes 1.0, the RR is not statistically significant—we cannot confidently say the result differs from chance. Larger sample sizes help narrow the CI and increase precision.

How do I interpret the 95% CI for RR?

The 95% CI is a range where we're 95% confident the true RR lies. If CI = [1.2, 3.5], the true RR is likely between 1.2 and 3.5. If it includes 1.0, results aren't statistically significant at the 0.05 level.

What is NNT used for?

NNT (Number Needed to Treat) indicates how many people need to receive an intervention to prevent one adverse event. A lower NNT means more people benefit from treatment. It's useful for communicating clinical significance.

Can RR be negative or zero?

No. RR must be positive since it's a ratio of two probabilities (both positive). An RR of 0 would mean the event never occurs in the exposed group, which is rare in practice.

How do I choose between RR and ARD?

Use RR to show relative difference and strength of association. Use ARD to communicate absolute impact—how many percentage points lower (or higher) the risk is. ARD is often more clinically meaningful for decision-making.

Related Tools