Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

What Is a Mediating Variable, and What Does It Mean to Say Something “Explains” a Relationship?

A mediating variable represents a proposed pathway through which one variable affects or relates to another. Finding an indirect effect can support a mediation model, but saying the mediator “explains” the relationship requires more than a significant statistical test.

103
Mediating Variables and Explanation Guide 103 of 223
01 · The Question

What Does It Really Mean When Researchers Say a Variable “Explains” a Relationship?

Research articles often contain statements such as “self-efficacy mediated the relationship between feedback and achievement” or “engagement explains why social support is associated with persistence.” These statements sound straightforward: X is related to Y, another variable M is introduced, and M apparently tells us why.

But the word explains carries considerable weight.

Does mediation mean that M is the reason X affects Y? Does the relationship between X and Y need to disappear once M is included? Is a statistically significant indirect effect enough to demonstrate a mechanism? Can researchers make the same claim when X, M, and Y were measured simultaneously?

A mediating variable is best understood as part of a proposed process linking an exposure or predictor to an outcome. Statistical mediation analysis can estimate quantities corresponding to that pathway. Whether those quantities establish a causal mechanism, however, depends on the design, temporal ordering, causal assumptions, measurement quality, and alternative explanations.

02 · The Short Answer

A Mediator Represents a Proposed Pathway Between X and Y

In Brief

A mediating variable is a variable through which some part of the relationship or causal effect of X on Y is proposed to operate: X changes M, and M subsequently contributes to Y.

When researchers say that M “explains” the X–Y relationship, they usually mean that an indirect pathway through M accounts for part of that relationship or effect. Statistical evidence for an indirect effect supports the proposed mediation model, but it does not by itself prove that M is the true causal mechanism.

03 · What You Need to Know

Mediation Is About a Pathway, Not Merely a Third Variable

The simplest mediation model is X → M → Y

In a simple mediation model, the researcher proposes a sequence:

X → M → Y

X is the exposure, intervention, predictor, or antecedent of interest. M is the proposed mediator. Y is the outcome.

Suppose a university introduces a formative-feedback intervention. Researchers theorize that the intervention increases students' academic self-efficacy and that increased self-efficacy subsequently improves persistence.

The proposed mechanism is:

Feedback intervention → Self-efficacy → Persistence

Self-efficacy is not merely another variable correlated with persistence. Its theoretical role is more specific: the intervention is proposed to change self-efficacy, which then contributes to the outcome.

Association with a third variable X, M, and Y happen to be statistically related.
Mediation M is proposed to occupy an intermediate position in the process connecting X to Y.

What are the a, b, c, and c′ paths?

Traditional notation for a simple mediation model commonly uses several paths.

  • a path: the relationship or effect of X on M;
  • b path: the relationship or effect of M on Y conditional on X;
  • c path: the total relationship or effect of X on Y;
  • c′ path: the direct relationship or effect of X on Y not operating through the specified mediator, under the assumptions of the model.

The indirect effect through M is commonly represented in a simple linear model as the product of the a and b paths.

Simple Indirect Effect
Indirect effect = a × b
a represents the X → M path and b represents the M → Y path conditional on X.
Suppose a feedback intervention increases self-efficacy by an estimated 0.50 units, and each one-unit increase in self-efficacy is associated with an estimated 0.40-unit increase in persistence under the specified model. The simple product is 0.50 × 0.40 = 0.20. This quantity represents the estimated indirect effect in that model; its causal interpretation still depends on the design and identification assumptions.

In simple linear settings without complications such as exposure–mediator interaction, the total effect can often be decomposed into direct and indirect components:

Total effect = Direct effect + Indirect effect

Modern causal mediation analysis allows more general definitions of direct and indirect effects and makes explicit that effect definition, identification, and statistical estimation are separate problems. The familiar path equations are therefore useful starting points, but they should not be mistaken for universal causal identities applicable without assumptions.

What does “indirect effect” actually mean?

The indirect effect represents the portion of the X–Y relationship or causal effect attributed, under the specified model, to the pathway through M.

Conceptually, the researcher is asking something like:

How much of the effect of X on Y operates through changes in M?

That question is inherently more demanding than asking whether X and M are correlated or whether M predicts Y.

To interpret the pathway causally, researchers need a defensible causal structure. They must consider whether important confounding exists for the exposure–outcome, exposure–mediator, or mediator–outcome relationships and whether the assumed temporal sequence is plausible.

