Skip to main content
v2026.11,986 entries · CC-BY 4.0

SPSS PROCESS Macro: Install, Run and Read the Output

Install Hayes’s PROCESS macro in SPSS, run model 4 with syntax, read the output in order and fix common errors from the official FAQ.

Written and maintained by CASRAI Editorial Board

Published

On this page

The PROCESS macro is Andrew F. Hayes’s free add-on for SPSS Statistics that fits regression-based mediation, moderation and conditional process models from a single command. You download it from afhayes.com, run its process.sps file in SPSS (or install the optional custom dialog under Analyze > Regression), then call it with syntax such as process y = opinion /x = detail /m = feeling /model = 4 /seed = 30802022. Hayes’s download page lists version 5.1 as current and says it needs SPSS 26 or later.

What the SPSS PROCESS macro is used for in research

PROCESS estimates models in which one variable (X) affects an outcome (Y) directly, through one or more mediators (M), or differently depending on moderators (W, Z). Researchers use it because the macro numbers its models (model 4 is simple mediation, for example) so that the specification in a methods section can be matched to a published template. The same tool is called the PROCESS macro for SPSS, the SPSS macro PROCESS or the Hayes PROCESS macro; these are one program, distributed by Hayes as a zip file with versions for SPSS, SAS and R.

The statistical background lives in other CASRAI pages. Mediation analysis methods and reporting explains indirect effects, moderation analysis and interaction terms covers conditional effects, and PROCESS macro model numbers and reporting is the lookup for which model number to choose. This page covers the part those pages do not: getting the macro into SPSS, running it, reading what comes out and fixing the common failures.

What PROCESS can and cannot take as input

In the UCLA Office of Advanced Research Computing seminar on PROCESS (written for version 4.0), the outcome Y can be continuous or binary, the predictor X can be continuous, binary or multicategorical, mediators must be continuous, and covariates can be continuous or binary. Hayes’s FAQ adds that PROCESS requires complete data: it has no internal handling of missing values other than listwise deletion, and it does not integrate with the multiple imputation routines built into SPSS or SAS. If a data file is tagged as derived from multiple imputation, the macro will not analyse it.

How to install or access the PROCESS macro in SPSS

Download the zip from the official page, afhayes.com/download.html. The page names the current file as processv51.zip (version 5.1, released October 2026 according to the page), states that PROCESS for SPSS works on Windows and Mac, and states that the latest release requires SPSS version 26 or later. Versions 2, 3 and 4 are, in the page’s words, no longer available or supported, and Hayes advises always using the most current release.

Two licence terms matter to research groups and teaching staff. The software is copyrighted and free to use, but modified copies may not be distributed and commercial use needs authorization. It must not be posted on a public web page or server; Hayes asks that people be pointed to afhayes.com instead. So a lab wiki should link to the download page rather than host the file.

Installing is optional: the syntax route and the dialog route

Hayes’s PROCESS FAQ states that the macro can be run as a syntax-driven macro and that it must be activated before a PROCESS command is run. It also says that running the PROCESS syntax does not produce a dialog box or install one anywhere in SPSS. SPSS users who want a drop-down menu can additionally install the custom dialog file, but the FAQ’s advice is that if the menu will not install, you can always run PROCESS through command syntax.

The menu is also the less complete route. The UCLA seminar, which covers the version 4.0 dialog, gives the menu path as Analyze > Regression > PROCESS v4.0 by Andrew F. Hayes, and the custom dialog persists between SPSS sessions. Syntax is what a methods section can cite and what another researcher can rerun, which is why reproducible SPSS syntax is the better default.

Installing the custom dialog

IBM’s documentation for custom dialogs (the version 24 documentation page) gives the menu route for installing a dialog file: Extensions > Utilities > Install Custom Dialog (Compatibility mode)… Reinstalling an existing dialog replaces the existing version. On Windows 7 and later and on Mac, dialogs install to a general user-writable location, which you can see by running SHOW EXTPATHS. If you have no write access, or want a custom location, IBM says to set the SPSS_CDIALOGS_PATH environment variable, which installs to the first writable location, and to restart SPSS afterwards. Hayes’s FAQ separately lists failing to install as an administrator, which is needed for write permission, as a common Windows problem.

