Odds Ratio Calculator
Compute the odds ratio and 95% confidence interval from a 2×2 table. Measure the association between an exposure and an outcome.
Odds ratio
6
OR = a×d ÷ b×c
95% confidence interval
2.4526 – 14.6783
Woolf method
Log odds ratio
1.7918
ln(OR)
OR = 1 means no association; OR > 1 means the exposure raises the odds of the event. Odds differ from probability.
Last updated: August 2026
How this calculator is verified
Checked by True Calculator automated test suite on
- Formula verified against a published worked example in the automated test suite
- Edge cases (zero, negative, boundary and unit-mismatch inputs) covered by unit tests
The full verification method is on our how we verify page. Found an error? Tell us and we will re-check it.
When to Use This Calculator
Use the odds ratio calculator whenever a case-control study or a 2×2 table reports an exposure-outcome association and you need the strength of the link — smoking and disease, drug and side effects, training and exam pass rates, or a marketing campaign and purchase behaviour. Indian medical researchers report odds ratios in nearly every case-control paper, and reviewers immediately check whether the 95% interval includes 1; this calculator produces both in one step. Students of epidemiology and biostatistics verify textbook examples, while business analysts apply the same arithmetic to conversion tables like 'email sent versus not sent' against 'purchased or not'. The Woolf confidence interval is computed automatically when all four cells are positive, matching the standard method used in statistical software.
How to Use This Calculator
- Step 1: Enter the number of exposed people with the event in cell a.
- Step 2: Enter the number of exposed people without the event in cell b.
- Step 3: Enter the unexposed counts with and without the event in cells c and d.
- Step 4: Read the odds ratio, log odds ratio and the 95% confidence interval.
Worked Example
A public-health study in Kerala examines smoking and a lung condition: 30 smokers developed it (a), 20 smokers did not (b), 10 non-smokers developed it (c), and 40 non-smokers did not (d). The odds ratio is a×d ÷ b×c = 1200 ÷ 200 = 6, meaning smokers have six times the odds of the condition. The 95% Woolf interval runs from about 2.45 to 14.68, and since it excludes 1 the association is significant at the 5% level. A milder table of 10, 90, 15, 85 gives an odds ratio of 0.63, suggesting a protective association.
Tips and Common Mistakes
- •Tip 1: Read the interval alongside the point estimate — a wide interval signals an imprecise study.
- •Tip 2: The interval including 1 means the result is not statistically significant at the 5% level.
- •Tip 3: For rare events the odds ratio approximates the relative risk; for common events it exaggerates it.
- ✗Mistake 1: Describing the odds ratio as a probability ratio — 6 times the odds is not six times the risk.
- ✗Mistake 2: Entering zero in cell b or c — the odds ratio becomes undefined, and the calculator shows an error hint.
Frequently Asked Questions
What is an odds ratio?
The odds ratio (OR) compares the odds of an event in an exposed group with the odds in an unexposed group, using the formula OR = a×d ÷ b×c from a 2×2 table. An OR of 1 means no association, above 1 means the exposure raises the odds of the event, and below 1 means it lowers them.
What is the difference between odds and probability?
Probability is the chance of an event among all outcomes, while odds is the ratio of the chance it happens to the chance it does not. If the probability of recovery is 60%, the odds are 1.5 (0.6 ÷ 0.4). Odds ratios multiply naturally across study designs, which is why case-control studies report them.
How do I fill the 2×2 table?
Put exposed people with the event in cell a, exposed without the event in b, unexposed with the event in c, and unexposed without the event in d. For example, a = 30, b = 20, c = 10, d = 40 gives OR = 30×40 ÷ 20×10 = 6, meaning the exposure is associated with six times the odds of the event.
What does the 95% confidence interval tell me?
The interval shows the plausible range for the true odds ratio. For OR = 6 from the example above, the 95% interval is about 2.45 to 14.68 — computed with the Woolf method. Because the interval does not include 1, the association is statistically significant at the 5% level.
Why do case-control studies use odds ratios?
In a case-control study, researchers pick the number of cases and controls, so the probability of disease cannot be estimated directly — but odds can. The odds ratio remains valid and approximates the relative risk when the event is rare. This is why Indian public-health papers on exposures like smoking and diabetes almost always report odds ratios.
You might also need
Related calculators from other categories
Science & Weather
Acceleration Calculator
Calculate acceleration from initial and final velocity over time, plus the distance covered. Handles speeding up and braking.
Finance
Amortization Calculator
See the full year-by-year repayment breakdown of any loan, with optional extra payments. Track principal, interest and balance over time.
Health & Fitness
Army Body Fat Calculator
Estimate body fat percentage with the US Army circumference formula using neck and waist measurements. See your category instantly.
Health & Fitness
Body Fat Calculator
Estimate body fat percentage with the US Navy method using tape measurements. Track your fitness progress accurately for men and women.