This is why distinguishing a mediator from other third variables matters. A confounder, mediator, and moderator may all appear in the same dataset while requiring completely different treatment.

What does it mean to say the mediator “explains” the relationship?

In everyday research language, saying that M “explains” the relationship between X and Y usually means that the proposed pathway through M accounts for some portion of how X becomes related to Y.

That is useful shorthand, but it can easily become stronger than the evidence warrants.

There are at least two distinct meanings researchers may have in mind:

Statistical explanation The specified indirect pathway accounts for part of the modeled X–Y relationship.
Causal or mechanistic explanation Changes in X actually produce changes in M that subsequently produce changes in Y.

The second claim is much stronger.

A statistically estimated indirect effect does not automatically demonstrate that the proposed mediator is the real-world mechanism. Several causal structures can sometimes generate similar observed covariance patterns. Unmeasured common causes, reverse ordering, measurement problems, or alternative mediators may produce an apparently convincing statistical mediation pattern.

Thus, “M statistically mediated the association” and “M is the mechanism through which X causes Y” should not be treated as interchangeable conclusions.

Mediation is inherently directional

The arrows in X → M → Y are not decorative. They express a proposed sequence.

If self-efficacy mediates an intervention's effect on persistence, the theory implies that the intervention changes self-efficacy before the relevant change in persistence occurs.

This directionality is why mediation claims become difficult when all variables are measured at the same time. Cross-sectional covariance can show that X, M, and Y fit a particular statistical model, but it often cannot establish whether X preceded M, whether M preceded Y, or whether some reciprocal process generated the pattern.

If the theoretical direction itself is uncertain, researchers should first consider what to do when the direction of a relationship is unclear rather than forcing a mediation sequence because software can estimate it.

The mediator does not need to make the X–Y relationship disappear

An enduring misconception is that mediation exists only if the relationship between X and Y becomes nonsignificant after M is introduced.

That is not a general requirement.

Historically influential causal-steps procedures encouraged researchers to examine a sequence of significance tests involving X, M, and Y. Contemporary mediation analysis generally places greater emphasis on directly estimating the indirect effect and its uncertainty.

A meaningful indirect effect can exist even when the total X–Y effect is small or not statistically distinguishable from zero. Multiple pathways can operate in different directions, and direct and indirect components may offset one another.

Watch Out

Do not define mediation as “X was significant before adding M and became nonsignificant afterward.” Changes in statistical significance are not themselves evidence that a causal process has been identified.

“Full mediation” and “partial mediation” can be misleading shorthand

Researchers have often described mediation as full when the estimated direct X–Y relationship becomes nonsignificant after accounting for M and partial when a residual direct relationship remains.

These labels can encourage overinterpretation.

A nonsignificant direct effect does not demonstrate that the mediator captures the entire causal process. The estimate may be imprecise, other mediators may remain unmeasured, direct and indirect pathways may cancel one another, or the study may simply lack power to detect the remaining direct effect.

It is generally more informative to report and interpret the estimated indirect effect, direct effect, total effect where appropriate, their uncertainty, and the assumptions required for causal interpretation.

A mediator and a confounder differ by causal position

Suppose socioeconomic resources are associated with access to educational technology and with academic performance. If those resources precede both exposure and outcome and distort the exposure–outcome comparison, they may function as a confounder.

Now suppose technology access increases opportunities for deliberate practice, and practice subsequently improves academic performance. Practice may be a mediator.

Both variables may correlate with the exposure and outcome. Yet adjusting for them has different implications.

Appropriately addressing a confounder may be necessary to estimate a causal effect. Adjusting for a mediator while estimating a total effect can remove part of the very pathway through which the exposure operates.

This is why a variable should not be classified according to whether its inclusion makes a coefficient smaller. Researchers should instead determine whether the variable is a confounder or mediator in the specific causal question.

Mediation analysis requires assumptions about confounding too

Researchers sometimes imagine mediation analysis as a way to “go beyond” confounding once the exposure–outcome relationship has been adjusted. In reality, mediation introduces additional causal relationships that may themselves be confounded.

A causal mediation analysis may require assumptions concerning confounding of:

  • the exposure–outcome relationship;
  • the exposure–mediator relationship;
  • the mediator–outcome relationship.

