Structural equation modeling, step by step

Practical guide to structural equation modeling: measurement vs structural model, CB-SEM vs PLS-SEM, sample size, fit, indirect effects and APA reporting.

By the Twin Statistics teamUpdated 2026-11-157 min read

Structural equation modeling (SEM) tests a set of relationships between latent constructs in one model. It combines factor analysis, which measures each construct from several items, with regression-style paths between those constructs. Use it when your hypotheses form a network of effects, such as X → M → Y, and your variables are measured with multi-item scales.

What SEM is and when to use it

A full SEM has two parts:

  • Measurement model. Links each latent construct to its observed items. This is a confirmatory factor analysis.
  • Structural model. Specifies the directional paths between constructs, based on your hypotheses.

SEM estimates all paths at once and corrects for measurement error in the constructs. This is its main advantage over running separate regressions on averaged scale scores.

CB-SEM vs PLS-SEM

There are two main families. Covariance-based SEM (CB-SEM) estimates the model by reproducing the observed covariance matrix. It is the standard in psychology, education and health research, and it gives global fit indices. Software includes R lavaan, AMOS, Mplus and Stata.

Partial least squares SEM (PLS-SEM) maximizes the explained variance of the outcome constructs. It is common in management, marketing and information systems research, often run in SmartPLS. It suits prediction-oriented aims and formative constructs.

CB-SEMPLS-SEM
Main goalTheory testing, model fitPrediction, explained variance
Global fit indicesYes (CFI, RMSEA and others)Limited
Construct typeMainly reflective (common factor)Reflective and formative (composite)
Typical softwarelavaan, AMOS, MplusSmartPLS

Choose based on your research goal and your field's conventions, not on which method gives better numbers. Our PLS-SEM and SmartPLS guide covers the PLS route in detail. The rest of this guide focuses on CB-SEM.

Requirements and assumptions

  • Theory first. Every path must come from a hypothesis. SEM cannot prove causal direction; design and theory do that.
  • Good measurement. Each construct should have three or more items with adequate loadings.
  • Distribution. ML assumes multivariate normality. Use MLR for non-normal continuous data and WLSMV for ordinal items with few categories.
  • Identification. The model needs enough information to estimate each free parameter (degrees of freedom ≥ 0).
  • Sample size. See the next section.

Sample size: rules of thumb and their limits

You will find many rules: at least 200 cases, 10 cases per indicator, or a ratio of cases to free parameters. Kline (2016) describes a 20:1 ratio of cases to free parameters as ideal and 10:1 as more realistic.

Treat these with caution. Wolf, Harrington, Clark and Miller (2013) showed that required sample sizes ranged from about 30 to over 450 depending on loadings, number of factors and effect sizes. No single rule fits all models.

The defensible approach is a Monte Carlo power analysis for your specific model (Muthén & Muthén, 2002). Mplus and the R package simsem support this. Standard G*Power calculations do not cover latent variable models directly, though they can give a rough check for single paths.

How to run SEM: the two-step approach

Anderson and Gerbing (1988) recommend testing the measurement model before the structural model. If the full model fits poorly, this tells you whether the problem lies in measurement or in your hypothesized paths.

Step 1: test the measurement model

Run a CFA with all constructs correlating freely. Check fit, loadings, composite reliability, AVE and discriminant validity. Fix measurement problems before going further.

Step 2: estimate the structural model

Replace the free factor correlations with your hypothesized paths. If the structural model omits some possible paths, it has more degrees of freedom than the measurement model. Compare the two with a chi-square difference test. With MLR, use a scaled difference test; lavaan's lavTestLRT() handles this.

If your structural model includes every possible path between constructs, its fit is identical to the CFA. In that case the fit tells you nothing about your hypotheses, only about measurement.

Step 3: test indirect effects

An indirect effect is the product of the paths a (X → M) and b (M → Y). Its sampling distribution is not normal, so use bootstrap confidence intervals rather than the Sobel test (Preacher & Hayes, 2008). Our mediation analysis guide explains this in more depth.

lavaan example

In lavaan, =~ defines a latent factor, ~ defines a regression path, and := defines a new parameter such as an indirect effect.

library(lavaan)

model <- '
  # measurement model
  support    =~ sup1 + sup2 + sup3 + sup4
  autonomy   =~ aut1 + aut2 + aut3 + aut4
  engagement =~ eng1 + eng2 + eng3 + eng4
  turnover   =~ tur1 + tur2 + tur3 + tur4

  # structural model
  engagement ~ a1*support + a2*autonomy
  turnover   ~ b*engagement

  # indirect effects
  ind_support  := a1*b
  ind_autonomy := a2*b
'

fit <- sem(model, data = survey, se = "bootstrap", bootstrap = 5000)
summary(fit, fit.measures = TRUE, standardized = TRUE, rsquare = TRUE)
parameterEstimates(fit, boot.ci.type = "perc", standardized = TRUE)

