What Is an Odds Ratio? Definition and Epidemiological Context
An odds ratio (OR) is a numerical measure of association between an exposure variable and a binary outcome. It answers the question: how much more — or less — likely is the outcome among people with the exposure compared to those without it, expressed in terms of odds rather than probability?
To understand why odds are used instead of probability, consider the two most common study designs in epidemiology:
- Cohort study: You follow a group of people over time and observe who develops the disease. You can calculate the probability (risk) of disease in each group. Relative risk (RR) and risk difference are both valid.
- Case-control study: You start with people who already have the disease (cases) and compare them to people without the disease (controls). You recruit a fixed number of cases and controls independently. This means you cannot calculate the true risk of developing disease — because the proportion with disease in your study reflects your sampling design, not the natural disease frequency. Only the odds ratio can be validly calculated from this design.
The OR is therefore the essential measure for case-control studies — the most efficient design for rare diseases. It is also the natural output of binary logistic regression, which is why it appears in the results of almost every multivariable analysis in observational clinical research.
Odds versus Probability: An Important Distinction
Before calculating the OR, you must understand the difference between probability and odds. They describe the same event but express it differently:
When the outcome is rare (probability below 10%), odds and probability are nearly identical in value. A disease probability of 5% gives odds of 0.053 — very close to 0.05. This is why the OR closely approximates the relative risk for rare diseases but diverges substantially for common ones.
The Case-Control Study: Why Odds Ratio Is the Right Measure
The case-control study is the most important design context for the OR. Understanding why requires understanding how the design works. A researcher investigating risk factors for a rare cancer, for instance, cannot wait decades for enough people to develop the disease in a prospective cohort. Instead, they identify existing cases with the cancer and recruit controls matched or sampled from the same population without the cancer, then look back to compare exposure history.
In this design, the researcher controls how many cases and controls are enrolled — often in a ratio of 1:1, 1:2, or 1:4. This means the proportion of diseased people in the study is artificially set. You cannot use that proportion to calculate the incidence or absolute risk of disease. What you can calculate validly is: among cases, how many were exposed? Among controls, how many were exposed? The ratio of those odds gives the odds ratio.
The OR and Prospective Designs
The OR also appears in cohort studies and randomised trials, but there it is often less intuitive than relative risk. When logistic regression is used to adjust for confounders in any study design, it produces ORs for each predictor. In those situations, researchers must be careful to state clearly that the OR approximates RR only when the outcome is rare, and to use alternative regression methods (log-binomial, Poisson with robust variance) when they want to report adjusted RR directly for common outcomes.
The 2×2 Contingency Table: Structure and Layout
Every manual OR calculation begins with a properly constructed 2×2 contingency table. The convention is: exposure status in rows, disease/outcome status in columns. This orientation is critical because SPSS, R, and Stata each follow specific rules about which cell is which, and getting the layout wrong reverses the OR you report.
| Disease / Outcome | Total | |||
|---|---|---|---|---|
| Cases (Disease +) | Controls (Disease −) | |||
| Exposure | Exposed (Yes) | a | b | a + b |
| Unexposed (No) | c | d | c + d | |
| Total | a + c | b + d | N | |
Cell definitions that you must memorise:
- Cell a — Exposed cases: had the exposure AND developed the disease
- Cell b — Exposed controls: had the exposure but did NOT develop the disease
- Cell c — Unexposed cases: did NOT have the exposure but developed the disease anyway
- Cell d — Unexposed controls: did NOT have the exposure and did NOT develop the disease
Worked Examples: Step-by-Step Calculations
Each example below uses a different clinical context and walks through every calculation step explicitly. Use these as templates for your own research data.
Smoking and Lung Cancer — The Classic Case-Control Example
Hospital-based case-control study • Exposure: cigarette smoking • Outcome: histologically confirmed lung cancer
A hospital-based case-control study enrolled 200 newly diagnosed lung cancer cases and 200 age- and sex-matched hospital controls without lung cancer. All participants were interviewed about their smoking history.
| Lung Cancer (Yes) | Lung Cancer (No) | Total | ||
|---|---|---|---|---|
| Smoke | Smoker | 150 (a) | 80 (b) | 230 |
| Non-smoker | 50 (c) | 120 (d) | 170 | |
| Total | 200 | 200 | 400 | |
OR = (150 × 120) / (80 × 50)
OR = 18,000 / 4,000
OR = 4.50
SE = √(1/150 + 1/80 + 1/50 + 1/120) = √(0.00667 + 0.01250 + 0.02000 + 0.00833)
SE = √0.04750 = 0.2179
ln(4.50) = 1.5041
95% CI for ln(OR): 1.5041 ± (1.96 × 0.2179) = 1.5041 ± 0.4271
Lower: e^(1.0770) = 2.94 Upper: e^(1.9312) = 6.90
95% CI = 2.94 to 6.90
Regular Aspirin Use and Colorectal Cancer — Protective Association (OR < 1)
Case-control study • Exposure: regular aspirin use • Outcome: colorectal cancer
A multicentre case-control study enrolled 300 colorectal cancer cases and 300 age- and sex-matched community controls. Regular aspirin use was defined as at least two tablets per week for six or more months.
| CRC (Yes) | CRC (No) | Total | ||
|---|---|---|---|---|
| Aspirin | Regular user | 72 (a) | 108 (b) | 180 |
| Non-user | 228 (c) | 192 (d) | 420 | |
| Total | 300 | 300 | 600 | |
SE(ln OR) = √(1/72 + 1/108 + 1/228 + 1/192) = √(0.01389+0.00926+0.00439+0.00521) = √0.03274 = 0.1809
ln(0.562) = −0.5762
95% CI: e^(−0.5762 ± 1.96×0.1809) = e^(−0.9307 to −0.2216)
95% CI = 0.394 to 0.801
Never say "patients using aspirin had 56% lower odds." The correct statement is "56% of the odds of non-users" or equivalently "44% lower odds than non-users."
Obesity and Type 2 Diabetes — Community Cohort Study
Cross-sectional analysis • Exposure: obesity (BMI ≥30) • Outcome: prevalent type 2 diabetes
A cross-sectional community health survey of 1,200 adults measured BMI and screened for type 2 diabetes (fasting glucose ≥ 7.0 mmol/L or HbA1c ≥ 48 mmol/mol). Participants were classified as obese (BMI ≥ 30) or non-obese (BMI < 30).
| T2DM (Yes) | T2DM (No) | Total | ||
|---|---|---|---|---|
| BMI | Obese (BMI ≥30) | 112 (a) | 288 (b) | 400 |
| Non-obese (BMI <30) | 88 (c) | 712 (d) | 800 | |
| Total | 200 | 1000 | 1200 | |
Risk in obese: 112/400 = 28.0% Risk in non-obese: 88/800 = 11.0%
RR = 28.0% / 11.0% = RR = 2.55 (from cohort/cross-sectional data)
SE(ln OR) = √(1/112+1/288+1/88+1/712) = √(0.00893+0.00347+0.01136+0.00141) = √0.02517 = 0.1587
95% CI for OR = e^(ln 3.15 ± 1.96×0.1587) = e^(1.1474 ± 0.3110) = 2.23 to 4.46
Alcohol and Oesophageal Cancer — Confounder Illustration
Case-control study • Demonstrating crude OR vs adjusted OR when smoking confounds
A case-control study investigated alcohol consumption (heavy vs non-heavy) and oesophageal cancer in a population where heavy drinkers were also more likely to smoke (a known independent risk factor for oesophageal cancer).
Crude analysis (unadjusted 2×2 table for alcohol alone): Crude OR = 3.80 (95% CI 2.40–6.00, p < 0.001).
Multivariable logistic regression adjusting for smoking, age, and sex produced: Adjusted OR = 2.30 (95% CI 1.40–3.80, p = 0.001).
Interpreting OR Values: A Systematic Approach
When you encounter an OR in a paper or your own output, use this five-step approach to interpret it correctly:
Identify the direction
Is the OR greater than, less than, or equal to 1? Greater than 1 indicates a positive association (exposure increases odds). Less than 1 indicates an inverse/protective association. Equal to 1 means no association. This is the first and fastest assessment.
Assess statistical significance via the CI
Check whether the 95% CI includes 1. If the entire CI exceeds 1 (e.g., 1.4 to 3.2), the association is statistically significant and positive. If the entire CI is below 1 (e.g., 0.3 to 0.8), it is significant and protective. If the CI includes 1 (e.g., 0.7 to 2.1), the result is not significant at alpha = 0.05. The p-value tells the same story but the CI is more informative.
Assess the magnitude
A common informal guide: OR 1.0–1.5 = weak association; OR 1.5–2.5 = moderate; OR >2.5 = strong. For protective effects, OR 0.67–1.0 = weak; OR 0.4–0.67 = moderate; OR <0.4 = strong. These thresholds are not universal laws — clinical context determines whether an OR is meaningful.
Assess precision via CI width
A wide CI (e.g., OR 4.0, 95% CI 0.9–18.3) signals imprecision — even if the point estimate looks impressive, the study cannot distinguish a trivial from a large effect. A narrow CI (e.g., OR 2.1, 95% CI 1.7–2.6) indicates a precise estimate from a well-powered study. Always read both the width and the location of the CI.
Determine if the OR is crude or adjusted
Crude ORs from 2×2 tables are unadjusted for confounders. Adjusted ORs from logistic regression control for specified covariates. In observational research, the adjusted OR is the primary measure. Always note which variables were controlled for: "adjusted OR controlling for age, sex, and smoking status" is meaningfully different from simply "OR."
Crude versus Adjusted Odds Ratio: The Confounding Problem
One of the most important skills in reading and producing epidemiological research is understanding how confounding affects the OR and why the adjusted OR is needed.
What Makes a Variable a Confounder?
A confounder must satisfy three criteria simultaneously:
- It is associated with the exposure (e.g., smokers are more likely to drink alcohol)
- It is independently associated with the outcome (e.g., alcohol is an independent risk factor for oesophageal cancer)
- It is not on the causal pathway between the exposure and the outcome (i.e., it is not an intermediate step through which the exposure acts)
Common confounders in clinical research include: age, sex, BMI, smoking status, socioeconomic status, comorbidities, and medication use. A good observational study explicitly lists potential confounders in the methods section and adjusts for all those available in the dataset.
Positive vs Negative Confounding
Positive confounding occurs when the confounder inflates the crude OR above the true OR. Example: smoking (a confounder) inflates the apparent association between coffee drinking and lung cancer in populations where coffee drinkers tend to smoke more.
Negative confounding occurs when the confounder suppresses or reverses the crude OR. Example: if a protective exposure (exercise) is more common in people who also have another risk factor, the crude OR for the risk factor may appear smaller than the true OR, masking the harmful association.
Odds Ratio in Logistic Regression: Reading SPSS Output
When you run a binary logistic regression, each predictor in the model produces an odds ratio. Understanding how to read, interpret, and report the SPSS logistic regression output is an essential skill for any clinical researcher.
The SPSS "Variables in the Equation" Table
The most important table in SPSS logistic regression output is "Variables in the Equation." It contains these columns:
| Column | Meaning | Action |
|---|---|---|
| B | Log odds coefficient (ln(OR)) | Exponentiate to get OR: e^B |
| S.E. | Standard error of B | Used internally for Wald test and CI |
| Wald | = (B / S.E.)² — chi-square test statistic | Used to judge predictor significance |
| df | Degrees of freedom for Wald test | For binary predictor: df = 1 |
| Sig. | P value for Wald test of this predictor | Compare to 0.05 threshold |
| Exp(B) | Odds ratio = e^B | This is the OR you report |
| 95% CI Lower | Lower 95% CI bound for Exp(B) | Report alongside OR |
| 95% CI Upper | Upper 95% CI bound for Exp(B) | Report alongside OR |
Example Output: Lung Cancer Logistic Regression
Logistic regression with lung cancer (0/1) as outcome, smoking (0/1), age (continuous, per year), and sex (0=female, 1=male) as predictors:
Interpretation of each predictor:
- Smoking: Exp(B) = 4.50 (95% CI 2.93–6.92, p < 0.001). After controlling for age and sex in the model, smokers had 4.50 times higher odds of lung cancer compared to non-smokers. This is the adjusted OR.
- Age: Exp(B) = 1.05 (95% CI 1.04–1.07, p < 0.001). Each additional year of age increases the odds of lung cancer by 5%, independent of smoking and sex.
- Sex: Exp(B) = 1.40 (95% CI 0.94–2.08, p = 0.100). Males had 40% higher odds, but the CI crosses 1 and p = 0.100, so this difference is not statistically significant after adjustment. Report as "non-significant."
- Constant: The baseline log odds when all predictors = 0. Not interpreted clinically — ignore it.
How to run binary logistic regression and get odds ratios with 95% CI:
- Go to Analyze → Regression → Binary Logistic
- Move your binary outcome variable (coded 0 = no disease, 1 = disease) to the Dependent box
- Move your main exposure variable and all confounders/covariates to the Covariates box
- For categorical variables with more than two levels (e.g., smoking: never/ex-smoker/current), click Categorical → move to Categorical Covariates → set reference category as "First" or "Last" depending on convention
- Click Options → check "CI for exp(B)" at 95% → also check Hosmer-Lemeshow goodness-of-fit
- Method: keep Enter (forced entry) for planned confounders; use Forward: LR only for exploratory analysis
- Click OK. In the output, locate the "Variables in the Equation" table and read the
Exp(B)column for ORs
Categorical Variables with Multiple Levels in Logistic Regression
When a variable has more than two categories (e.g., smoking: never, ex-smoker, current), SPSS creates dummy variables and reports a separate Exp(B) for each category relative to the reference. Always state the reference category explicitly when reporting. Example:
Odds Ratio versus Relative Risk: When They Agree and When They Diverge
Researchers frequently confuse the OR with the relative risk (RR). This table summarises when to use each measure:
| Study Design / Context | Valid Measure | Notes |
|---|---|---|
| Case-control study | OR only | Cannot calculate RR — cases/controls are sampled separately |
| Cohort study, rare outcome (<10%) | OR ≅ RR | Numerically similar — either acceptable; RR is more intuitive |
| Cohort study, common outcome (>10%) | RR preferred | OR exaggerates the RR; use log-binomial regression for adjusted RR |
| RCT with binary outcome | RR or NNT | OR acceptable but overestimates RR for common outcomes |
| Logistic regression (any design) | OR (Exp[B]) | The default output; note overestimation if outcome is common |
| Meta-analysis of case-control studies | Pooled OR | Cannot pool RR when individual studies used case-control designs |
Calculating the 95% Confidence Interval for the Odds Ratio
The confidence interval for an OR is always computed on the natural log scale and then back-transformed. This is because ln(OR) is approximately normally distributed, whereas OR itself is right-skewed and bounded at zero.
The asymmetry of the CI around the OR point estimate is a feature of the log-normal distribution of OR. If OR = 3.0 with a symmetric lower bound of 1.8 below the estimate, the upper bound will not be 1.8 above it — it will be larger. Logistic regression software handles this automatically. In manual calculation, always exponentiate the log-scale bounds before reporting.
How to Report Odds Ratios in Research Papers
Accurate, complete reporting of odds ratios is essential for scientific transparency and allows readers to critically appraise your findings. Follow these reporting standards:
Standard Inline Format
Table Format for Multiple Predictors
For logistic regression with multiple predictors, a results table is standard. Include both crude and adjusted ORs:
| Predictor | Crude OR (95% CI) | p | Adjusted OR (95% CI) | p |
|---|---|---|---|---|
| Smoking (ever vs never) | 4.50 (2.94–6.90) | <0.001 | 4.20 (2.71–6.52) | <0.001 |
| Age (per 10 years) | 1.65 (1.38–1.97) | <0.001 | 1.58 (1.31–1.91) | <0.001 |
| Male sex | 1.82 (1.22–2.71) | 0.003 | 1.40 (0.94–2.08) | 0.100 |
| Family history (yes vs no) | 2.10 (1.30–3.40) | 0.002 | 1.90 (1.16–3.12) | 0.011 |
Table footnote: Adjusted OR from logistic regression controlling for all variables listed in the table simultaneously. Reference categories: smoking = never, sex = female, family history = no.
6 Common Mistakes in Calculating and Interpreting Odds Ratios
Mistake 1: Calling the OR a "relative risk" in a case-control study
In a case-control study, the design fixes the number of cases and controls. The proportions in the table do not reflect real disease incidence. Calling the OR a "relative risk" is technically wrong and leads to inflated claims, particularly for common diseases where OR and RR diverge substantially. This error appears in student theses and even published papers regularly.
Mistake 2: Misquoting the percentage change from an OR
OR = 2.0 does not mean "200% higher risk" or "200% higher odds." It means "twice the odds" or "100% higher odds." OR = 0.70 does not mean "70% lower odds" — it means 30% lower odds (calculated as 1 − 0.70 = 0.30, or 30%). These errors appear frequently in abstract sections and mislead readers about effect sizes.
Mistake 3: Reporting only the crude OR in an observational study with known confounders
Presenting a single crude OR from a 2×2 table and declaring it the main result — without accounting for age, sex, and other known confounders — produces a scientifically invalid conclusion in most observational research. Journal reviewers will reject manuscripts that fail to adjust for relevant confounders identified a priori in the study protocol.
Mistake 4: Treating a wide CI result as a "significant negative finding"
An OR of 3.5 with 95% CI 0.9 to 13.6 crosses 1, so p > 0.05. Many researchers conclude "no association was found." This is incorrect. The study is simply underpowered to detect or exclude an association. The true OR could be anywhere from 0.9 (mildly protective) to 13.6 (very strongly harmful). This is not a negative result — it is an inconclusive result.
Mistake 5: Not checking variable coding direction in SPSS before reading Exp(B)
SPSS calculates the OR as the comparison of the coded category 1 versus the reference category. If your exposure is coded 1 = unexposed and 0 = exposed (reversed), the Exp(B) will be the reciprocal of the intended OR. You may report OR = 0.22 when the actual OR for exposed vs unexposed should be 4.5. This error is invisible in the output and requires you to verify coding.
RECODE exposure (0=1)(1=0) INTO exposure_recoded.Mistake 6: Using OR when RR would be more informative for a common outcome in a cohort study
When you conduct a cohort study with a common outcome (say, 30-day hospital readmission at 25%) and run logistic regression, SPSS gives you ORs. Reporting those ORs without acknowledging that they substantially overestimate the RR is misleading. Clinicians and policy-makers typically think in terms of risk, not odds, and OR = 3.0 for a common outcome will be misread as "three times the risk."
Frequently Asked Questions
Calculate odds ratios from your data instantly
StatClinic's free OR calculator computes odds ratios from 2×2 tables with 95% confidence intervals, chi-square test, and plain-English medical interpretation — ready for thesis and journal submission.
Open Odds Ratio Calculator →