In psychology, a mediator is the middle link in a chain of cause and effect: the thing a cause changes, which then produces the outcome.1Simply Psychology. Mediating Variable That makes it an answer to how or why something happens, not just whether it does.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples Knowing the middle step matters because it points to what you could change to stop or strengthen an effect. Showing that something truly is that middle step is harder than most headlines suggest.3PubMed Central. Assumptions Not Often Assessed or Satisfied in Published Mediation Analyses in Psychology and Psychiatry
The Mediator as a Chain of Cause and Effect
Researchers picture three parts: a cause (X), a middle variable (M), and an outcome (Y). X leads to M, and M leads to Y.4PubMed Central. Integrating Mediators and Moderators in Research Design If you blocked the middle link, much of the effect would disappear. In research language, the cause is often called the independent variable and the outcome the dependent variable.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples
Coffee is a handy case. The cup is the cause, alertness is the outcome, and the middle step is caffeine blocking tiredness signals in the brain. Switch to decaf and the alertness mostly goes, which shows caffeine was carrying the effect. When a news story says one thing “works through” or happens “because of” another, it is often claiming a mediator. Being related to both the cause and the outcome isn’t enough on its own, because other kinds of variables are too.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples4PubMed Central. Integrating Mediators and Moderators in Research Design
To spot a mediator question in a study or a class, ask whether it is about “how or why” rather than “does it.” Then check that the proposed middle step logically comes after the cause and before the outcome. Mediators are usually things that can change, like beliefs, habits, moods, or sleep. Fixed traits like age rarely make sense, because a cause can’t change them.
Researchers often test a mediator by asking what would happen if the middle step were held constant. If people’s anxiety stayed the same, would the cause still change their outcome? If the outcome barely moves once the middle step is held steady, that supports the idea that the effect travels through it. This is a thought experiment as much as a real one, since in most studies nobody can freeze a mood or belief in place.
The order of the links matters too. The cause has to change the mediator before the mediator can change the outcome. Reverse it and you tell a different story: poor sleep leading to stress, rather than stress leading to poor sleep. Both directions can be plausible in real life, so the claimed order has to be argued for, not assumed.
Real Examples of Mediators in Psychology
Stress is increasingly linked to a higher risk of heart disease.5PubMed. Perceived stress correlates with disturbed sleep: a link connecting stress and cardiovascular disease People under high stress tend to sleep less and sleep worse, and they feel it during the day.5PubMed. Perceived stress correlates with disturbed sleep: a link connecting stress and cardiovascular disease So poor sleep may be one of the steps by which stress harms the heart.5PubMed. Perceived stress correlates with disturbed sleep: a link connecting stress and cardiovascular disease Disturbed sleep is tied to metabolic problems that are known heart risks.6Nature Reviews Cardiology. Stress and sleep disturbance—a connection in CVD Still, this is a likely link that is being tested, not a proven chain.6Nature Reviews Cardiology. Stress and sleep disturbance—a connection in CVD
Leadership offers another case. In small and mid-sized businesses, how engaged employees felt carried the effect of leadership style onto their job performance.7Humanities and Social Sciences Communications. How do leadership styles influence employee engagement and performance in SMEs? Good leaders seem to raise performance largely by making people more engaged.
Depression treatment shows a mediator that didn’t hold up. Therapists have long assumed cognitive behavioural therapy eases depression by changing negative thinking. In one long-term study, both therapy and antidepressants reduced negative thinking and depression, yet the thinking changes didn’t explain the improvement.8Psychological Medicine. Cognitive change in cognitive-behavioural therapy v. pharmacotherapy for adult depression: a longitudinal mediation analysis Two things improving together doesn’t prove one caused the other; measuring both at several points shows which changes first.
Then there is pain and quality of life. In people with breast or prostate cancer, pain lowered quality of life mostly through a chain of anxiety, depression, and fatigue.9PubMed Central. Parallel and serial mediation analysis between pain, anxiety, depression, fatigue and nausea, vomiting and retching within a randomised controlled trial in patients with breast and prostate cancer About four-fifths of pain’s effect ran through those three steps.9PubMed Central. Parallel and serial mediation analysis between pain, anxiety, depression, fatigue and nausea, vomiting and retching within a randomised controlled trial in patients with breast and prostate cancer Because the share is large, those steps stand out as places where care could intervene.
A mediator is useful because it names a lever to pull. If sleep links stress and heart risk, protecting sleep during stressful periods is a reasonable target. If engagement drives performance, managers might focus on what makes work feel meaningful. And treating fatigue or anxiety in cancer patients may ease pain’s toll on daily life.
Mediator vs Moderator vs Confounder
A moderator changes the strength or direction of the link between cause and outcome.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples The link looks different at different levels of the moderator.4PubMed Central. Integrating Mediators and Moderators in Research Design But a moderator doesn’t carry the effect, so it isn’t part of the chain.4PubMed Central. Integrating Mediators and Moderators in Research Design
A confounder is something that causes both the supposed cause and the outcome.4PubMed Central. Integrating Mediators and Moderators in Research Design Ignoring it can make a link look real, or bigger than it is.4PubMed Central. Integrating Mediators and Moderators in Research Design Unlike a mediator it isn’t in the chain, and unlike a moderator it needn’t change the link’s strength.4PubMed Central. Integrating Mediators and Moderators in Research Design
- Mediator: explains how or why X leads to Y.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples
- Moderator: explains when, or for whom, the link is stronger.2Scribbr. Mediator vs. Moderator Variables | Differences & Examples
- Confounder: a third thing behind both X and Y.
- Overlap in clinical work: risk factors can also overlap or simply stand in for one another, adding more ways two factors relate.10PubMed. How do risk factors work together? Mediators, moderators, and independent, overlapping, and proxy risk factors
One scenario can hold all three roles. Say exercise improves mood. Better sleep from exercise would be a mediator. If the mood boost is bigger in winter, season is a moderator. If wealthier people both exercise more and feel happier, income is a confounder. The same variable can play different roles depending on the question asked.
In a news story, ask first what job the third variable is doing in the sentence: explaining the path, changing its strength, or offering a rival explanation. Words like “because of” or “through” point toward a mediator, while “especially among” or “only for” point toward a moderator. Phrases like “might just be explained by” or “after accounting for” point toward a possible confounder.
How Researchers Test for a Mediator
The best-known method, from 1986, runs a set of checks in sequence.11Portland State University. Testing Mediation with Regression Analysis The cause must predict the mediator, and the mediator must predict the outcome.12PubMed Central. Testing Mediation in Nursing Research: Beyond Baron and Kenny Then, once the mediator is accounted for, the cause’s own link to the outcome should shrink, ideally to zero.12PubMed Central. Testing Mediation in Nursing Research: Beyond Baron and Kenny
With stress, sleep, and heart risk, that looks like this. First, stress should predict sleep problems. Second, sleep problems should predict heart risk. Third, when sleep is accounted for, stress should show a smaller link to heart risk than it did alone. If all three hold, the pattern fits sleep as a mediator, but fitting the pattern is not the same as proving the cause.
Today the part of the effect that travels through the mediator is called the indirect effect, and the rest is the direct effect.13The Spanish Journal of Psychology. Mediation, Moderation, and Conditional Process Analysis: Concepts, Computations, and Some Common Confusions Modern guides focus on estimating the indirect effect itself instead of leaning on the old step-by-step checks.13The Spanish Journal of Psychology. Mediation, Moderation, and Conditional Process Analysis: Concepts, Computations, and Some Common Confusions The old method fell out of favour partly because it can miss real mediation when the overall effect looks small, and it relies on pass-or-fail tests instead of the size of the effect. Researchers usually estimate it by resampling the data thousands of times to see how reliable it is.14PubMed Central. Correcting the Bias Correction for the Bootstrap Confidence Interval in Mediation Analysis Newer causal methods define direct and indirect effects by asking what would happen to the same person under different conditions.15PubMed Central. An Introduction to Causal Mediation Analysis With a Comparison of 2 R Packages
In a textbook diagram, path a runs from cause to mediator, and path b runs from mediator to outcome. Path c’ is the cause’s leftover direct link. The indirect effect is roughly paths a and b combined.
Some studies go further and change the mediator directly, for example by improving sleep, and watch the outcome.16Journal of Experimental Social Psychology. Experimentally manipulating mediating processes: Why and how to examine mediation using statistical moderation analyses This gives stronger evidence that the middle link really causes the outcome.17PubMed Central. Design approaches to experimental mediation
Full vs Partial Mediation
Full mediation means the cause affects the outcome only through the mediator.18Advances in Methods and Practices in Psychological Science. On Partial Versus Full Mediation and the Importance of Effect Sizes Partial mediation means there is still a direct route as well.18Advances in Methods and Practices in Psychological Science. On Partial Versus Full Mediation and the Importance of Effect Sizes These labels depend heavily on sample size and pass-or-fail tests, so many experts now question them.18Advances in Methods and Practices in Psychological Science. On Partial Versus Full Mediation and the Importance of Effect Sizes They suggest reporting how big the effect through the mediator is instead.18Advances in Methods and Practices in Psychological Science. On Partial Versus Full Mediation and the Importance of Effect Sizes
Partial is the usual real-world result, because most behaviour has several causes and pathways. A leftover direct effect often just means other mediators weren’t measured. In the cancer example, the remaining fifth likely runs through other untested routes.
A “full mediation” label can mislead. It usually rests on a leftover direct effect failing to reach statistical significance, so a small study may miss an effect a bigger study would find.
A common mistake is to assume that no overall effect means no mediation is possible. Two pathways can cancel out, hiding a real indirect effect.
Why Many Mediator Claims Are Shaky
In psychology and psychiatry, only about 1 in 5 published mediation studies measured cause, mediator, and outcome in the right time order.3PubMed Central. Assumptions Not Often Assessed or Satisfied in Published Mediation Analyses in Psychology and Psychiatry Fewer than half accounted for hidden common causes along the chain.3PubMed Central. Assumptions Not Often Assessed or Satisfied in Published Mediation Analyses in Psychology and Psychiatry Without that, the middle link can’t safely be read as causal.19PubMed Central. Mediation analysis methods used in observational research: a scoping review and recommendations Measuring the mediator poorly tends to shrink its apparent role and inflate the direct effect.20PubMed Central. The role of measurement error and misclassification in mediation analysis
Timing is the first thing to check. A cause has to come before the mediator, and the mediator before the outcome, for the chain to make causal sense. If all three are measured at the same moment, the data can’t show which one moved first.
A hidden common cause threatens the middle link in a different way. Suppose ongoing financial strain affects both the supposed mediator and the outcome. They would then be linked even if the mediator does nothing to the outcome. Researchers can reduce this problem by measuring plausible hidden causes and accounting for them, but they can never rule out every possibility.
Better designs exist. Tracking people over several time points gives causes time to act and clarifies direction.21Research in Human Development. Mediation Models for Longitudinal Data in Developmental Research An international checklist now lists what a mediation report should include.22JAMA. A Guideline for Reporting Mediation Analyses of Randomized Trials and Observational Studies: The AGReMA Statement
When you read a claim, ask a few questions. Was the mediator measured after the cause and before the outcome? Was it a one-time survey? Did researchers consider a third thing behind both? Did anyone directly change the mediator in an experiment?
When Mediators Combine With Other Factors
When a moderator changes how strongly the mediator carries an effect, researchers call it moderated mediation.13The Spanish Journal of Psychology. Mediation, Moderation, and Conditional Process Analysis: Concepts, Computations, and Some Common Confusions A single number can now show whether the indirect effect grows or shrinks across groups.23PubMed. An Index and Test of Linear Moderated Mediation Sleep might carry stress’s effect on the heart more in older adults than younger ones, which would mean the chain matters most for some people. Splitting the sample into groups is a weaker check than modelling this directly.
Real outcomes tend to have several routes, so a study may test more than one mediator at once. Mediators can work side by side, each carrying a share of the effect, or one after another in a chain, as in pain leading to anxiety, then depression, then fatigue.9PubMed Central. Parallel and serial mediation analysis between pain, anxiety, depression, fatigue and nausea, vomiting and retching within a randomised controlled trial in patients with breast and prostate cancer Telling the two arrangements apart changes where an intervention would help most.

