Moderation analysis, explained with an example

A practical guide to moderation analysis: interaction terms, mean-centering, PROCESS Model 1, simple slopes, Johnson–Neyman, plots and APA 7 reporting.

By the Twin Statistics teamUpdated 2026-11-158 min read

Moderation analysis tests whether the effect of a predictor (X) on an outcome (Y) depends on a third variable, the moderator (W). You use it when your research question asks when, for whom or under what conditions a relationship holds. In practice, you add an interaction term (X × W) to a regression model and test it.

What moderation analysis is

A moderator changes the strength or direction of a relationship. For example, workload may raise burnout strongly for employees with little social support, and only weakly for those with a lot.

The basic moderation model is a multiple regression with a product term:

Y = b0 + b1X + b2W + b3XW + e

The coefficient b3 is the interaction. If b3 is significant, the slope of X on Y changes as W changes. The slope of X at any value of W is b1 + b3W.

Moderation versus mediation

A moderator is not a step in a causal chain. It sets the conditions under which X works. If your theory says X affects Y through another variable, read our mediation analysis guide instead.

Assumptions and requirements

Moderation uses ordinary regression, so the usual regression assumptions apply.

  • Linearity: the relationship between each predictor and Y is linear, at each level of W.
  • Independent observations: no clustering, or a model that accounts for it.
  • Homoscedasticity and roughly normal residuals: check a residuals-versus-fitted plot.
  • Reliable measures: measurement error in X or W weakens the interaction, which is already hard to detect.
  • Adequate power: interactions usually explain a small share of variance. Plan your sample size for a small R² change. Our G*Power sample size guide shows how.

W can be continuous (support scores) or categorical (gender, treatment group). A categorical W needs dummy coding, which PROCESS handles for you.

Mean-centering: what it actually does

Mean-centering means subtracting the mean from X and W before you form the product. Aiken and West (1991) recommended it, and many researchers still do it by default.

Its real purpose is interpretation. Without centering, b1 is the effect of X when W equals zero. If zero is not a meaningful score, such as on a 1–7 scale, b1 is not meaningful either. After centering, b1 is the effect of X at the average level of W.

Centering does not change the interaction coefficient b3, its standard error or its p value. It also does not fix a real collinearity problem. Echambadi and Hess (2007) show that the apparent drop in collinearity after centering leaves the substantive results unchanged. So center for interpretation, not as a statistical repair.

How to run moderation analysis

In SPSS with PROCESS (Model 1)

PROCESS is a free add-on by Andrew Hayes. Once installed, it appears in the Regression menu, or you can run it through syntax.

  1. Enter Y as the outcome, X as the predictor and W as the moderator.
  2. Choose Model number 1.
  3. In the options, choose to mean-center the variables used in the product terms.
  4. Ask for the Johnson–Neyman output and for the data to visualize the interaction.
  5. Choose the conditioning values for W: the mean and ±1 SD, or percentiles.

The equivalent syntax:

process y=burnout/x=workload/w=support/model=1/center=1/jn=1/plot=1/moments=1.

Here moments=1 asks for simple slopes at the mean and ±1 SD of W. Without it, recent PROCESS versions use the 16th, 50th and 84th percentiles.

Without PROCESS

You can also center X and W yourself, compute the product XW, and run a hierarchical regression. Enter X and W in block 1 and XW in block 2. The R² change for block 2 tests the interaction. In R, lm(burnout ~ workload * support, data = df) fits the same model.

Simple slopes and the Johnson–Neyman technique

A significant b3 tells you that the slope changes. It does not tell you where X matters. Two follow-up methods answer that.

Simple slopes (pick-a-point) test the effect of X at chosen values of W, usually low (−1 SD), average (mean) and high (+1 SD). This is the approach described by Aiken and West (1991).

The Johnson–Neyman technique (Johnson and Neyman, 1936) avoids arbitrary points. It finds the exact value or values of W where the effect of X crosses the p = .05 threshold. This gives a "region of significance" across the full range of W.

Plotting the interaction

Always plot the interaction. Draw three lines showing predicted Y across X, one for each chosen value of W. PROCESS prints the predicted values; you can paste them into Excel or R to draw the lines. In R, the interactions package offers interact_plot(), sim_slopes() and johnson_neyman().

How to interpret the output