The UCLA seminar’s own installation steps are: download and unzip the file, read the PDF on installing the PROCESS custom dialog that comes with the download, then open and run the process.sps file. The seminar notes that process.sps has to be run again each time you open SPSS and want to use the macro in syntax.

Loading the macro automatically

The FAQ describes saving PROCESS.sps in a fixed folder and calling it with an INSERT statement at the top of the syntax file, for example INSERT FILE = 'c:macrosprocess.sps'. Because the macro is then loaded by the program itself, the syntax file runs from top to bottom without a manual step, which matters when a colleague reruns your analysis on another machine.

How to run the PROCESS macro in SPSS step by step

The steps below follow the command pattern documented in the UCLA seminar (version 4.0) and Hayes’s download and FAQ pages. Check the option names against the documentation in the zip for the release you installed.

  1. Download the current zip from afhayes.com and unzip it.
  2. In SPSS, open the data file and the syntax editor, then open process.sps and run it (or put an INSERT FILE line at the top of your own syntax file). Do this once per SPSS session.
  3. Choose the model number for your design. Model 4 is simple mediation in the UCLA example; the model templates are in the book’s appendix, and the CASRAI model number guide linked above lists them.
  4. Write the command. The UCLA seminar’s example is process y = opinion /x = detail /m = feeling /model = 4/ seed = 30802022. The variable names are the seminar’s; substitute your own. Each subcommand is separated by a slash and the command ends with a full stop.
  5. Add a seed so that bootstrap results replicate exactly. The seminar uses the seed subcommand for this.
  6. Add options only as needed, for example /total = 1 to print the total effect, /stand = 1 for standardized coefficients, /boot = 10000 to change the number of bootstrap samples from the default of 5000, or /cov = to add covariates to all equations. The data table below lists the subcommands documented in the seminar.
  7. If a variable name is longer than eight characters, add /longname = 1, the subcommand the seminar lists for that case.
  8. Run the command and check the first section of output before anything else (see the next section).

The dialog route is the same model in a form: move the variables into the matching boxes and set the model number (UCLA’s instruction for model 4). The data table below compares the subcommands the seminar documents; it is a single-version snapshot, so use the options chapter of the documentation for your release as the final word.

How to read the PROCESS output

The UCLA seminar describes the output of a simple mediation run in five parts. Reading in this order catches most mistakes early.

  1. Header. It confirms the model number, the Y, X and M variables, the sample size and the seed. If any of these differ from what you intended, stop here: a wrong variable name or model number is easiest to catch here.
  2. Mediator model. Here the mediator is the outcome. The coefficient for X is the a path.
  3. Outcome model. The outcome is Y, with X and M as predictors. The M coefficient is the b path and the X coefficient is c’, the direct effect.
  4. Direct and indirect effects. This part shows the direct effect and the indirect effect with bootstrap confidence intervals. With total = 1 it also shows the total effect, and a TOTAL EFFECT MODEL section appears.
  5. Analysis notes and errors. It lists the confidence level and the number of bootstrap samples, and it is where warnings appear. Read it before reporting.

The seminar adds that the indirect effect is the product a*b, that the total effect is the direct plus the indirect effect, and that the bootstrap confidence intervals are not centered on the estimate, so they should not be read as estimate plus or minus a margin. Options change what appears: stand = 1 adds standardized coefficient blocks (partially standardized when X is binary), a multicategorical X produces relative total, direct and indirect effects with omnibus tests, and models with several mediators show one indirect effect per mediator plus a TOTAL line. In serial models such as model 6 the order in which mediators are listed matters, and the output adds contrasts and an indirect effect key. Specifying hc changes labels to forms such as F(HC4) and se(HC4), with a note confirming the robust estimator.

For reporting conventions (what to state about the model number, the bootstrap samples and the seed), see the PROCESS model numbers and reporting guide linked at the top of this page. For the general layout of SPSS results, the reading SPSS output guide covers the viewer.

