ToolPatch

One page. One job. Done.

← Back to all tools
Statistics

Relative Risk Odds Ratio Calculator

Compute RR, OR, and confidence intervals from a 2x2 contingency table.

Last validated: 2026-02-14

Relative Risk Odds Ratio Calculator derives two common association measures from a 2x2 outcome table. Relative risk compares event probability in an exposed group with event probability in an unexposed group, making it natural for cohort studies and experiments where risks can be observed directly. Odds ratio compares event odds rather than event probabilities; it is widely used in case-control studies and logistic regression because odds remain computable when sampling starts from outcomes. When events are rare, the odds ratio and relative risk can be similar, but for common outcomes the odds ratio can look much larger. The four table cells represent exposed cases, exposed non-cases, unexposed cases, and unexposed non-cases, so correct table orientation is essential.

Permalink

Input Pattern

Enter values in the left panel, keep units explicit, run the calculation, then copy or share the result. Invalid fields are highlighted immediately.

2x2 Table Inputs

a=exposed+outcome, b=exposed+no outcome, c=unexposed+outcome, d=unexposed+no outcome

Result

Risk exposed: 0.450000

Risk unexposed: 0.200000

Relative risk: 2.25000000

RR 95% CI: 1.437687 to 3.521281

Odds ratio: 3.27272727

OR 95% CI: 1.745242 to 6.137109

How to use this tool

  1. Enter a, b, c, d for the relative risk odds ratio calculator, keeping units, dates, or text format consistent with the form labels.
  2. Confirm sample size, ordering, and distribution assumptions before relying on the calculated result.
  3. Click "Run the tool" and review 2x2 Table Inputs, Result for the primary output.
  4. Check the statistical assumptions and sample context before using the result in a report or decision.

Worked Example

Auto-generated from the tool's current default or entered inputs.

Example Inputs

  • A: 45
  • B: 55
  • C: 20
  • D: 80
  • Adjusted:
  • Risk exposed: 0.45
  • Risk unexposed: 0.2
  • Relative risk: 2.25

Expected Outputs

  • A: 45
  • B: 55
  • C: 20
  • D: 80

Interpretation

Confidence and limitations

Formula References

Assumptions

Explore more versions

Tailored guides for specific audiences, regions, and scenarios.

Clinical and research analytics tools

Promote epidemiology references, biostat software, and clinical data tools.

Sponsored