Output elementWhat it tells youHow to read it
b3 (X × W)The interactionSignificant = the slope of X changes with W
R² change for X × WVariance added by the interactionSmall values (.01–.05) are common and can matter
b1 (after centering)Effect of X at the mean of WNot a "main effect" across all levels of W
Conditional effectsSlope of X at low, mean and high WShows where X is and is not related to Y
Johnson–Neyman pointValue of W where significance changesReport it and the % of the sample above or below it

Read the sign of b3 together with the plot. A negative b3 means the slope of X becomes weaker (or more negative) as W increases.

Worked example

Example (invented data): a researcher surveys 180 nurses. X is workload, W is perceived social support (SD = 1.5) and Y is burnout. Both predictors are mean-centered. PROCESS Model 1 gives:

PredictorBSEtp
Workload (X)0.340.065.67< .001
Social support (W)−0.250.07−3.57< .001
Workload × Support−0.120.04−3.00.003

The interaction adds 4% of explained variance, ΔR² = .04. The conditional effects of workload are:

Level of supportSlope of workloadp
Low (−1 SD)0.52< .001
Mean0.34< .001
High (+1 SD)0.16.060

Each slope equals 0.34 − 0.12 × W. Workload is strongly linked to burnout when support is low, and the link fades as support rises. In this example, the Johnson–Neyman output shows the effect stops being significant at about 1.2 points above the mean of support. Around 80% of the sample falls below that point.

Moderated mediation in brief

Moderation and mediation can be combined. In moderated mediation, a moderator changes the size of an indirect effect. PROCESS Model 7 lets W moderate the a path (X → M), and Model 14 lets W moderate the b path (M → Y). Hayes (2015) proposed the index of moderated mediation, tested with a bootstrap CI, as the formal test. Start with the mediation analysis guide if this is new to you.

How to report moderation in APA 7

Report the interaction coefficient, the R² change, the conditional effects and the Johnson–Neyman point if you used it. Include a figure of the interaction.

A moderation analysis was conducted using PROCESS Model 1 with mean-centered predictors. The interaction between workload and social support was significant, B = −0.12, SE = 0.04, t(176) = −3.00, p = .003, ΔR² = .04. Workload was positively related to burnout at low support, B = 0.52, p < .001, and at mean support, B = 0.34, p < .001, but not at high support, B = 0.16, p = .060.

Swap in your own variables and values from your output. For general formatting rules, see our APA results section guide.

Common mistakes

  • Testing moderation with separate subgroup analyses. Splitting the sample and comparing p values does not test the interaction.
  • Median splits on a continuous moderator. Dichotomizing throws away information and lowers power. Keep W continuous.
  • Interpreting b1 as a main effect. With an interaction in the model, b1 is a conditional effect at W = 0 (or the mean, if centered).
  • Believing centering fixes multicollinearity. It changes interpretation, not the interaction test.
  • Skipping the plot. A figure shows direction and shape far better than coefficients alone.
  • Reporting simple slopes outside your data. Check that low and high values of W actually occur in your sample.

FAQ

Do I have to mean-center my variables?

No. Centering only changes how you interpret b1 and b2. The interaction test is identical either way. Many supervisors expect it, though, and it makes lower-order coefficients easier to explain.

Should I report standardized or unstandardized coefficients?

Unstandardized coefficients are the norm in PROCESS output and keep the original units. Standardized coefficients for interaction terms need care, because the standardized product is not the product of standardized variables. If your field expects them, standardize X and W before forming the product.

What if the interaction is not significant?

Report it as non-significant with the coefficient, CI and p value. Do not go on to interpret simple slopes as if moderation were present. Consider whether your study had enough power to detect a small interaction.

Can the moderator be categorical?

Yes. A binary W, such as gender, works directly. With three or more categories, PROCESS can treat W as multicategorical and produces a separate interaction term for each contrast.

Which is better, simple slopes or Johnson–Neyman?

They answer slightly different questions, and many researchers report both. Simple slopes give concrete values that are easy to explain. Johnson–Neyman shows the full range where the effect is significant, without arbitrary cut points.

Get help with your moderation analysis

If your interaction is hard to interpret or your reviewers question your approach, our statistical consulting service can check your model, run the follow-up tests and explain the output in plain English. You keep full ownership of your interpretation and write-up.

Unsure whether you need moderation, mediation or both? Request a free methods check and we will tell you which analysis fits your research questions.

Need help with this analysis?

A statistician can run, check and explain it with you. Fixed quote before we start.