In AMOS you draw the same model as a path diagram and request bootstrapping in Analysis Properties. In Mplus, BY defines factors, ON defines paths, and MODEL INDIRECT requests indirect effects.

How to interpret SEM output

Global fit

Use the same indices as for CFA and judge them together.

IndexGuidelineSource
χ²Non-significant is ideal; sensitive to N—
CFI / TLI≥ .95 good, ≥ .90 acceptableHu & Bentler (1999)
RMSEA≤ .06 good, ≤ .08 acceptableHu & Bentler (1999); Browne & Cudeck (1993)
SRMR≤ .08Hu & Bentler (1999)

Path coefficients

Report unstandardized estimates (B) with standard errors and standardized estimates (β). Standardized paths let readers compare effects within the model. Unstandardized paths keep the original scale and are the ones tested for significance.

Explained variance

R² for each endogenous construct shows how much of its variance the model explains. Report it alongside the paths.

Worked example

Example (invented data). A researcher surveys 312 employees. Hypotheses: supervisor support and job autonomy increase work engagement, and engagement reduces turnover intention. There are no direct paths from support or autonomy to turnover intention. Each construct has four 7-point items.

Measurement model. χ²(98) = 181.2, p < .001; CFI = .96; TLI = .95; RMSEA = .052, 90% CI [.040, .064]; SRMR = .043. All standardized loadings exceed .65.

Structural model. χ²(100) = 186.9, p < .001; CFI = .96; TLI = .95; RMSEA = .053; SRMR = .047. The structural model adds 2 degrees of freedom, and the fit loss is small, Δχ²(2) = 5.7, p = .058.

Pathβ95% bootstrap CIp
Support → Engagement.41[.29, .52]< .001
Autonomy → Engagement.28[.16, .40]< .001
Engagement → Turnover intention−.46[−.57, −.35]< .001
Indirect: Support → Turnover intention−.19[−.27, −.12]—
Indirect: Autonomy → Turnover intention−.13[−.20, −.07]—

R² = .32 for engagement and .21 for turnover intention. Both indirect effects have confidence intervals that exclude zero.

How to report SEM in APA 7

Report the software and estimator, the two-step results, the path estimates and the indirect effects. Include a path diagram with standardized coefficients. For example:

Following Anderson and Gerbing (1988), we first tested the measurement model, which fit well, χ²(98) = 181.2, p < .001, CFI = .96, RMSEA = .052, SRMR = .043. The structural model also fit well, χ²(100) = 186.9, p < .001, CFI = .96, RMSEA = .053, SRMR = .047. Supervisor support (β = .41, p < .001) and autonomy (β = .28, p < .001) predicted engagement, which predicted lower turnover intention (β = −.46, p < .001). The indirect effect of support on turnover intention was significant, β = −.19, 95% CI [−.27, −.12].

Our APA results section guide covers table and figure formatting.

Common mistakes

  • Skipping the measurement model and testing only the full SEM.
  • Claiming causation from cross-sectional survey data.
  • Testing a saturated structural model and treating its fit as support for the hypotheses.
  • Adding paths or error correlations from modification indices without theory.
  • Using the Sobel test instead of bootstrap intervals for indirect effects.
  • Justifying sample size with one rule of thumb and no power analysis.
  • Reporting only standardized paths, without standard errors or confidence intervals.

Getting help with your SEM

If your model does not converge, fits poorly or your supervisor questions your approach, our SEM analysis service can run and check the model and explain each result. You stay the author of the interpretation and the chapter. If you are still deciding between CB-SEM, PLS-SEM or regression, request a free methods check.

FAQ

Is SEM the same as path analysis?

Path analysis is SEM with observed variables only, such as averaged scale scores. Full SEM uses latent variables measured by several items. This lets it account for measurement error.

What sample size do I need for SEM?

It depends on the model, the strength of the loadings and the size of the effects. Rules such as N ≥ 200 are common but unreliable for any specific model. A Monte Carlo power analysis gives a defensible answer.

Should I use CB-SEM or PLS-SEM?

Use CB-SEM if your aim is to test a theory and your constructs are reflective, as in most psychology and health research. PLS-SEM suits prediction-oriented research and formative constructs. Follow your field's norms and justify the choice.

Can SEM prove causality?

No. SEM tests whether data are consistent with a causal model you specify. Causal claims depend on study design, such as experiments or longitudinal data, and on theory.

Which software is best for SEM?

R lavaan is free and widely used. AMOS has a visual interface and works with SPSS data. Mplus handles complex models such as multilevel SEM and categorical outcomes. All of them give valid results when the model is specified correctly.

Need help with this analysis?

A statistician can run, check and explain it with you. Fixed quote before we start.