Troubleshooting the PROCESS macro in SPSS

Every entry below comes from Hayes’s FAQ. First check the version: the FAQ repeatedly recommends updating to the most current release.

Symptom What the FAQ says causes it What the FAQ says to do
Error 12410, “Source operand non-symmetric for EVAL.” Sometimes occurs, depending on the data, when the center option is used. Turn off centering, which is not required. Updating to a newer release may also remove it.
Error 12306, “The argument to the EXP function is too large.” Can occur in some older versions when Y is dichotomous. Fixed in release 3.2.01; update to the current release.
Error 12417, “Source operand is singular for INV.” Usually a singularity in the model. Rerun with the number of bootstrap samples set to zero to diagnose it. The remedy is to remove or greatly reduce the chance of a singularity; collapsing sparse categories is one way.
Warnings 206, 207, 208, 209, 226 after SPSS 27 Appeared after SPSS 27 was released and affect version 3.5 and earlier; attributed to SPSS, not PROCESS. If they persist, contact IBM technical support.
Misformatted text output in SPSS 29 The default font for text output changed in SPSS 29. Change the default output font back to what it was before that release.
File with multiple imputation tag is not analysed The MATRIX language in SPSS does not honor split file designations. PROCESS has no internal handling of imputed data; it requires complete data.
Menu will not install Failing to install as an administrator, which Windows needs for write permission. Run PROCESS through command syntax instead; the menu is not required.

One further point from the same FAQ. Running the syntax does not create a menu item, so a missing menu after a successful run is expected rather than a fault.

Free alternatives to the PROCESS macro

PROCESS itself is not tied to SPSS: Hayes also distributes it for SAS and for R from the same download page. For people who do not have SPSS, or who want a different route to the same estimates, the sourced options in the data are these.

Option Environment What the source says
PROCESS for SAS SAS on Windows and Mac Requires PROC IML (Hayes download page).
PROCESS for R R Written for R base 3.6.1 and requires no additional packages; its documentation is only in the 3rd edition of Hayes’s book (Hayes download page).
lavaan R package Mediation tutorial defines the indirect effect with the := operator (ab := a*b) and reports bootstrap standard errors when se = “bootstrap” is set; the default for defined parameters is the delta method (lavaan tutorial).

Moving from PROCESS to lavaan changes the workflow: PROCESS fits a numbered template in one command, whereas lavaan has you write out the paths, which is more typing but makes every path explicit. Whichever tool is used, state the software, version and bootstrap settings in the methods section. For the broader landscape, see CASRAI’s free statistical software overview.

Sources

Data: PROCESS subcommands documented in the UCLA SPSS PROCESS seminar (version 4.0)

Compiled from the UCLA OARC seminar on the PROCESS macro for SPSS (version 4.0): each subcommand, what it does and the values or defaults the seminar states, cross-checked against Hayes's download and FAQ pages for the current release and platform requirements. Use the documentation in your own download as the final reference.

PROCESS subcommands documented in the UCLA SPSS PROCESS seminar (version 4.0)
SubcommandPurposeValues or default stated
yOutcome variableContinuous or binary
xPredictor variableContinuous, binary or multicategorical
mMediator variablesMust be continuous
modelModel number from the book's appendixModel 4 is simple mediation in the seminar example
seedMakes bootstrap results replicate exactlyAny integer; the seminar example uses 30802022
totalAdds the total effect to the outputtotal = 1
standStandardized coefficientsstand = 1; partially standardized if X is binary
bootNumber of bootstrap samplesDefault 5000
confConfidence levelDefault 95%
covCovariates added to all equationsContinuous or binary
hcHeteroscedasticity-consistent standard errorsTypes 0 to 4; 3 when given without a number
decimalsDecimal places in output, in SPSS formatFor example f10.2; default is four
mcx, mcw, mczCoding of multicategorical X, W or Z1 indicator, 2 sequential, 3 Helmert, 4 effect
longnameFor variable names over eight characterslongname = 1
contrastTests the difference between indirect effects1 tests the difference; 2 compares absolute values

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about SPSS PROCESS Macro: Install, Run and Read the Output

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →