Relative Risk & Odds Ratio Calculator
Relative Risk & Odds Ratio Calculator
Enter the four counts from your 2x2 table: how many in the exposed group had the event vs. didn't, and how many in the unexposed group had the event vs. didn't. This calculates the relative risk (a direct ratio of the two groups' event rates) and the odds ratio (a ratio of their odds), both common ways of quantifying how strongly an exposure is associated with an outcome.
- Relative risk formula: RR = (exposed group's event rate) ÷ (unexposed group's event rate) — an RR of 3 means the exposed group is three times as likely to experience the event.
- Odds ratio formula: OR = (a × d) ÷ (b × c), using the four cell counts of the table — commonly used in case-control studies where the true event rate can't be directly measured.
- A value of 1 means no association: both relative risk and odds ratio equal 1 when the exposure makes no difference to the outcome; values above 1 suggest increased risk, below 1 suggest decreased risk.
When should I use odds ratio instead of relative risk?
Odds ratio is the standard choice for case-control studies (where you start by selecting people with and without the outcome, rather than following exposed and unexposed groups over time) since relative risk can't be validly calculated in that design.
Why do relative risk and odds ratio give different numbers for the same data?
They're mathematically different ratios (rates vs. odds), and they diverge more as the event becomes more common — for rare events they're numerically very close, but for common events the odds ratio tends to overstate the effect compared to relative risk.
Relative Risk & Odds Ratio Calculator


Enter the four counts from your 2x2 table: how many in the exposed group had the event vs. didn't, and how many in the unexposed group had the event vs. didn't. This calculates the relative risk (a direct ratio of the two groups' event rates) and the odds ratio (a ratio of their odds), both common ways of quantifying how strongly an exposure is associated with an outcome.

- Relative risk formula: RR = (exposed group's event rate) ÷ (unexposed group's event rate) — an RR of 3 means the exposed group is three times as likely to experience the event.
- Odds ratio formula: OR = (a × d) ÷ (b × c), using the four cell counts of the table — commonly used in case-control studies where the true event rate can't be directly measured.
- A value of 1 means no association: both relative risk and odds ratio equal 1 when the exposure makes no difference to the outcome; values above 1 suggest increased risk, below 1 suggest decreased risk.
When should I use odds ratio instead of relative risk?
Odds ratio is the standard choice for case-control studies (where you start by selecting people with and without the outcome, rather than following exposed and unexposed groups over time) since relative risk can't be validly calculated in that design.
Why do relative risk and odds ratio give different numbers for the same data?
They're mathematically different ratios (rates vs. odds), and they diverge more as the event becomes more common — for rare events they're numerically very close, but for common events the odds ratio tends to overstate the effect compared to relative risk.
