Relative Risk & Odds Ratio Calculator
Calculate relative risk (RR), odds ratio (OR), attributable risk, and group-specific risks from a 2×2 cohort study table. Essential for epidemiology and clinical research.
Relative Risk & Odds Ratio
intermediateCalculate relative risk, odds ratio, and attributable risk from cohort data
Formula
RR = (a/(a+b))/(c/(c+d)), OR = ad/bc
Scenario A
How It Works
From a cohort study comparing exposed vs. unexposed groups:
Exposed Risk = a/(a+b) — risk of outcome in exposed group
Unexposed Risk = c/(c+d) — risk of outcome in unexposed group
Relative Risk (RR) = Exposed Risk / Unexposed Risk
Odds Ratio (OR) = (a×d)/(b×c)
Attributable Risk (AR) = (Exposed Risk − Unexposed Risk) × 100%
Example
Study of smoking and lung cancer: 30 of 100 smokers developed cancer vs 10 of 100 non-smokers.
Smoker Risk = 30/100 = 0.30
Non-smoker Risk = 10/100 = 0.10
RR = 0.30/0.10 = 3.00
OR = (30×90)/(70×10) = 2700/700 = 3.86
AR = (0.30 − 0.10) × 100 = 20%
Smokers have 3× the risk of developing lung cancer compared to non-smokers.
Frequently Asked Questions
When should I use RR vs OR?
RR is preferred for cohort studies and randomized trials where we can directly measure risk. OR is used in case-control studies and when adjusting for confounders in logistic regression.
What does a RR of 1 mean?
RR = 1 means no difference in risk between groups. RR > 1 indicates increased risk (harmful exposure), RR < 1 indicates decreased risk (protective exposure).
What is attributable risk?
Attributable risk (or risk difference) tells you how much of the risk in the exposed group is due to the exposure itself. In the example above, 20% of smokers' lung cancer risk is attributable to smoking.
Save Configuration Snapshot
Save current parameters to your dashboard for instant one-click reloading.
About This Calculator & Guide
About the Relative Risk & Odds Ratio Calculator
The Relative Risk & Odds Ratio Calculator is a specialized online utility designed to help you calculate relative risk (rr), odds ratio (or), and attributable risk from cohort study data. free online epidemiology calculator. It performs calculations in real-time to provide immediate, reliable estimates for study, work, or daily tasks.
How to Use
Simply enter your parameters in the input fields of the calculator widget above. The tool evaluates the inputs instantly and displays the results in real-time. You can modify any value to check alternate scenarios and compare figures dynamically.
Data Privacy & Safety
All calculations are executed locally within your web browser. No inputs are sent to our servers or stored externally, ensuring your personal and financial details remain completely private and secure.
FAQ
Frequently Asked Questions
What does the Relative Risk & Odds Ratio Calculator do?+
Calculate relative risk (RR), odds ratio (OR), and attributable risk from cohort study data. Free online epidemiology calculator. It is designed for quick everyday use and gives clear results without requiring a sign in.
Is the Relative Risk & Odds Ratio Calculator free to use?+
Yes. The Relative Risk & Odds Ratio Calculator is free to use online and works directly in your browser.
Can I use the Relative Risk & Odds Ratio Calculator on mobile?+
Yes. The calculator layout is responsive, so you can use it on phones, tablets, laptops, and desktop screens.