Relative Risk Calculations






Relative Risk Calculator – Calculate and Understand Relative Risk


Relative Risk Calculator

Easily calculate Relative Risk (RR), Risk Difference (RD), and Incidence Rates for cohort studies. Enter the data from your 2×2 table below.

Calculate Relative Risk


Number of individuals exposed to the factor who developed the disease/outcome.


Number of individuals exposed to the factor who did NOT develop the disease/outcome.


Number of individuals NOT exposed to the factor who developed the disease/outcome.


Number of individuals NOT exposed to the factor who did NOT develop the disease/outcome.



Data Summary (2×2 Table)

Disease Present Disease Absent Total
Exposed 50 950 1000
Unexposed 20 980 1000
Total 70 1930 2000

The 2×2 contingency table summarizes the input data for the Relative Risk calculation.

Incidence Comparison Chart

Bar chart comparing the incidence (risk) of the disease in the exposed versus unexposed groups. This visual helps in understanding the Relative Risk.

What is Relative Risk?

Relative Risk (RR), also known as the Risk Ratio, is a statistical measure used in epidemiology and other fields to compare the risk of a certain event (like developing a disease) occurring in one group (the exposed group) versus another group (the unexposed group). It’s a key metric derived from cohort studies and randomized controlled trials.

Essentially, the Relative Risk tells you how many times more likely (or less likely) an exposed group is to develop an outcome compared to an unexposed group. A Relative Risk of 2 means the exposed group has twice the risk, while a Relative Risk of 0.5 means the exposed group has half the risk.

Who should use it? Researchers, epidemiologists, public health professionals, and clinicians use Relative Risk to understand the strength of association between an exposure (like smoking, a medication, or an environmental factor) and an outcome (like lung cancer, recovery, or a side effect). Our Relative Risk Calculator makes this easy.

Common misconceptions: Relative Risk is often confused with Odds Ratio (OR). While related, they are different, especially when the outcome is common. Relative Risk is more intuitive and directly interpretable as a ratio of risks, typically used in cohort studies, whereas the Odds Ratio is often used in case-control studies. Also, a high Relative Risk doesn’t automatically imply causation, only association.

Relative Risk Formula and Mathematical Explanation

The Relative Risk is calculated as the ratio of the incidence of the outcome in the exposed group to the incidence of the outcome in the unexposed group.

Let’s define the components from a 2×2 table:

  • a = Number of exposed individuals who develop the disease.
  • b = Number of exposed individuals who do NOT develop the disease.
  • c = Number of unexposed individuals who develop the disease.
  • d = Number of unexposed individuals who do NOT develop the disease.

1. Incidence in the Exposed group (Ie): This is the proportion of exposed individuals who develop the disease.

Formula: Ie = a / (a + b)

2. Incidence in the Unexposed group (Iu): This is the proportion of unexposed individuals who develop the disease.

Formula: Iu = c / (c + d)

3. Relative Risk (RR): The ratio of the two incidences.

Formula: RR = Ie / Iu = [a / (a + b)] / [c / (c + d)]

The Risk Difference (RD), or Attributable Risk, is simply Ie – Iu, representing the absolute difference in risk.

Variable Meaning Unit Typical Range
a Exposed with disease Count ≥ 0
b Exposed without disease Count ≥ 0
c Unexposed with disease Count ≥ 0
d Unexposed without disease Count ≥ 0
Ie Incidence in Exposed Proportion 0 to 1
Iu Incidence in Unexposed Proportion 0 to 1
RR Relative Risk Ratio > 0 (often 0.1 to 10+)
RD Risk Difference Proportion -1 to 1

Practical Examples (Real-World Use Cases)

Example 1: Smoking and Lung Cancer

A cohort study followed 10,000 smokers and 10,000 non-smokers for 10 years to see who developed lung cancer.

  • Smokers who developed lung cancer (a) = 150
  • Smokers who did not develop lung cancer (b) = 9850
  • Non-smokers who developed lung cancer (c) = 10
  • Non-smokers who did not develop lung cancer (d) = 9990

Using the Relative Risk Calculator:

Ie = 150 / (150 + 9850) = 150 / 10000 = 0.015

Iu = 10 / (10 + 9990) = 10 / 10000 = 0.001

RR = 0.015 / 0.001 = 15

Interpretation: Smokers were 15 times more likely to develop lung cancer than non-smokers over the 10-year period in this study.

Example 2: Vaccine Efficacy

A clinical trial for a new vaccine involved 5,000 vaccinated individuals and 5,000 unvaccinated individuals, followed for 6 months.

  • Vaccinated who got the disease (a) = 25
  • Vaccinated who did not get the disease (b) = 4975
  • Unvaccinated who got the disease (c) = 100
  • Unvaccinated who did not get the disease (d) = 4900

