FreeStatisticalTools.com
Correlation and regression

Mediation Analysis Calculator

Test whether the effect of X on Y runs through one or more mediators. Indirect effects are tested with percentile bootstrap confidence intervals, as in Hayes’ PROCESS Models 4 and 6, with pairwise contrasts and standardized effects.

Free · No sign-upReplaces SPSS PROCESS macroWorks with your data
Updated · By Bibin Xavier

Data 250 × 9

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 250 rows, 9 variables. Data stays in this browser tab.
Employeetext · 250 levelsLeadershipnumericTrustnumericEngagementnumericAutonomynumericTenure_YearsnumericPerformancenumericAgenumericFemalenumeric · coded
E0014.563.944.123.214.95.36281
E0024.423.024.353.12104.26431
E0034.824.944.784.2319.44.06210
E0044.654.083.533.375.44.22210
E0056.434.585.353.3110.96.12440
E0064.865.495.414.6115.54.72380
E0072.93.795.552.8412.24.86350
E0084.64.113.54.372.35.09390

Variables and options

Mediators (M) 2 selected
For serial models, select mediators in causal order.
Covariates (optional) 0 selected
Covariates enter every equation, as in PROCESS.
Results update automatically when you change an option.

Results

250 rows · example data
PROCESS model4Simple or parallel mediation
Sample size250
Bootstrap samples5,000percentile 95% CI
Standard errorsOLS

Conceptual diagram: Model 4

X: LeadershipY: PerformanceM1: TrustM2: Engagement
Table 1

Outcome: Trust

PredictorcoeffsetpLLCIULCI
constant2.60070.237210.963< .0012.13353.0679
Leadership0.39410.05177.627< .0010.29230.4959

Note. R = .4359, R² = .1900, MSE = 0.4988, F(1, 248) = 58.173, p < .001.

Table 2

Outcome: Engagement

PredictorcoeffsetpLLCIULCI
constant2.64480.31948.281< .0012.01573.2738
Leadership0.45750.06966.575< .0010.32040.5945

Note. R = .3853, R² = .1485, MSE = 0.9041, F(1, 248) = 43.237, p < .001.

Table 3

Outcome: Performance

PredictorcoeffsetpLLCIULCI
constant1.79180.32795.465< .0011.14612.4376
Leadership0.09910.06471.531.127-0.02840.2266
Trust0.32810.07114.613< .0010.18800.4682
Engagement0.24470.05284.631< .0010.14060.3487

Note. R = .5245, R² = .2751, MSE = 0.5884, F(3, 246) = 31.113, p < .001.

Table 4

Total effect of Leadership on Performance

EffectsetpLLCIULCI
0.34040.06205.490< .0010.21830.4625
Table 5

Direct effect of Leadership on Performance

EffectsetpLLCIULCI
0.09910.06471.531.127-0.02840.2266
Table 6

Indirect effect: Leadership → Trust → Performance

EffectBootSEBootLLCIBootULCICompletely standardized
0.12930.03110.06990.19230.1251
Table 7

Indirect effect: Leadership → Engagement → Performance

EffectBootSEBootLLCIBootULCICompletely standardized
0.11190.02650.06480.16910.1083
Table 8

Total indirect effect

EffectBootSEBootLLCIBootULCI
0.24130.04110.16400.3257
Table 9

Pairwise contrasts between indirect effects

ContrastEffectBootSEBootLLCIBootULCI
(Leadership → Trust → Performance) − (Leadership → Engagement → Performance)0.01740.0407-0.06320.0956

Note. A CI excluding zero means the two indirect effects differ.

Interpretation

All of 2 indirect effects are significant: Leadership → Trust → Performance (0.129); Leadership → Engagement → Performance (0.112). The direct effect of Leadership is not statistically significant, which indicates indirect-only (full) mediation.

The indirect effect Leadership → Trust → Performance was significant, b = 0.129, 95% CI [0.070, 0.192]; The indirect effect Leadership → Engagement → Performance was significant, b = 0.112, 95% CI [0.065, 0.169], based on 5,000 bootstrap samples (PROCESS Model 4).

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Mediation Analysis Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/mediation-analysis-calculator/

BibTeX

@software{xavier_mediationanalysis_2026,
  author = {Xavier, Bibin},
  title = {Mediation Analysis Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/mediation-analysis-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Mediation Analysis Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is mediation analysis?

Mediation analysis tests whether the effect of X on Y works through one or more mediators. This tool runs Hayes’ PROCESS Model 4 (simple and parallel mediation) and Model 6 (serial mediation) with percentile bootstrap confidence intervals, pairwise contrasts of indirect effects, completely standardized effects and covariates.

When to use mediation analysis

Use mediation analysis to test a mechanism: whether X affects Y by changing M. Model 4 handles one or several parallel mediators; Model 6 handles mediators in a causal chain. Bootstrap CIs are now preferred to the Baron and Kenny steps and the Sobel test.

Assumptions

  • Linear relationships and correctly specified causal ordering (X before M before Y), justified by theory or design.
  • Independent observations and, for OLS standard errors, constant residual variance (choose HC3 if this is doubtful).
  • No unmeasured confounding of the paths between mediators and the outcome.

How to set up your data

One row per case and one numeric column per variable. Code dichotomous variables 0/1. Moderators with two values are probed at those two values; continuous moderators at the 16th, 50th and 84th percentiles, or the mean ± 1 SD.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the x (predictor), y (outcome), mediators (m) and covariates (optional).
  3. Set the options. Fill in process model, bootstrap samples, confidence level and standard errors.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report mediation analysis in APA style

Report the a, b, c′ and c paths and each indirect effect with its bootstrap CI, for example “The indirect effect through trust was significant, b = 0.15, 95% CI [0.08, 0.23].”

Frequently asked questions

How do I know if mediation is significant?

An indirect effect is significant when its 95% bootstrap confidence interval does not include zero.

What is the difference between parallel and serial mediation?

In parallel mediation (Model 4) the mediators do not affect each other. In serial mediation (Model 6) they form a chain, X → M1 → M2 → Y, and each specific indirect effect is tested.

Do I still need the Baron and Kenny steps?

No. Current guidance (Hayes, 2022; Zhao, Lynch and Chen, 2010) tests the indirect effect directly; a significant total effect is not required for mediation.

Related tools

PROCESS is a macro for SPSS, SAS and R written by Andrew F. Hayes. This tool is an independent implementation of the published regression methods and model numbering (Hayes, 2022) and is not affiliated with, endorsed by or derived from the PROCESS software.

Browse all categories