Relative Risk Calculator

Calculate risk ratio with confidence intervals from 2×2 tables

About the Relative Risk Calculator

The Relative Risk Calculator is an essential tool for epidemiologists, medical researchers, and clinicians used to determine the probability of an event occurring in an exposed group compared to a non-exposed group. Often referred to as the risk ratio, this metric is fundamental in cohort studies and randomized controlled trials to evaluate the effectiveness of a new drug or the danger of a specific environmental toxin. By entering data into a standard 2x2 contingency table, users can quickly quantify how much a specific factor increases or decreases the likelihood of a clinical outcome.

Beyond the point estimate of the risk ratio, this tool calculates the 95% confidence interval using the Delta method on the log scale. This provides a critical measure of statistical precision and helps researchers determine if their findings are likely due to chance or represent a true biological effect. Understanding relative risk allows healthcare policy makers and insurance underwriters to prioritize interventions based on the magnitude of risk reduction, moving beyond simple raw percentages to a more comparative understanding of health dynamics.

Formula

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

In this formula, 'a' represents the number of exposed individuals who experienced the event, and 'b' is the number of exposed individuals who did not. Thus, 'a + b' is the total number of people in the exposure group. On the denominator side, 'c' is the number of unexposed individuals who experienced the event, and 'd' is the number of unexposed individuals who did not, making 'c + d' the total unexposed population. The result is the ratio of the probability of the event in the exposed group to the probability of the event in the control group.

Worked examples

Example 1: A study follows 100 smokers and 100 non-smokers for 10 years. 10 smokers develop lung cancer, while only 5 non-smokers do.

Exposed Risk = 10 / 100 = 0.10
Unexposed Risk = 5 / 100 = 0.05
RR = 0.10 / 0.05 = 2.0

Result: RR = 2.0. Smokers are twice as likely to develop lung cancer as non-smokers in this study.

Example 2: In a clinical trial, 20 out of 1000 patients on a new drug had a heart attack, compared to 40 out of 1000 patients on a placebo.

Exposed Risk = 20 / 1000 = 0.02
Unexposed Risk = 40 / 1000 = 0.04
RR = 0.02 / 0.04 = 0.5

Result: RR = 0.5. The drug reduces the risk of heart attack by 50% compared to the placebo.

Common use cases

Pitfalls and limitations

Frequently asked questions

What is the difference between relative risk and absolute risk?

Relative risk measures the strength of association between an exposure and an outcome, whereas absolute risk is simply the overall probability of the event occurring in a group. RR tells you how many times more likely the event is in the exposed group compared to the unexposed group.

Is a relative risk of 1.0 significant?

A relative risk of 1.0 means there is no difference in risk between the two groups. If the 95% confidence interval for your RR includes the value 1.0, the results are generally considered not statistically significant.

When should I use relative risk instead of odds ratio?

Relative risk is used in prospective studies like cohort studies where you follow subjects over time. Odds ratios are typically used in retrospective case-control studies where you start with the outcome and look back at exposure.

How do I interpret a relative risk of 1.5 versus 0.75?

If the RR is 1.5, the exposed group has a 50% higher risk. If it is 0.75, the exposed group has a 25% lower risk (or a 25% reduction in risk) compared to the reference group.

Why does the relative risk calculator show a confidence interval?

Confidence intervals provide a range of values within which the true population RR likely falls. A narrow interval suggests high precision in your estimate, while a wide interval suggests your sample size might be too small to draw firm conclusions.

Related calculators

5 Number Summary Calculator
Calculate the five-number summary (min, Q1, median, Q3, max) and visualize with a box plot
Absolute Uncertainty Calculator
Calculate absolute and relative uncertainty for measurements and experimental data
Average Rating Calculator
Calculate the weighted average star rating from individual vote counts for reviews and feedback
Accuracy Calculator
Calculate accuracy, precision, and error rates for statistical analysis
Adjusted R-Squared Calculator
Calculate adjusted R² to account for the number of predictors in regression models
AIC/BIC Calculator
Compare statistical models using Akaike and Bayesian Information Criteria for model selection
Accuracy Calculator
Calculate accuracy, precision, and error rates for statistical analysis
ANOVA Calculator
Perform one-way Analysis of Variance to test if group means differ significantly