No ads, no sign-upChecked 2026-08-25

Odds Ratio Calculator

Result

3.8571

Result: 3.8571

The odds ratio compares the odds of an outcome in two groups: multiply the two diagonal cells and divide. One means no association, above one means the outcome is more likely in the exposed group, below one less likely. Keep the cell order — swapping the diagonals returns the reciprocal, which looks just as plausible.

The numbers at a glance

Held fixed: Cell a — exposed, with the outcome 30, Cell b — exposed, without the outcome 70, Cell c — unexposed, with the outcome 10.

Cell d — unexposed, without the outcomeResult
00.0000
251.0714
502.1429
753.2143
90Your value3.8571
1004.2857
1255.3571
1506.4286
1757.5000

Worked examples

Case 1
Cell a — exposed, with the outcome
30
Cell b — exposed, without the outcome
70
Cell c — unexposed, with the outcome
10
Cell d — unexposed, without the outcome
90

3.8571

Open with these values
Case 2
Cell a — exposed, with the outcome
50
Cell b — exposed, without the outcome
50
Cell c — unexposed, with the outcome
50
Cell d — unexposed, without the outcome
50

1.0000

Open with these values
Case 3
Cell a — exposed, with the outcome
100
Cell b — exposed, without the outcome
50
Cell c — unexposed, with the outcome
25
Cell d — unexposed, without the outcome
200

16.0000

Open with these values

How it's calculated

OR = (a × d) ÷ (b × c)

  1. StepFill the top row: exposed people with, then without the outcome.
  2. StepFill the bottom row: unexposed people with, then without the outcome.
  3. ResultRead the odds ratio and compare it with 1.

What this number means

Swapping the diagonals returns the reciprocal

With a = 30, b = 70, c = 10 and d = 90 the ratio is 3.8571; with the diagonals exchanged it is about 0.259. Both look equally plausible, so check that a and d are the pair being multiplied.

It compares odds, not risks

The odds ratio divides cases by non-cases; relative risk divides cases by the group total. The two run close while the outcome is rare and drift apart as it becomes common.

One means no association

Above 1 the outcome is more likely in the exposed group, below 1 less likely. A value of 2 means the odds there are twice as high.

A zero in b or c leaves it undefined

Those two cells make up the denominator, which is why they start at 1 here. Analysts often add a small constant, commonly 0.5, to every cell instead — a modelling choice this calculator leaves to you.

Commonly misread

An odds ratio of 3.8571 means the outcome is nearly four times as likely.

The odds are nearly four times as high, which is not the same as the probability. Odds weigh cases against non-cases; risk weighs cases against the whole group.

An odds ratio below 1 means something went wrong.

It means the outcome is less likely in the exposed group: 10, 20, 30, 40 gives 0.6667. Only a zero in b or c leaves the value undefined.

Odds ratio and relative risk can be used interchangeably.

They nearly agree only while the outcome is rare. As it becomes common the two drift apart, and one cannot stand in for the other.

Reference table

a, b, c, dReadingOdds ratio
10, 20, 30, 40Outcome less likely when exposed0.6667
2, 3, 4, 5Slightly less likely when exposed0.8333
50, 50, 50, 50A balanced table — no association1
30, 70, 10, 90Odds nearly four times as high3.8571
100, 50, 25, 200A very strong positive association16

Questions

How do I calculate an odds ratio?

Lay out your data as a 2×2 table with cells a (exposed cases), b (exposed non-cases), c (unexposed cases) and d (unexposed non-cases), then divide the cross products: OR = (a × d) ÷ (b × c). With a = 30, b = 70, c = 10 and d = 90 that is (30 × 90) ÷ (70 × 10) = 2700 ÷ 700, about 3.8571.

What is an odds ratio?

It is a single number comparing the odds of an outcome in one group with the odds in another. The odds of an outcome are the number with it divided by the number without it, and the odds ratio is the ratio of those two odds. It is dimensionless — a pure number with no units.

How do I read the value?

An odds ratio of 1 means the odds are the same in both groups, so there is no association. Above 1 the outcome is more likely in the exposed group, below 1 it is less likely. A value of 2, for instance, means the odds are twice as high in the exposed group.

Is the odds ratio the same as relative risk?

No. Relative risk compares probabilities, cases divided by the group total, while the odds ratio compares odds, cases divided by non-cases. The two are close when the outcome is rare but drift apart as it becomes common, so they should not be used interchangeably.

What happens if one of the cells is zero?

If cell b or cell c is zero, the denominator becomes zero and the odds ratio is undefined, so those two cells start at 1 here. Analysts often add a small constant, commonly 0.5, to every cell instead. That is a modelling choice, and this calculator leaves it to you.

Sources and last check

  1. en.wikipedia.org

Information, not professional advice.