A confounding variable, or confounder, is a third factor linked to both an exposure and an outcome. It distorts the true relationship between them, making an association look stronger, weaker or even reversed.
A factor is a confounder if it:
- is associated with the exposure;
- is a risk factor for the outcome in its own right; and
- is not a step on the causal pathway from exposure to outcome.
Example
Suppose a study finds that people who drink a lot of coffee have higher rates of lung cancer. If heavy coffee drinkers in that population are also more likely to smoke, smoking is a confounder: it is linked to coffee drinking, and it causes lung cancer. Once the analysis compares smokers with smokers and non-smokers with non-smokers, the apparent effect of coffee can shrink or disappear.
How researchers control it
- In the study design: randomization (the main strength of randomized controlled trials), restricting who is included, or matching cases and controls.
- In the analysis: stratifying the data, standardizing rates, or multivariable regression.
Factors that weren’t measured can still cause residual confounding, so observational findings need cautious interpretation.
Related terms: Bias · Relative risk · Odds ratio · Cohort study · Randomized controlled trial
Source: Catalogue of Bias Collaboration, University of Oxford, Confounding.
Written by Dr Aamir Lehri, MBBS · Last reviewed: October 2026