How to test and interpret moderation in regression
A regression interaction allows the association between a predictor and outcome to vary with another variable. To interpret it, define the moderator and scale, estimate the product term with its component terms, and report conditional slopes or contrasts at meaningful values. Compare the slopes directly rather than comparing which p values cross a threshold.

Specify the association and where you expect it to change
Suppose a study asks whether the relationship between review time and revision score differs by access to mentoring. Review time is the predictor, mentoring is a possible moderator and revision score is the outcome. The interaction asks whether the review-time slope differs between the mentoring groups. It does not establish that mentoring caused the difference unless the design and assumptions support that claim.
Choose the interpretation scale before fitting the model. The example below uses a linear regression with a continuous outcome. In a logistic model the product term is on the log-odds scale, and a probability-scale interaction needs its own calculation. State which scale answers the question. Use predictions or contrasts appropriate to that scale.
Include the variables that make up the interaction
For a linear model with predictor X and moderator Z, include X, Z and X multiplied by Z. The coefficient for X is its slope when Z equals zero. The coefficient for Z describes its association at X equal to zero. The coefficient on the product is the change in the X slope for a one-unit increase in Z. A coefficient table without the units, reference values and coding makes these quantities hard to interpret. Brambor and colleagues describe the role of these component terms and the need to compute conditional effects and uncertainty.
A meaningful zero makes the report easier to read. If the moderator is continuous, centring on a substantive reference value changes the interpretation of the component coefficients in this linear model. It does not change the fitted values or solve poor support for the model. If the moderator is a category, name the reference level and explain how additional categories are represented.
Calculate conditional slopes in a worked example
Suppose a fictional model predicts revision score from review hours centred at two hours and a mentoring indicator. Let Z = 0 represent no mentoring and Z = 1 represent mentoring. The model intercept is 60, the coefficient for hours is 2, the coefficient for mentoring is 3, and the interaction coefficient is −1.2. These are illustrative coefficients, not estimates from a study.
| Quantity | Calculation | Value |
|---|---|---|
| Slope without mentoring | 2 + (−1.2 × 0) | 2.0 points per hour |
| Slope with mentoring | 2 + (−1.2 × 1) | 0.8 points per hour |
| Difference in slopes | 0.8 − 2.0 | −1.2 points per hour |
| Predicted score without mentoring at two hours | 60 + (2 × 0) | 60 points |
| Predicted score with mentoring at two hours | 60 + 3 + (0.8 × 0) | 63 points |
At four actual hours, the centred value is two. The predicted scores become 64.0 and 64.6. The mentoring contrast therefore changes from three points at two hours to 0.6 points at four hours. This illustrates how the same interaction can be described as a difference between slopes or as a contrast that changes with the predictor. It says nothing about uncertainty by itself.
Quantify uncertainty using the fitted model
For a conditional slope at a specified moderator value, use the coefficient covariance matrix or the software’s appropriate contrast routine. The uncertainty depends on the variance of both component estimates and their covariance. Adding two separate standard errors is incorrect. Use methods that match the sampling structure, including clustering where applicable.
For example, suppose the fictional estimates for the hours coefficient and the interaction have variances of 0.16 and 0.25 with covariance −0.05. At Z = 1, the slope variance is 0.16 + 0.25 + 2 × (−0.05) = 0.31. Its standard error is about 0.56. A confidence interval would then require the appropriate critical value for the fitted model and design.
Report the interaction estimate and interval directly. One slope being statistically significant and another failing to reach significance does not establish a difference. Gelman and Stern explain why comparing significance labels gives a different answer from testing the difference. If reporting several contrasts, distinguish planned questions from exploration and define any comparison family used for inference.
Report the contrast on the scale readers can use
If the moderator is mean-centred, say what zero and one unit represent on its original scale. For example, if a resources score has a mean of 4 and is centred without rescaling, Z = 1 represents an original score of 5. The corresponding conditional slope describes the association per unit of review hours at that resource value. It does not describe the effect of giving participants more resources.
In the results, give the fitted slope, its interval and the original moderator value together. For a plot, distinguish intervals for the fitted mean from intervals for new observations. Check how many observations inform each part of the moderator range and avoid drawing conclusions about combinations of review hours and resources that are scarcely observed.
Probe only values that are meaningful and supported
For a continuous moderator, select values that reflect the question and the observed range. Inspect whether the data support comparisons across those values. A conditional slope at a plausible value of the moderator may still depend on extrapolation if combinations of predictor and moderator are rare. Display predictions with uncertainty and, where useful, show the observed support. A curved relationship or omitted group structure can change the interpretation of a simple product term.
Explain what the interaction adds to the main finding. Report the scales, coding, model specification, planned contrasts and relevant uncertainty. Describe how the association varies and avoid presenting a model pattern as a universal effect.
For feedback on a moderation specification, contrast or interpretation, see research data analysis support, Talk to a Labeeb Expert or send a project enquiry. You retain responsibility for the analysis and authorship.
Sources
Brambor, Clark and Golder (2006), interaction models · Gelman and Stern (2006), comparing significance.
Common method bias: how to assess the risk and report what you did
Higher-order constructs in CFA and PLS-SEM: when to use them and what to report
Mediation analysis in a dissertation: indirect effects, bootstrapping and reporting
HTMT versus Fornell–Larcker: what to report when the checks disagree