Odds Ratio Calculator
Enter the four cells of a 2×2 table to get the odds ratio (a × d ÷ b × c) and see whether the outcome is more or less likely in the exposed group.
One number, two groups
Enter the four counts a, b, c, and d and the calculator returns the odds ratio comparing the odds of the outcome between the two groups.
Mind zero cells
If cell b or cell c is zero the denominator is zero and the odds ratio is undefined — check your table before reading the result.
What is an odds ratio?
A measure of association
The odds ratio calculator turns a 2×2 contingency table into a single number that compares the odds of an outcome between two groups. The four cells are a (exposed cases), b (exposed non-cases), c (unexposed cases), and d (unexposed non-cases), and the odds ratio is the ratio of their cross products: (a × d) ÷ (b × c). It is dimensionless — a pure number — and is one of the most common ways to summarise the strength of an association between an exposure and an outcome.
Enter the four cell counts a, b, c, and d to get the odds ratio instantly and see whether the association is positive, negative, or absent.
The odds ratio is the product of the diagonal cells divided by the product of the off-diagonal cells.
OR = (a × d) ÷ (b × c)Cell a holds the exposed cases and cell d the unexposed non-cases — their product forms the numerator. Cell b holds the exposed non-cases and cell c the unexposed cases — their product forms the denominator. Because the result is a ratio of odds, it has no units; only the relative sizes of the four counts matter.
Suppose a study records a = 30, b = 70, c = 10, and d = 90.
Multiply the diagonal (a × d)
30 × 90 = 2700 — the numerator, the product of exposed cases and unexposed non-cases.
Multiply the off-diagonal (b × c)
70 × 10 = 700 — the denominator, the product of exposed non-cases and unexposed cases.
Divide
2700 ÷ 700 ≈ 3.8571 — the odds of the outcome are roughly 3.86 times higher in the exposed group.
The odds ratio is read against the reference value of 1. An odds ratio of exactly 1 means the odds of the outcome are identical in both groups — no association at all. A value greater than 1 means the outcome is more likely in the exposed group, a positive association: an OR of 3.86, as in the example above, says the odds are nearly four times higher. A value less than 1 means the outcome is less likely in the exposed group, a negative association; an OR of 0.5 would halve the odds. The further the number sits from 1 in either direction, the stronger the association. Because the scale is multiplicative rather than additive, an OR of 2 and an OR of 0.5 are mirror images of equal strength in opposite directions, which is why odds ratios are often viewed on a logarithmic scale.
The formula is exact, but a few points are worth keeping in mind before you act on the number.
It needs four counts and is not a causal claim
The odds ratio requires all four cell counts of a 2×2 table; it cannot be computed from a single proportion. It measures association, not causation — a large odds ratio does not by itself prove that the exposure causes the outcome. Watch for zero cells: if b or c is zero the ratio is undefined, and a small cell count makes the estimate unstable. This tool reports the point value only and is a general statistics utility, not medical advice.