Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Contingency Table Calculator
Home Page > Health and Fitness > Medical Calculators

Relative Risk Calculator

Calculate relative risk from a 2x2 contingency table. Get confidence intervals, absolute risk reduction, number needed to treat, attributable risk and step-by-step solutions with visuals for clinical and epidemiological studies.

Free to useNo sign-up requiredInstant Results
Relative Risk CalculatorTry it now — free ▼
Examples:
⊞ 2×2 Contingency Table
Outcome (+)
Outcome (−)
Exposed
Unexposed
Exposed Risk
÷
Unexposed Risk
Confidence Level:

Embed Relative Risk Calculator Widget

About Relative Risk Calculator

The Relative Risk Calculator computes the relative risk (risk ratio, RR) from a 2×2 contingency table used in cohort studies, randomized controlled trials, and epidemiological research. Enter the counts for exposed and unexposed groups with and without the outcome to get the RR, confidence interval, absolute risk reduction (ARR), number needed to treat (NNT), odds ratio, attributable fraction, and a complete step-by-step solution with interactive visualizations.

What Is Relative Risk?

Relative risk (also called the risk ratio, RR) measures the strength of association between an exposure (or treatment) and an outcome. It is the ratio of the incidence rate in the exposed group to the incidence rate in the unexposed (control) group:

$$RR = \frac{p_{\text{exposed}}}{p_{\text{unexposed}}} = \frac{a/(a+b)}{c/(c+d)}$$

RR > 1: Increased Risk
Exposure is associated with higher risk of the outcome. The factor is harmful or a risk factor.
=
RR = 1: No Effect
Exposure has no association with the outcome. Risk is the same in both groups.
RR < 1: Decreased Risk
Exposure is associated with lower risk. The factor is protective (e.g., vaccine, treatment).

Key Measures Explained

MeasureFormulaInterpretation
Relative Risk (RR)\(p_1 / p_0\)How many times more likely the outcome is in the exposed group
Absolute Risk Reduction (ARR)\(p_1 - p_0\)The actual difference in risk between groups
Number Needed to Treat (NNT)\(1 / |ARR|\)Patients to treat to prevent (or cause) one event
Odds Ratio (OR)\(ad / bc\)Ratio of odds; approximates RR when outcome is rare
Attributable Fraction\((RR-1)/RR\)Proportion of exposed cases attributable to exposure
Confidence Interval\(e^{\ln(RR) \pm z \cdot SE}\)Range likely containing the true RR

Relative Risk vs. Odds Ratio

FeatureRelative Risk (RR)Odds Ratio (OR)
MeasuresRatio of probabilitiesRatio of odds
Study DesignCohort, RCTCase-control, cohort, RCT
Range0 to ∞0 to ∞
Null Value11
InterpretationDirect and intuitiveLess intuitive
Rare DiseaseOR ≈ RR when outcome < 10%Overestimates when common

Real-World Examples

StudyExposureOutcomeTypical RR
Framingham Heart StudySmokingHeart disease1.5 – 3.0
Vaccine trialsmRNA vaccineCOVID-19 infection0.04 – 0.10
Aspirin trialDaily aspirinMI recurrence0.70 – 0.85
Nurses' Health StudyHRT useBreast cancer1.2 – 1.4
Statin trialsStatin therapyMajor cardiac event0.65 – 0.80

How to Use the Relative Risk Calculator

  1. Enter exposed group data: In the 2×2 table, enter the number of exposed subjects with the outcome (cell a) and without the outcome (cell b). For example, in a smoking study, a = smokers who developed lung cancer, b = smokers who did not.
  2. Enter unexposed group data: Enter the number of unexposed (control) subjects with the outcome (cell c) and without the outcome (cell d). For example, c = non-smokers who developed lung cancer, d = non-smokers who did not.
  3. Select confidence level: Choose 90%, 95%, or 99% for the confidence interval. The standard in most medical research is 95%.
  4. Click Calculate: The calculator computes RR, confidence interval, ARR, NNT, odds ratio, attributable fraction, p-value, and shows a step-by-step solution with risk comparison bars and a forest plot.
  5. Interpret the results: If the CI does not include 1.0, the result is statistically significant. The NNT visualization shows how many patients need to be treated to prevent one event.

FAQ

What is relative risk?
Relative risk (RR) is the ratio of the probability of an outcome in the exposed group to the probability in the unexposed group. RR = 1 means no difference in risk between groups. RR greater than 1 means the exposure increases risk (harmful), and RR less than 1 means the exposure decreases risk (protective, such as a vaccine or treatment).
How is relative risk different from odds ratio?
Relative risk compares probabilities (risks) directly and is used in cohort studies and randomized controlled trials where you can directly observe incidence rates. Odds ratio compares odds and is the primary measure in case-control studies. When the outcome is rare (less than 10% prevalence), the odds ratio closely approximates the relative risk. For common outcomes, the odds ratio overestimates the strength of association compared to relative risk.
What is the number needed to treat (NNT)?
NNT is the number of patients who need to be treated with the intervention to prevent one additional adverse outcome compared to the control group. It is calculated as 1 divided by the absolute risk reduction (ARR). Lower NNT values indicate more effective treatments. When the exposure increases risk, it becomes the Number Needed to Harm (NNH).
How do I interpret the confidence interval for RR?
If the confidence interval includes 1.0, the result is not statistically significant at the chosen confidence level, meaning the observed difference could be due to chance. If the entire interval is above 1, there is a statistically significant increased risk. If the entire interval is below 1, there is a statistically significant decreased risk (protective effect).
When should I use relative risk vs absolute risk reduction?
Relative risk shows the multiplicative change in risk and is useful for understanding the strength of an association. Absolute risk reduction (ARR) shows the actual difference in event rates and is more clinically meaningful for treatment decisions because it accounts for baseline risk. For example, reducing risk from 2% to 1% (RR = 0.5, ARR = 1%) is very different from reducing 80% to 40% (same RR = 0.5, but ARR = 40%), even though the relative risk is identical.

Reference this content, page, or tool as:

"Relative Risk Calculator" at https://MiniWebtool.com/relative-risk-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-15

Medical Calculators:

Top & Updated:

Image SplitterCubic Feet to Cubic Yards ConverterSHA256 Hash GeneratorView all →
Home Page > Health and Fitness > Medical Calculators > Relative Risk Calculator