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 RR and OR from 2x2 outcome tables. It is useful in epidemiology, A/B analysis, and risk comparison studies. The tool converts contingency counts into interpretable effect measures. Use it to compare exposure and outcome relationships.

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 counts for exposed/unexposed and outcome/no-outcome cells.
  2. Run the tool to compute RR and OR values.
  3. Interpret effect size with confidence intervals where available.

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

Scenario Compare (A vs B)

Use this to compare two input sets and quantify change in key outputs.

Scenario A

Scenario B

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