These two terms trip up more MS and MPhil students than almost any other concept in research methodology โ partly because they sound similar, and partly because both involve a "third variable" affecting a relationship between two others. But they answer completely different questions.
| Mediation | Moderation |
|---|---|
| Explains HOW or WHY X affects Y | Explains WHEN or FOR WHOM X affects Y more or less strongly |
| The mediator sits between X and Y in the causal chain | The moderator doesn't sit between X and Y โ it changes the strength of their relationship |
A mediator is a variable that explains the mechanism connecting your independent variable (X) to your dependent variable (Y). Instead of X directly causing Y, X causes the mediator, and the mediator causes Y. In effect, the mediator is a middle step in the causal story.
A moderator is a variable that changes the strength or direction of the relationship between X and Y, without being part of the causal chain between them. It answers: does this relationship hold equally for everyone, or is it stronger (or weaker, or even reversed) under certain conditions?
| Mediation | Moderation | |
|---|---|---|
| Research question type | Mechanism / process | Boundary condition / interaction |
| Typical statistical test | Indirect effect testing (e.g. Sobel test, bootstrapping) | Interaction term in regression |
| What changes | The pathway explaining the effect | The size/direction of the effect itself |
| Common phrasing in a hypothesis | "X affects Y through [mediator]" | "The effect of X on Y depends on [moderator]" |
Ask yourself: does this third variable come after X and before Y in a plausible causal sequence? If yes, you're likely dealing with a mediator. Does this third variable instead describe a characteristic of the situation or the people that changes how strongly X and Y relate to each other, without being caused by X itself? If yes, you're likely dealing with a moderator. If you're still unsure, go back to your theoretical framework โ the mediation/moderation distinction should come from your theory, not from whichever one is easier to test statistically.
Related: Correlation vs Regression ยท What Does p-value Mean ยท Independent vs Dependent Variables ยท Scholar's Corner overview