The mediator–outcome relationship is particularly challenging because the mediator is usually not randomized. Even if X is randomized, individuals are not generally randomized to their naturally occurring mediator values.

Randomization of X therefore strengthens causal inference about the exposure but does not automatically remove all assumptions required for a causal interpretation of mediation.

Randomized X does not automatically make the mediator causal

Suppose students are randomly assigned to an instructional intervention or control condition. The intervention later changes motivation, and motivation is associated with achievement.

Random assignment provides strong protection against baseline confounding of the intervention itself. But motivation was not necessarily randomized.

Students who develop greater motivation may also differ in unmeasured ways that affect achievement. If those differences confound the mediator–outcome relationship, the estimated indirect pathway may still be biased.

This does not make mediation analysis useless. It means that claims about mechanisms require assumptions beyond those needed merely to establish that the randomized intervention changed the outcome.

Cross-sectional mediation deserves especially cautious interpretation

Many mediation studies use a single survey in which X, M, and Y are measured at approximately the same time. Statistical software can estimate an indirect effect from such data, but temporal interpretation is difficult.

Suppose a survey finds:

Academic stress → Self-efficacy → Academic engagement

If all three constructs were measured simultaneously, several alternatives remain plausible. Stress may affect self-efficacy, but self-efficacy may also affect perceived stress. Engagement may influence self-efficacy. Earlier experiences may shape all three. Reciprocal effects may also occur.

A cross-sectional mediation model therefore provides limited evidence that the proposed sequence unfolded over time.

When theory suggests that variables may influence each other reciprocally, a unidirectional mediation model may be an oversimplification.

A longitudinal design can help, but timing must match the process

Measuring X at Time 1, M at Time 2, and Y at Time 3 can provide more credible temporal information than measuring all three simultaneously. Yet merely having three waves does not guarantee valid causal mediation.

The measurement intervals should correspond reasonably to the process being studied. Some mediators may change within minutes; others may evolve over semesters or years.

Researchers should also consider stability in the constructs, prior levels of the mediator and outcome, attrition, time-varying confounding, and whether meaningful changes could have occurred between measurement occasions.

The design should represent the hypothesized mechanism rather than merely satisfy a visual pattern of Time 1 → Time 2 → Time 3.

There can be more than one mediator

Real processes frequently operate through multiple pathways.

An educational intervention might improve achievement because it increases practice, strengthens self-efficacy, improves feedback quality, or changes several processes simultaneously.

Researchers may therefore consider multiple mediators, including parallel mediators or sequential mediators. Such models can be theoretically informative, but every added pathway introduces additional assumptions and interpretation challenges.

A complex model should not be treated as automatically superior. Sometimes adding more variables merely gives the diagram more arrows to admire, a temptation familiar to anyone who has survived enough structural equation modeling presentations.

The broader principle is that researchers should justify which variables actually belong in the study rather than adding every plausible mediator available in the questionnaire.

A moderator answers a different question

Mediation asks how an effect or relationship operates. Moderation asks whether that effect or relationship differs across conditions.

Suppose an intervention increases self-efficacy, which subsequently improves achievement. Self-efficacy is a mediator.

If the intervention is more effective among students with low prior knowledge than among those with high prior knowledge, prior knowledge is a moderator.

The distinction between a mediator and a moderator therefore rests on the theoretical question rather than on which variable appears third in the dataset.

Mediation can itself be conditional

The process represented by mediation does not always operate equally for everyone.

Imagine that an intervention improves self-efficacy, which improves persistence, but the self-efficacy pathway is much stronger for first-year students than for graduating students.

The indirect effect now depends on another variable. This combines mediation and moderation and is often described as moderated mediation or studied within conditional process analysis.

The existence of such models reinforces an important point: mediation and moderation are not competing labels for “third variables.” They represent different questions that can even coexist within a single theoretical model.

“Explained percentage” should be interpreted carefully

Researchers sometimes report the proportion or percentage of an effect that is mediated. Such summaries can appear intuitively attractive: perhaps 30% of an intervention effect is said to operate through motivation.

However, proportions mediated can be unstable or difficult to interpret in some situations, particularly when direct and indirect effects have different signs, the total effect is close to zero, nonlinear models are used, or exposure–mediator interactions are present.

A percentage can therefore create an impression of mechanistic precision that the study may not actually support.

