Part of the Math & Statistics suite · 235 calculators

Odds Ratio Calculator

The odds ratio from a 2×2 table, with its confidence interval — and the relative risk beside it, because the two are routinely confused.

The odds ratio is (a/b) ÷ (c/d) = ad ÷ bc.

Results update as you type
Results
Odds ratio
2.428571
CI — lower
CI — upper
Relative risk (for comparison)
Risk if exposed
Risk if unexposed
Log odds ratio
Standard error of ln(OR)
Does the interval exclude 1?
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows US usage (math, parentheses, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About odds ratio

How the odds ratio calculator works

The odds ratio is (a/b) ÷ (c/d) = ad ÷ bc. Its confidence interval is computed on the log scale, where it is approximately normal, using the standard error √(1/a + 1/b + 1/c + 1/d).

An odds ratio always looks more dramatic than the corresponding relative risk, and the gap widens as the outcome gets more common. Reporting an odds ratio as though it were a risk ratio is one of the most common errors in health reporting.

Formula: OR = ad / bc; CI = exp(ln OR ± z √(1/a+1/b+1/c+1/d))

Worked examples

InputsOdds ratioNote
30/70 against 15/852.428571OR = 2.43, RR = 2.00
No association1OR = 1
A protective effect0.259259OR = 0.26

Frequently asked questions

What is an odds ratio?

The odds of an outcome in one group divided by the odds in another. Above 1 means the exposure is associated with more of the outcome.

How is it different from relative risk?

Relative risk compares probabilities; the odds ratio compares odds. They agree only when the outcome is rare — below about 10%.

Why is the distinction important?

Because an odds ratio always overstates the risk ratio. "Doubles your odds" and "doubles your risk" are different claims, and the first is routinely reported as the second.

Why use odds ratios at all?

Because they can be estimated from case-control studies, where risks cannot, and because logistic regression produces them naturally.

What if a cell is zero?

The ratio becomes undefined or infinite. The Haldane–Anscombe correction adds 0.5 to every cell, which gives a usable estimate with wide intervals.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.