Relative Risk Calculator and Guide


Relative Risk Calculator

Understand how relative risk is calculated by comparing the probability of an outcome in an exposed group to an unexposed group.

Calculate Relative Risk

Enter the number of individuals in each group based on exposure and outcome.


Number of people exposed who developed the outcome.


Number of people exposed who did NOT develop the outcome.


Number of people unexposed who developed the outcome.


Number of people unexposed who did NOT develop the outcome.


Relative Risk (RR): 2.00

Risk in Exposed Group (Ie): 0.100

Risk in Unexposed Group (Iu): 0.050

Total Exposed: 100

Total Unexposed: 100

Formula: Relative Risk (RR) = Risk in Exposed (Ie) / Risk in Unexposed (Iu)
Ie = a / (a + b), Iu = c / (c + d)

Contingency Table
Outcome Present Outcome Absent Total
Exposed 10 90 100
Unexposed 5 95 100

Comparison of Risk in Exposed vs. Unexposed Groups

What is Relative Risk?

Relative Risk (RR), also known as the risk ratio, is a measure used in statistics and epidemiology to compare the probability of an outcome (like developing a disease) occurring in an exposed group to the probability of the outcome occurring in an unexposed group. It quantifies the strength of association between an exposure (e.g., a risk factor, a treatment) and an outcome. A Relative Risk of 1 means there is no difference in risk between the two groups. A Relative Risk greater than 1 suggests an increased risk in the exposed group, while a Relative Risk less than 1 suggests a decreased risk (protective effect) in the exposed group compared to the unexposed.

Researchers, epidemiologists, public health officials, and clinicians use Relative Risk to understand the impact of various factors on health outcomes. It is crucial in cohort studies and randomized controlled trials to assess the effectiveness of interventions or the harm of exposures. Common misconceptions include confusing Relative Risk with absolute risk or odds ratio; Relative Risk compares probabilities directly, whereas absolute risk is the actual probability within one group, and odds ratio compares odds.

Relative Risk Formula and Mathematical Explanation

The formula for Relative Risk (RR) is calculated by dividing the incidence (risk) of the outcome in the exposed group by the incidence (risk) of the outcome in the unexposed group.

Let’s consider a 2×2 table:

  • a = Number of exposed individuals who developed the outcome
  • b = Number of exposed individuals who did NOT develop the outcome
  • c = Number of unexposed individuals who developed the outcome
  • d = Number of unexposed individuals who did NOT develop the outcome

The risk (incidence) in the exposed group (Ie) is: Ie = a / (a + b)

The risk (incidence) in the unexposed group (Iu) is: Iu = c / (c + d)

Therefore, the Relative Risk (RR) is:

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

Variables in Relative Risk Calculation
Variable Meaning Unit Typical Range
a Exposed with outcome Count 0 to N (exposed)
b Exposed without outcome Count 0 to N (exposed)
c Unexposed with outcome Count 0 to N (unexposed)
d Unexposed without outcome Count 0 to N (unexposed)
Ie Risk in Exposed Proportion 0 to 1
Iu Risk in Unexposed Proportion 0 to 1
RR Relative Risk Ratio 0 to ∞

Practical Examples (Real-World Use Cases)

Example 1: Smoking and Lung Cancer

Suppose a study followed 1000 smokers and 1000 non-smokers for 10 years. Among smokers, 150 developed lung cancer, while 850 did not. Among non-smokers, 10 developed lung cancer, and 990 did not.

  • a = 150 (smokers with lung cancer)
  • b = 850 (smokers without lung cancer)
  • c = 10 (non-smokers with lung cancer)
  • d = 990 (non-smokers without lung cancer)

Risk in smokers (Ie) = 150 / (150 + 850) = 150 / 1000 = 0.15

Risk in non-smokers (Iu) = 10 / (10 + 990) = 10 / 1000 = 0.01

Relative Risk (RR) = 0.15 / 0.01 = 15

Interpretation: Smokers are 15 times more likely to develop lung cancer compared to non-smokers in this study.

Example 2: Vaccine Efficacy

In a vaccine trial, 10,000 people received a vaccine, and 10,000 received a placebo. In the vaccinated group, 50 got the disease, and 9950 did not. In the placebo group, 200 got the disease, and 9800 did not.

  • a = 50 (vaccinated with disease – here “exposed” is vaccinated)
  • b = 9950 (vaccinated without disease)
  • c = 200 (placebo with disease – “unexposed”)
  • d = 9800 (placebo without disease)

Risk in vaccinated (Ie) = 50 / (50 + 9950) = 50 / 10000 = 0.005

Risk in placebo (Iu) = 200 / (200 + 9800) = 200 / 10000 = 0.02