When reporting mediation, researchers should generally prioritize clearly defined direct and indirect effect estimates, uncertainty intervals, the causal assumptions underlying those estimates, and substantive interpretation.

A statistically significant indirect effect is evidence, not a mechanistic verdict

Suppose an indirect-effect confidence interval excludes zero. That is evidence that the data are inconsistent with a zero indirect effect under the specified model and inferential procedure.

It does not demonstrate that:

  • the proposed mediator is the only mechanism;
  • the causal direction is correct;
  • all relevant confounding has been eliminated;
  • the mediator was measured without consequential error;
  • changing the mediator experimentally would necessarily change the outcome by the estimated amount.

Statistical mediation is therefore one part of a mechanistic argument rather than a substitute for that argument.

04 · A Practical Example

From “It Works” to “How Might It Work?”

Hypothetical Example

Formative feedback, self-efficacy, and writing performance

Researchers conduct a randomized study in which university students receive either an enhanced formative-feedback intervention or standard feedback. Writing performance is measured later. Students receiving enhanced feedback perform better on average. The researchers hypothesize that the intervention works partly because it strengthens writing self-efficacy.

Total-effect question Does assignment to enhanced feedback change later writing performance compared with standard feedback?
a path Does assignment to enhanced feedback change writing self-efficacy?
b path Is variation in writing self-efficacy related to later writing performance after accounting for intervention assignment, under the mediation model?
Indirect-effect question How much of the intervention effect is estimated to operate through changes in writing self-efficacy?
Interpretation Evidence for an indirect effect would be consistent with self-efficacy playing a mediating role, but stronger mechanistic language would still require defensible assumptions concerning the self-efficacy–performance relationship and the temporal process.

Suppose the estimated total effect of the intervention is 5 points on the writing assessment, and the estimated indirect effect through self-efficacy is 2 points.

A cautious interpretation might be that the results are consistent with part of the intervention's effect operating through self-efficacy, under the assumptions of the mediation model.

A much stronger statement such as “self-efficacy is the reason the intervention works” would claim more. Other mechanisms could also contribute to the effect, and the causal mediator–outcome relationship may require assumptions not guaranteed by randomization of the intervention.

The word “explains” should therefore be calibrated to the evidence.

05 · What Researchers Often Get Wrong

Common Misinterpretations of Mediation and “Explanation”

Misconception

The X–Y relationship must be significant before mediation can be tested

Not generally. An indirect effect can exist even when the total effect is small or statistically nonsignificant. Opposing pathways may cancel one another, and the indirect effect is itself the quantity relevant to the mediation hypothesis.

Misconception

Mediation is proven when X becomes nonsignificant after adding M

No. A change in the p-value for X does not establish a mechanism. Contemporary mediation analysis generally focuses on estimating the indirect effect directly rather than defining mediation through a sequence of significance tests.

Misconception

A significant indirect effect proves that M causes Y

A statistically supported indirect effect is compatible with the proposed mediation model, but causal interpretation requires assumptions about confounding, temporal ordering, measurement, and model specification. The statistical test does not prove those assumptions.

Misconception

Randomizing X solves every causal problem in mediation

Randomization can strongly support inference about X, but the mediator is generally not randomized. Confounding of the mediator–outcome relationship may remain, so causal claims about the mediation pathway require additional assumptions.

Misconception

Cross-sectional mediation demonstrates a temporal mechanism

Simultaneously measured variables generally provide limited evidence about whether X changed M before M changed Y. The data may fit a mediation model while remaining compatible with alternative directions or common causes.

Misconception

“Full mediation” means the entire mechanism has been discovered

No. Failure to detect a remaining direct effect does not establish that no other pathways exist. The direct effect may be estimated imprecisely, additional mediators may be unmeasured, or offsetting pathways may complicate the decomposition.

Misconception

The mediator is whatever variable makes the model explain more variance

Predictive improvement is not the definition of mediation. A mediator must have a theoretically justified intermediate role in the proposed process from X to Y. A variable can improve model fit or prediction without being a mediator.

06 · What This Means for You

Use Mediation When You Have a Process to Explain, Not Merely an Extra Variable

Before conducting mediation analysis, write the proposed process in ordinary language. If you cannot explain why X should change M and why changes in M should subsequently affect Y, the problem may not yet be a mediation question.

A simple decision framework

