Relative Risk Calculator
Print PageA Relative Risk Calculator (also known as a Risk Ratio Calculator, RR & 95% Confidence Interval Utility, Epidemiology Cohort Study Analyzer, or Vaccine Efficacy Relative Risk Calculator) computes the ratio of disease incidence in an exposed group compared to an unexposed group (RR = Ie ÷ Iu), log-normal 95% Confidence Intervals (95% CI), Attributable Risk (AR = Ie - Iu), and Attributable Risk Percent (AR%) from a standard 2 × 2 contingency table.
In medical epidemiology and prospective cohort studies, Relative Risk (RR) quantifies the strength of association between an exposure (such as smoking, medication, or vaccination) and an outcome (such as disease, recovery, or adverse events). An RR > 1.0 indicates an increased risk of disease due to exposure, an RR = 1.0 indicates no association (null hypothesis), and an RR < 1.0 indicates a protective effect (such as a working vaccine).
Our free online Relative Risk Calculator provides instant calculations across all standard epidemiological parameters:
- Risk in Exposed Group (Ie):
Ie = a ÷ (a + b)(wherea= exposed with disease,b= exposed without disease). - Risk in Unexposed Group (Iu):
Iu = c ÷ (c + d)(wherec= unexposed with disease,d= unexposed without disease). - Relative Risk / Risk Ratio (RR):
RR = Ie ÷ Iu = [ a ÷ (a + b) ] ÷ [ c ÷ (c + d) ]. - Standard Error of Natural Log of Relative Risk (SEln RR):
SEln RR = √[ (1/a) - (1/[a+b]) + (1/c) - (1/[c+d]) ]. - 95% Confidence Interval for RR:
95% CI = exp( ln[RR] ± 1.96 · SEln RR ). - Attributable Risk (AR):
AR = Ie - Iu. - Attributable Risk Percent / Vaccine Efficacy (AR% / VE):
AR% = [ (Ie - Iu) ÷ Ie ] · 100% = (1 - [1 / RR]) · 100%.
Master Epidemiological Relative Risk & Efficacy Reference Table
The table below displays the 2×2 contingency table inputs, calculated group risks, Relative Risk (RR), 95% Confidence Intervals, and Attributable Risk percentages across common clinical cohort studies:
| Clinical Study Scenario | Exposed Risk (Ie = a/[a+b]) | Unexposed Risk (Iu = c/[c+d]) | Relative Risk (RR) | 95% Confidence Interval | Attributable Risk % / Efficacy | Clinical Interpretation |
|---|---|---|---|---|---|---|
| Smoking & Lung Cancer Cohort | 80 / 1,000 = 8.00% | 10 / 1,000 = 1.00% | 8.00 | 4.17 to 15.35 | 87.50% AR% | Strong Harmful Association (8x Risk) |
| Vaccine Clinical Efficacy Trial | 15 / 1,000 = 1.50% (Vaccinated) | 75 / 1,000 = 7.50% (Placebo) | 0.20 | 0.12 to 0.34 | 80.00% Vaccine Efficacy | Strong Protective Effect (80% Reduction) |
| Occupational Asbestos Exposure | 50 / 500 = 10.00% | 10 / 500 = 2.00% | 5.00 | 2.56 to 9.77 | 80.00% AR% | Moderate Harmful Risk (5x Risk) |
| Inert Placebo Control | 30 / 1,000 = 3.00% | 30 / 1,000 = 3.00% | 1.00 | 0.60 to 1.67 | 0.00% | No Association (Null Hypothesis) |
Step-by-Step Smoking & Vaccine Trial Calculations
To calculate Relative Risk (RR), 95% Confidence Interval, and Attributable Risk Percent for a Smoking & Lung Cancer Cohort Study (Exposed: a=80, b=920; Unexposed: c=10, d=990), and a Vaccine Trial (Vaccinated: a=15, b=985; Placebo: c=75, d=925):
Step 1 (Smoking Exposed Risk Ie): Ie = 80 ÷ (80 + 920) = 80 ÷ 1,000 = 0.0800 (8.00%)
Step 2 (Smoking Unexposed Risk Iu): Iu = 10 ÷ (10 + 990) = 10 ÷ 1,000 = 0.0100 (1.00%)
Step 3 (Calculate Smoking Relative Risk RR): RR = 0.0800 ÷ 0.0100 = 8.00 (8x Increased Risk)
Step 4 (Calculate SE of ln RR): SEln RR = √[ (1/80 - 1/1000) + (1/10 - 1/1000) ] = √[ 0.0115 + 0.0990 ] = √[ 0.1105 ] ≈ 0.332415
Step 5 (Calculate 95% CI): exp( ln[8.00] ± 1.96 × 0.332415 ) = exp( 2.07944 ± 0.65153 ) = [ exp(1.42791) , exp(2.73097) ] = [ 4.17 , 15.35 ]
Step 6 (Calculate Smoking Attributable Risk AR%): AR% = (8.00 - 1.00) ÷ 8.00 = 87.50%
Step 7 (Vaccine Trial Relative Risk RR): RR = (15/1000) ÷ (75/1000) = 0.0150 ÷ 0.0750 = 0.2000
Step 8 (Calculate Vaccine Efficacy VE): VE = (1 - RR) × 100% = (1 - 0.2000) × 100% = 80.00% Efficacy
Thus, smoking increases lung cancer risk by 8.00 times (87.5% of cases attributable to smoking), while the vaccine achieves 80.0% efficacy (reducing infection risk by 80%).
Relative Risk (RR) vs. Odds Ratio (OR): Structural Differences
Below is a comparative reference chart detailing when to use Relative Risk versus Odds Ratio in medical statistics:
| Methodological Feature | Relative Risk / Risk Ratio (RR) | Odds Ratio (OR) |
|---|---|---|
| Primary Study Design | Prospective Cohort Studies & RCTs | Retrospective Case-Control Studies |
| Mathematical Formula | [ a / (a+b) ] ÷ [ c / (c+d) ] |
(a · d) ÷ (b · c) |
| Denominator Basis | Total group population (a+b) | Non-diseased group count (b) |
| Rare Disease Approximation | Actual Risk Ratio | Approximates RR when disease incidence < 5% |
History & Medicine: 1950 Doll & Hill to 1954 Jerome Cornfield
1950 Sir Richard Doll & Austin Bradford Hill
In 1950, British epidemiologists Sir Richard Doll and Austin Bradford Hill conducted the landmark British Doctors Study, utilizing Relative Risk (RR > 10.0) to establish the first conclusive causal link between cigarette smoking and lung cancer.
1954 Jerome Cornfield & The Rare Disease Assumption
In 1954, American statistician Jerome Cornfield proved mathematically that when disease prevalence is rare (< 5%), the Odds Ratio (OR) in case-control studies closely approximates the true Relative Risk (RR) of cohort studies.
Popular direct tools:
Frequently Asked Questions (FAQ)
What is Relative Risk (RR) in simple terms?
Relative Risk (RR) is the ratio of the probability of an outcome occurring in an exposed group to the probability in an unexposed group.
How do you interpret a Relative Risk value?
An RR > 1.0 means increased risk in the exposed group, an RR = 1.0 means no risk difference, and an RR < 1.0 means decreased risk (protection).
How is Vaccine Efficacy calculated from Relative Risk?
Vaccine Efficacy is calculated as VE = (1 - RR) × 100%. An RR = 0.20 yields an 80% Vaccine Efficacy.