Chi-square difference test calculator

Enter the chi-square and degrees of freedom of two nested models, and the scaling correction factors if you used a robust estimator, to test whether the constraints worsen fit.

No accountRuns in your browserSatorra–Bentler scaled

Enter the two nested models

The models must be nested: one is the other with some parameters fixed or constrained equal.

NESTED MODELS

LIVE RESULT

INSTANT

Difference test

Order does not matter: the model with more degrees of freedom is treated as the constrained one. With robust estimators, never subtract scaled χ² values directly; use the scaled option.

READY-TO-USE APA 7TH RESULTS SENTENCE

Adjust inputs above to generate a draft reporting sentence.

VISUAL DIAGNOSTIC

Constrained vs. less-constrained model χ² and ΔCFI check

Reproduce in R (lavaan) and Python (SciPy)

When to use a chi-square difference test

Two structural equation models are nested when one can be obtained from the other by fixing or constraining parameters, for example by setting a path to zero or requiring loadings to be equal across groups. If the constraints are true in the population, the difference in χ² follows a chi-square distribution with degrees of freedom equal to the difference in df. A significant result means the constraints make fit worse.

Δχ² = χ²_constrained − χ²_free, Δdf = df_constrained − df_free

The Satorra–Bentler scaled difference

Robust estimators such as MLM and MLR report a scaled χ² that corrects for non-normal data. The difference between two scaled values does not follow a chi-square distribution, so it must be rescaled using each model's scaling correction factor c (reported by Mplus, lavaan and other programs).

c_d = (df₀ × c₀ − df₁ × c₁) ÷ (df₀ − df₁)
TRd = (T₀ × c₀ − T₁ × c₁) ÷ c_d
where T₀, c₀ are the scaled χ² and scaling factor of the constrained model, and T₁, c₁ of the less constrained model

Worked example

A constrained model with χ² = 120.5 on 50 df and a free model with χ² = 98.2 on 45 df give Δχ² = 22.3 on 5 df, p < .001. If those were MLR statistics with scaling factors 1.25 and 1.20, the correct scaled difference is c_d = 1.70 and TRd = 19.29, p = .0017. Subtracting the scaled values directly would have given 22.3, overstating the difference.

Measurement invariance and ΔCFI

When testing configural, metric (equal loadings) and scalar (equal intercepts) invariance across groups, the χ² difference test becomes very sensitive in large samples. Many researchers therefore also look at the change in fit indices. A common guideline is that a drop in CFI of no more than .01 supports invariance (Cheung and Rensvold, 2002); Chen (2007) suggests also checking ΔRMSEA ≤ .015.

Things to check

  • Both models must be fitted to the same data and the same variables.
  • If the scaled difference comes out negative or undefined, use the strictly positive Satorra–Bentler (2010) version, available in lavaan and Mplus.
  • For WLSMV estimation of ordinal data, use the software's dedicated difference test (DIFFTEST in Mplus, lavTestLRT in lavaan).
  • Non-nested models cannot be compared this way; use information criteria such as AIC and BIC.

See also the RMSEA and fit index calculator for each model's overall fit, and read how to interpret and report SEM model fit.

Common questions

Frequently asked questions

Why can’t I subtract two MLR or MLM scaled χ² values directly?

Because each model’s scaled χ² uses its own scaling correction factor c, the plain difference does not follow a chi-square distribution. Rescaling via the Satorra–Bentler formula prevents false significant or even negative differences.

What ΔCFI threshold is used in measurement invariance testing?

Cheung and Rensvold (2002) recommend ΔCFI ≤ 0.010 alongside ΔRMSEA ≤ 0.015 (Chen, 2007) as practical evidence of invariance when large sample sizes make the χ² difference test overly sensitive.

Can this test compare two non-nested models with different variables?

No. Models must be strictly nested on the exact same dataset and observed variables. For non-nested models, compare AIC, BIC or sample-size-adjusted BIC instead.