⚕️ Relative Risk Calculator
Calculate relative risk (RR), 95% confidence interval, absolute risk reduction (ARR), relative risk reduction (RRR), and number needed to treat (NNT) from a 2×2 contingency table.
Enter your 2×2 contingency table:
| Event (outcome+) | No Event (outcome−) | |
|---|---|---|
| Exposed | ||
| Unexposed |
a = exposed & event, b = exposed & no event, c = unexposed & event, d = unexposed & no event
Relative Risk Formulas
What is Relative Risk?
Relative risk (RR), also called risk ratio, is a statistical measure used in epidemiology, clinical medicine, and public health research to compare the probability of an outcome occurring in an exposed group versus an unexposed (control) group. It is calculated by dividing the incidence rate in the exposed group by the incidence rate in the unexposed group. A relative risk of 1.0 means exposure has no effect on the outcome probability; an RR greater than 1.0 indicates increased risk associated with exposure; and an RR less than 1.0 indicates a protective effect — the exposed group has a lower probability of the outcome than the unexposed group.
Relative risk is most commonly used in prospective cohort studies — where participants are followed over time and outcome rates are directly measured in exposed and unexposed groups. It differs from the odds ratio, which is typically used in case-control studies where outcome rates cannot be directly measured and exposure odds are compared instead. For common outcomes (prevalence > 10%), the odds ratio substantially overestimates the relative risk and can be misleading if interpreted as if it were an RR — a common error in reporting and interpreting clinical research.
Beyond relative risk, the absolute risk reduction (ARR) and number needed to treat (NNT) provide complementary perspectives essential for clinical decision-making. A drug might reduce relative risk of heart attack by 30%, but if the baseline risk is only 1%, the absolute risk reduction is just 0.3 percentage points and the NNT is 333 — meaning 333 patients must be treated to prevent one heart attack. The relative risk statistic alone omits this context, which is why evidence-based medicine advocates always reporting both relative and absolute measures together.
How the Relative Risk Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
Relative risk (RR) is the ratio of the probability of an event in the exposed group to the probability in the unexposed group. RR = 1 means no association; RR > 1 means increased risk; RR < 1 means protective effect.
ARR is the absolute difference in event rates between unexposed and exposed groups. It answers: How much does exposure reduce the absolute probability of the event?
Number Needed to Treat (NNT) is the number of people who need to be treated to prevent one additional event. NNT = 1/ARR. A lower NNT indicates a more effective treatment.
Relative risk is preferred for cohort studies (prospective). Odds ratio (OR) is used in case-control studies. For rare events (prevalence < 10%), OR approximates RR well. For common outcomes, OR overstates the association.
The 95% CI gives the range within which the true RR is likely to fall with 95% confidence. If the CI does not include 1.0, the result is statistically significant at α = 0.05.
Real-World Applications
Common Mistakes
Relative Risk Interpretation Quick Reference
| RR Value | Interpretation | Relative Risk Reduction / Increase |
|---|---|---|
| RR = 0.5 | Exposure halves the risk (protective) | 50% relative risk reduction |
| RR = 1.0 | No association between exposure and outcome | 0% change — null result |
| RR = 1.5 | 50% higher risk in exposed group | 50% relative risk increase |
| RR = 2.0 | Twice the risk in exposed group | 100% relative risk increase |
| RR = 3.0 | Three times the risk in exposed group | 200% relative risk increase |
References
- Rothman, K.J., Greenland, S. and Lash, T.L. Modern Epidemiology. Lippincott Williams & Wilkins, 2008.
- Szklo, M. and Nieto, F.J. Epidemiology: Beyond the Basics. Jones & Bartlett, 2019.
- Cummings, P. "The Relative Merits of Risk Ratios and Odds Ratios." Archives of Pediatric and Adolescent Medicine, 2009.
- Ioannidis, J.P.A. "Why Most Published Research Findings Are False." PLOS Medicine, 2005.
- Sackett, D.L. et al. Evidence-Based Medicine: How to Practice and Teach It. Churchill Livingstone, 2000.
Related Calculators
Browse all Statistics calculators →Odds Ratio Calculator
Calculate odds ratio and confidence interval from a 2×2 contingency table.
Chi Square Calculator
Calculate chi-square test statistic, p-value, and degrees of freedom for goodness of fit and independence tests.
Probability Calculator
Calculate basic probability, combined events, and conditional probability.