Relative Risk (RR) = 0.005 / 0.02 = 0.25

Interpretation: The vaccinated group has 0.25 times the risk of getting the disease compared to the placebo group, meaning the vaccine reduces the risk by 75% (Vaccine Efficacy = 1 – RR = 1 – 0.25 = 0.75 or 75%). Knowing the risk assessment guide is helpful here.

How to Use This Relative Risk Calculator

Using our Relative Risk calculator is straightforward:

  1. Enter Data for Exposed Group: Input the number of individuals in the exposed group who developed the outcome (a) and those who did not (b).
  2. Enter Data for Unexposed Group: Input the number of individuals in the unexposed group who developed theoutcome (c) and those who did not (d).
  3. View Results: The calculator automatically updates the Relative Risk (RR), the risk in each group (Ie and Iu), and the total numbers in each group. The contingency table and risk comparison chart also update.
  4. Interpret Relative Risk (RR):
    • RR = 1: No difference in risk.
    • RR > 1: Increased risk in the exposed group.
    • RR < 1: Decreased risk (protective effect) in the exposed group.
  5. Reset: Use the “Reset” button to clear the fields to their default values.
  6. Copy: Use the “Copy Results” button to copy the main results and inputs.

This calculator helps quickly assess the strength of association between an exposure and an outcome based on your data, providing a key metric for understanding how relative risk is calculated.

Key Factors That Affect Relative Risk Results

Several factors can influence the calculated Relative Risk and its interpretation:

  1. Definition of Exposure and Outcome: Clear, precise definitions are crucial. Vague definitions can lead to misclassification and biased Relative Risk estimates.
  2. Study Design: Relative Risk is most appropriately calculated in cohort studies and randomized controlled trials. Using it with case-control data (where odds ratio vs relative risk is more suitable) can be misleading unless the outcome is rare.
  3. Sample Size: Smaller sample sizes can lead to wider confidence intervals around the Relative Risk, making the estimate less precise.
  4. Follow-up Period: In longitudinal studies, the duration of follow-up can affect the number of outcomes observed and thus the Relative Risk.
  5. Confounding Variables: Other factors associated with both the exposure and the outcome can distort the true Relative Risk. Statistical adjustments are often needed.
  6. Bias: Selection bias, information bias, or recall bias can lead to inaccurate estimates of Relative Risk. It’s important to understand the statistical significance explained in the context of bias.
  7. Incidence of the Outcome: While Relative Risk measures the ratio, the absolute risk (Ie and Iu) is also important for public health significance. A high Relative Risk for a very rare outcome might have less impact than a lower Relative Risk for a common one.

Frequently Asked Questions (FAQ)

What is the difference between Relative Risk and Odds Ratio?
Relative Risk compares the probabilities (incidences) of an outcome between two groups, typically from cohort studies. Odds Ratio compares the odds of exposure among those with and without the outcome, typically from case-control studies. For rare outcomes, the Odds Ratio approximates the Relative Risk. Learn more about odds ratio vs relative risk.
Can Relative Risk be less than 0?
No, Relative Risk is a ratio of probabilities, so it cannot be negative. It ranges from 0 to infinity.
What does a Relative Risk of 1 mean?
A Relative Risk of 1 indicates that the risk of the outcome is the same in both the exposed and unexposed groups; there is no association between the exposure and the outcome.
How is Relative Risk used in public health?
It helps identify risk factors for diseases, evaluate the effectiveness of interventions (like vaccines or treatments), and inform public health policies. Knowing how relative risk is calculated is fundamental here.
What is a confidence interval for Relative Risk?
A confidence interval (CI) for Relative Risk provides a range of values within which the true Relative Risk in the population is likely to lie with a certain degree of confidence (e.g., 95% CI). A CI that does not include 1.0 suggests a statistically significant association. It’s about interpreting relative risk with precision.
Is a high Relative Risk always important?
Not necessarily. While a high Relative Risk indicates a strong association, the absolute risk difference is also important. A high Relative Risk for a very rare disease might mean a small absolute increase in risk. Considering absolute risk vs relative risk is crucial.
When is it appropriate to calculate Relative Risk?
Relative Risk is most appropriate for data from cohort studies, randomized controlled trials, and other prospective studies where we can directly calculate incidence rates in exposed and unexposed groups. For basics, see our guide on cohort study basics.
What if there are zero events in one group?
If ‘a’ or ‘c’ is zero, the risk in that group is 0, leading to a Relative Risk of 0 or infinity (or undefined if c=0). Adjustments (like adding 0.5 to all cells) are sometimes used in such cases, though they have limitations.

© 2023 Your Website. All rights reserved.



Leave a Reply

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