If your question is only whether X and Y are related
An associational analysis may be sufficient; do not introduce mediation merely to make the model more elaborate.
If your theory proposes that X changes M and M subsequently contributes to Y
A mediation model may be appropriate, provided the design and assumptions can support the intended interpretation.
If you want to claim that M explains why X causes Y
Evaluate whether temporal ordering, confounding assumptions, measurement, and competing mechanisms make that causal explanation defensible.
If the X–Y relationship instead changes according to M
You may be asking a moderation question rather than a mediation question.

The language used in the manuscript should match this distinction. “The indirect effect through M was estimated as…” is narrower than “M explains why X causes Y.” The latter may be appropriate in a strong causal design with well-supported assumptions, but it should not be the automatic translation of a mediation output table.

Similarly, do not add candidate mediators simply because they have been used before. Whether a construct belongs in the model should follow from the research question and a defensible account of why that relationship belongs in the conceptual framework.

07 · A Quick Checklist

Before Claiming That a Variable Mediates or Explains a Relationship, Check This

Before interpreting a mediation model, check:
State the proposed X → M → Y process in substantive terms before examining statistical output.
Justify why X should precede M and why M should precede Y.
Estimate the indirect effect directly rather than defining mediation through changes in statistical significance.
Distinguish the total, direct, and indirect effects relevant to the research question.
Consider confounding of the exposure–outcome, exposure–mediator, and mediator–outcome relationships where relevant.
Do not assume randomization of X automatically identifies the causal effect of M on Y.
Treat cross-sectional mediation cautiously when temporal ordering cannot be established.
Avoid interpreting a nonsignificant direct effect as proof that the mediator captures the entire mechanism.
Use “explains” only at the level of causal or statistical explanation that the design can genuinely support.
08 · Frequently Asked Questions

Frequently Asked Questions About Mediating Variables

What is a mediating variable in simple terms?

A mediating variable is proposed to sit between X and Y in a process. X changes the mediator, and the mediator subsequently contributes to Y. It therefore represents a pathway through which some part of an effect or relationship may operate.

Does a mediator explain the relationship between X and Y?

It can explain part of the relationship within the specified mediation model. A stronger claim that the mediator is the actual causal mechanism requires evidence and assumptions beyond a statistically significant indirect effect.

Does X have to significantly predict Y before I test mediation?

No. A statistically significant total X–Y effect is not generally required before examining an indirect effect. Direct and indirect pathways can differ in magnitude or direction, making the total effect small even when an indirect pathway exists.

What is the difference between a direct and indirect effect?

The indirect effect concerns the pathway from X through the specified mediator to Y. The direct effect concerns the component of the X–Y effect not operating through that mediator under the relevant causal definitions and assumptions. Their exact interpretation depends on the mediation framework being used.

Can I have more than one mediator?

Yes. Studies may propose multiple parallel or sequential mediators when theory suggests several mechanisms. More complicated models require stronger justification, however, because each additional pathway introduces assumptions and potential alternative explanations.

Can I use cross-sectional data for mediation?

You can estimate statistical indirect effects from cross-sectional data, but evidence for the temporal and causal process implied by mediation is limited when X, M, and Y are measured simultaneously. Conclusions should reflect that limitation.

What does “full mediation” mean?

The term has often been used when an estimated direct effect is no longer statistically significant after accounting for a mediator. It should not be interpreted as proof that the entire causal mechanism has been discovered. Reporting direct and indirect effect estimates with uncertainty is usually more informative.

Can a variable be a mediator in one study and something else in another?

Yes. Variable roles depend on the research question and causal structure. The same construct could be a mediator in one study, moderator in another, confounder in another, or the primary exposure or outcome elsewhere.

09 · The Bottom Line

Mediation Can Clarify a Pathway, but “Explanation” Requires More Than a Significant Indirect Effect

The Bottom Line

A mediating variable represents a proposed pathway through which X affects or relates to Y, and the indirect effect quantifies the portion of that relationship assigned to the pathway through the mediator under the specified model.

Finding an indirect effect can support a mediation hypothesis, but it does not automatically prove that the mediator is the causal mechanism. Strong claims that a mediator “explains” a relationship should be supported by appropriate temporal ordering, causal assumptions, measurement, design, and consideration of plausible alternative pathways.

10 · Sources and Further Reading

Sources and Further Reading

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes