Skip to content

Mediation and moderation analysis online

Mediation is supported when the bootstrap confidence interval of the indirect effect a × b excludes zero, with no need for a significant total effect first (Zhao, Lynch & Chen, 2010). Upload your survey, pick X, M, W, Y and covariates, and get PROCESS-style OLS estimates (Models 4, 6, 1, 7), percentile bootstrap intervals, interaction and Johnson–Neyman plots, and a ready-to-edit Results section you can download as Word.

  1. Upload an Excel or CSV file (or try the sample data)
  2. Choose the model and the X, M, W, Y variables
  3. Run 5,000 bootstrap samples and download the write-up
1. Load your survey data
One row per respondent. Name items with a construct code plus a number (CL1, CL2, HL1…) so the tool can average each construct. Other columns such as age, income or gender (coded 0/1 or two text labels) can serve as covariates or moderators. Your data are processed in the browser and never uploaded to a server.

Send to your study group

When the whole group uses one tool, your numbers match when you merge chapters.

Was this tool useful? Feedback / report a bug (by email; please do not paste real data).

Which PROCESS model do you need?

Fix your hypotheses before you run anything; do not try every combination of X, M and W and keep whichever is significant.

How to use it

  1. Upload an Excel or CSV file with one row per respondent. Name items with a construct code plus a number (CL1, CL2…); the tool scores each construct as the mean of its items. Drop the items you removed after Cronbach's alpha and EFA, and list any reverse-worded items.
  2. Choose the model, X, Y, the mediators, the moderator and any covariates. Covariates enter every equation, as in PROCESS by default.
  3. Keep 5,000 bootstrap samples and note the seed. The same data and the same seed give the same results to the last digit. The bootstrap runs in the background, so the page does not freeze.
  4. Download the Word file with tables, figures (PNG) and interpretation; set the section, table and figure numbers to match your chapter.

Responses with a missing value on any model variable are dropped listwise, as in PROCESS.

Reading mediation results

Judge mediation by the bootstrap confidence interval of the indirect effect a × b: if the interval excludes zero, there is an indirect effect. You do not need a significant total effect c first, nor the Baron and Kenny (1986) causal steps (Zhao, Lynch & Chen, 2010; Hayes, 2022). The tool classifies the result following Zhao et al. (2010):

The Sobel (1982) test is printed for reference only: it assumes a × b is normally distributed and is less powerful than the bootstrap. The completely standardised indirect effect (ab × SDX/SDY) helps compare sizes; when X is binary only the partially standardised version (ab/SDY) is reported.

Reading moderation results

Moderation is supported when the coefficient of the product term X × W is significant, which is equivalent to the F test of ΔR² when the product is added. Then probe the interaction in two ways:

Mean-centring X and W changes neither the interaction coefficient nor the conclusion about moderation; it only makes the coefficient of X easier to read (the effect of X at average W). For Model 7, rely on the index of moderated mediation: if its interval includes zero, do not claim moderation just because the indirect effect is significant at high W but not at low W (Hayes, 2015).

Worked example: quality → satisfaction → loyalty

We used the mobile-phone customer dataset (250 customers, 1–10 scales) from our verification page. Each construct is the mean of its items: X = perceived quality (PERQ1–7), M = satisfaction (CUSA1–3), Y = loyalty (CUSL1–3), simple mediation (Hayes, Model 4). Results from Python (statsmodels), 5,000 bootstrap samples:

The indirect effect is significant and the direct effect is not, so under Zhao et al. (2010) this is indirect-only mediation (often called full mediation). Your bootstrap interval may differ by a few thousandths because resampling is random.

How to report it in APA 7

A bootstrap test with 5,000 resamples showed a significant indirect effect of perceived quality on loyalty through satisfaction, ab = 0.607, 95% CI [0.411, 0.819]. The direct effect was not significant, c′ = 0.016, p = .894, indicating indirect-only (full) mediation (Zhao et al., 2010).

In your Method section, state the number of bootstrap samples, the type of confidence interval, and that construct scores are item means. Cite Hayes (2022) for the PROCESS models, and the tool as software if your department asks for it.

Assumptions and limits

FAQ

What is the difference between a mediator and a moderator?

A mediator (M) sits on the causal path: X affects M, and M affects Y. A moderator (W) is not on that path; it changes the strength or direction of the X → Y effect. In a research model diagram, a mediator is a box between two arrows, while a moderator is an arrow pointing at another arrow.

Do I need to install the PROCESS macro in SPSS?

Not to use this tool: the calculations run in your browser with the same OLS estimation as PROCESS Models 4, 6, 1 and 7. If your department requires SPSS output, you can still use the tool to check your model first, then run PROCESS with the same variables and the same number of bootstrap samples.

When can I conclude there is mediation?

When the bootstrap confidence interval of the indirect effect (a × b) excludes zero. Whether the direct effect c′ remains significant only tells you which type of mediation you have; it is not a condition for mediation (Zhao et al., 2010).

How many responses do I need to test moderation?

Interactions need larger samples than main effects. Plan ahead with the sample size calculator (moderation section) and see the cut-offs on our thresholds page (in Vietnamese).

Verification

An automated test suite compares the tool with an independent Python/numpy implementation in 10 scenarios: coefficients, standard errors, p values, R², ΔR² and Sobel tests agree to 7–8 digits; at the Johnson–Neyman point p is exactly .05; bootstrap intervals match exactly with the same resampling sequence and fall within Monte Carlo error with a different random number generator. On the published mtcars dataset (Henderson & Velleman, 1981), the coefficients of mpg = hp × wt match R's lm: 49.808, −0.120, −8.217, 0.028 (R² = .885).

References

One of the free research tools of Research Corner.