Andrew Hayes's PROCESS macro is the standard tool for mediation, moderation and conditional process analysis in psychology, management and the social sciences. It normally runs inside SPSS, SAS or R. If you do not have an SPSS licence, or you are working on a laptop where you cannot install the macro, you can run the same models free in your browser.
In this guide
What PROCESS does
PROCESS estimates regression-based path models with a numbered template for each design. The most used models are:
| Model | What it tests | Example |
|---|---|---|
| 1 | Simple moderation | Does gender change the effect of workload on stress? |
| 4 | Simple or parallel mediation | Does engagement explain the effect of leadership on performance? |
| 6 | Serial mediation | Leadership → trust → engagement → performance |
| 7 | Moderated mediation (first stage) | Is the indirect effect stronger for younger employees? |
| 14 | Moderated mediation (second stage) | Does the mediator's effect on the outcome depend on a moderator? |
| 58, 59 | Moderation of both stages | Both paths depend on the moderator |
Running PROCESS online, step by step
- Prepare your data in Excel or Google Sheets with variable names in the first row, one row per respondent. Compute scale scores first (for example the mean of each construct's items).
- Paste or upload the data in the PROCESS online tool. Nothing is uploaded to a server; it runs in your browser.
- Choose the model number and assign X, Y, the mediator(s) M and moderator(s) W or Z, plus any covariates.
- Set the options: 5,000 bootstrap samples (the PROCESS default), mean-centering for moderation, and the confidence level.
- Read the output: path coefficients, the direct effect, the indirect effect with its bootstrap CI and, for moderated mediation, the index of moderated mediation. Copy the APA tables into Word.
Reading the key results
- Indirect effect (a × b): significant if the 95% bootstrap confidence interval does not include zero. PROCESS does not give a p-value for it, by design.
- Direct effect (c'): the effect of X on Y controlling for the mediator.
- Interaction term (moderation): if significant, probe it with simple slopes at low, average and high values of the moderator, and the Johnson-Neyman region.
- Index of moderated mediation: if its bootstrap CI excludes zero, the indirect effect depends on the moderator.
Example: Model 4
Transformational leadership (X) predicts engagement (M), a = 0.48, and engagement predicts performance (Y), b = 0.44. The indirect effect is ab = 0.21, 95% bootstrap CI [0.09, 0.35]. Because the interval excludes zero, engagement mediates the effect.
Mediation was tested with PROCESS Model 4 (Hayes, 2022) using 5,000 bootstrap samples. Transformational leadership predicted work engagement, b = 0.48, SE = 0.07, p < .001, which in turn predicted job performance, b = 0.44, SE = 0.08, p < .001. The indirect effect was significant, ab = 0.21, 95% CI [0.09, 0.35], and the direct effect remained significant, c′ = 0.19, p = .012, indicating partial mediation.
Are the results the same as SPSS PROCESS?
The regression estimates, standard errors and conditional effects use the same formulas as PROCESS and match its output. Bootstrap confidence intervals depend on random resampling, so they differ slightly from run to run in any software, including SPSS. Set a seed if you need exactly reproducible intervals, and report the number of bootstrap samples.
Cite Hayes's book for the method (Hayes, A. F. (2022). Introduction to mediation, moderation, and conditional process analysis (3rd ed.). Guilford Press) and cite the tool that ran the analysis, using the citation box on the tool page.
Related guides
- Mediation analysis with bootstrapping
- Moderation: simple slopes and Johnson-Neyman
- Moderated mediation tool and serial mediation tool
Frequently asked questions
Can I run the PROCESS macro without SPSS?
Yes. PROCESS is also available for SAS and R, and the free online PROCESS tool runs the same models in your browser with no installation or licence.
Which PROCESS models are available online?
Models 1 to 76 and custom models, including simple, parallel and serial mediation, moderation with one or two moderators, three-way interactions and moderated mediation.
How many bootstrap samples should I use?
5,000 is the PROCESS default and is widely accepted. Use 10,000 for final results if the confidence interval is close to zero.
Is my data safe?
Yes. The calculations run entirely in your browser; the data are not sent to a server or stored.


