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
OR = 1 means no association; OR > 1 means the exposure raises the odds of the event. Odds differ from probability.
Odds Ratio Calculator on True Calculator gives you an instant, accurate answer with no sign-up and no app install. Compute the odds ratio and 95% confidence interval from a 2×2 table. Measure the association between an exposure and an outcome. Every result shows the formula and a worked example so you can verify the calculation yourself, and all values are computed in your own browser — your numbers never leave your device.
Popular uses: odds ratio calculator · odds ratio 2x2 table · odds ratio confidence interval
Reviewed by the True Calculator team · Last updated: August 2026
How We Calculate
This calculator uses standard statistical formulas as defined in textbooks and statistical software. All calculations are performed instantly in your browser using JavaScript — no data is sent to any server.
Formulas follow the conventions used in academic statistics, including population and sample variants where they differ.
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
Construction
BTU Calculator
Calculate the BTU and AC tonnage required for a room based on size, sun exposure and insulation.
Construction
Concrete Calculator
Calculate concrete volume, weight and number of cement bags for a slab. Get exact quantities for your construction project.
Construction
Gravel Calculator
Estimate gravel volume, weight in tonnes and 50 kg bags for driveways and paths by material density.
Construction
Mulch Calculator
Work out mulch volume in m³ and litres, plus bags needed and cost for your garden beds.