Using the Relative Risk Calculator:

Ie (risk in vaccinated) = 25 / 5000 = 0.005

Iu (risk in unvaccinated) = 100 / 5000 = 0.02

RR = 0.005 / 0.02 = 0.25

Interpretation: The vaccinated group had 0.25 times the risk of getting the disease compared to the unvaccinated group, meaning the vaccine reduced the risk by 75% (Vaccine Efficacy = 1 – RR = 1 – 0.25 = 0.75 or 75%). This Relative Risk Calculator is useful here.

How to Use This Relative Risk Calculator

  1. Enter Data: Input the number of individuals in each of the four categories (a, b, c, d) into the respective fields. These values typically come from a cohort study or randomized controlled trial.
  2. View Results: The calculator automatically updates the Relative Risk (RR), Incidence in Exposed (Ie), Incidence in Unexposed (Iu), Risk Difference (RD), and Odds Ratio (OR) as you type. The 2×2 table and incidence chart also update.
  3. Interpret Relative Risk:
    • RR = 1: The risk is the same in both groups (no association).
    • RR > 1: The risk is increased in the exposed group.
    • RR < 1: The risk is decreased in the exposed group (the exposure is protective).
  4. Consider Other Metrics: Look at the Risk Difference for the absolute difference in risk and the Odds Ratio, especially if comparing with case-control studies.
  5. Copy or Reset: Use the “Copy Results” button to copy the key findings, or “Reset” to start with default values.

This Relative Risk Calculator provides a quick way to understand the association between an exposure and an outcome.

Key Factors That Affect Relative Risk Results

  1. Incidence in Exposed Group: The higher the number of exposed individuals who develop the disease (a) relative to the total exposed (a+b), the higher the Ie, which directly impacts the Relative Risk.
  2. Incidence in Unexposed Group: Similarly, the proportion of unexposed individuals who develop the disease (c/(c+d)) forms the baseline risk (Iu). A lower Iu will magnify the Relative Risk if Ie is constant.
  3. Sample Size: While not directly in the formula, larger sample sizes (a+b and c+d) lead to more precise estimates of Ie and Iu, and thus a more reliable Relative Risk value and narrower confidence intervals.
  4. Study Duration: For cohort studies, the length of follow-up can influence the number of events (a and c) observed, thereby affecting the calculated Relative Risk over that period.
  5. Definition of Exposure and Outcome: Clear and accurate definitions are crucial. Changing how “exposure” or “disease” is defined can significantly alter the values of a, b, c, and d, and thus the Relative Risk. Check out our guide on study design.
  6. Confounding Factors: The observed Relative Risk might be distorted by other factors associated with both the exposure and the outcome. Statistical adjustments are often needed to account for confounders. Our basic Relative Risk Calculator does not adjust for confounders.

Frequently Asked Questions (FAQ)

What is the difference between Relative Risk and Odds Ratio?
Relative Risk is the ratio of incidences (risks), while the Odds Ratio is the ratio of odds. RR is typically used in cohort studies and is more intuitive. OR is used in case-control studies and approximates RR when the disease is rare. Our Odds Ratio Calculator can help with that.
When is Relative Risk used?
Relative Risk is primarily used in prospective or retrospective cohort studies and randomized controlled trials where we follow groups with and without exposure to see who develops the outcome. It helps understand epidemiology basics.
Can Relative Risk be less than 1?
Yes. An RR less than 1 indicates that the exposure is protective, meaning the exposed group has a lower risk of the outcome than the unexposed group (e.g., vaccines).
How do I interpret a Relative Risk of 3?
An RR of 3 means the exposed group is three times as likely to experience the outcome compared to the unexposed group.
What if the incidence in the unexposed group (Iu) is zero?
If c=0, then Iu=0, and the Relative Risk would be undefined (division by zero). In such cases, other methods or adding a small constant (like 0.5) to all cells might be considered, or the result is interpreted with caution as infinitely large if Ie > 0.
Is a high Relative Risk always clinically significant?
Not necessarily. A high Relative Risk for a very rare outcome might still mean a small absolute increase in risk (small Risk Difference). Statistical significance and clinical context are important.
Does this Relative Risk Calculator provide confidence intervals?
No, this basic calculator provides the point estimate of the Relative Risk. Calculating confidence intervals requires more complex formulas involving logarithms and standard errors.
What is Risk Difference (RD)?
Risk Difference is the absolute difference between the incidence in the exposed and unexposed groups (Ie – Iu). It tells you the excess risk attributable to the exposure. We also have a Risk Difference Calculator.

Related Tools and Internal Resources

© 2023 Your Website. All rights reserved. Use this Relative Risk Calculator as a guide, always consult with professionals for medical or research decisions.


Leave a Reply

Your email address will not be published. Required fields are marked *