ANCOVA, the analysis of covariance, compares the means of three or more groups while statistically controlling for one or more continuous nuisance variables called covariates. It is an ANOVA with a regression adjustment built in: before testing whether the groups differ, it removes the portion of the outcome that the covariate can explain, so the comparison is made on a level playing field. That makes ANCOVA the natural choice when groups differ on a background variable, such as a pre-test score, that you want to hold constant.
Where ANCOVA does its best work
The classic use is a pre-test, post-test design: you compare post-test scores across treatment groups while using the pre-test as a covariate, so any starting differences between groups are adjusted away. More generally, ANCOVA increases statistical power by soaking up error variance that the covariate explains, which can reveal a group effect that a plain ANOVA would miss. It also lets you ask a sharper question: not simply whether the groups differ, but whether they differ once the covariate is accounted for.
ANOVA versus ANCOVA
The difference between the two is the covariate. An ANOVA compares group means on the outcome alone; an ANCOVA compares adjusted group means after partialling out the covariate's influence. By explaining away part of the within-group variation, the covariate shrinks the error term and produces a more sensitive test. The trade-off is an extra set of assumptions: most importantly homogeneity of regression slopes, the requirement that the covariate relates to the outcome in the same way within every group. If that assumption fails, the adjusted comparison is no longer meaningful.
| Test | Compares | Adjusts for a covariate? |
|---|---|---|
| t-test | Two group means | No |
| ANOVA | Three or more group means | No |
| ANCOVA | Three or more adjusted group means | Yes |
ANCOVA assumptions you must meet
Beyond the usual normality of residuals and homogeneity of variance that any analysis of variance requires, ANCOVA adds two conditions that examiners check closely. The first is homogeneity of regression slopes: the relationship between the covariate and the outcome must be the same in every group, which you test by entering a group-by-covariate interaction and confirming it is not significant. The second is that the covariate is measured without error and is independent of the treatment, so a pre-test taken before the intervention qualifies but a variable affected by the treatment does not. You should also screen for influential outliers, since the regression adjustment is sensitive to them. Verify the underlying distribution first with a proper normality check rather than eyeballing the histogram.
When the slopes assumption fails, the adjusted means lose their meaning, because the covariate is pulling the groups apart by different amounts. In that situation a moderation analysis is often the better frame, since the differing slopes are the finding rather than a nuisance; the contrast between controlling for and interacting with a variable is set out in moderation versus mediation. Report each assumption check explicitly so the reader can see the adjusted comparison rests on solid ground.
Running ANCOVA in SPSS
In SPSS the analysis lives under Analyze, General Linear Model, Univariate. Place your outcome in the Dependent Variable box, the grouping variable in Fixed Factor(s), and the continuous covariate in the Covariate(s) box, which is the single step that turns a plain ANOVA into an ANCOVA. Before trusting the result, test the slopes assumption by adding a custom model with the group-by-covariate term, then rerun the main model once you confirm that term is non-significant. Use the Options or EM Means dialog to request the estimated marginal means, because those adjusted means, not the raw descriptives, are what you report.
Reading the output cleanly is its own skill: the Tests of Between-Subjects Effects table gives the F, degrees of freedom, p-value, and partial eta-squared for the group factor after adjustment. A short walkthrough of the panels SPSS produces is in how to read SPSS output, and if you want to confirm the unadjusted omnibus comparison first you can run it in the browser-based ANOVA calculator before moving to the covariate-adjusted model.
ANCOVA versus a t-test, and versus regression
Compared with a simple t-test, ANCOVA handles more than two groups and adds covariate control, so a t-test is really a special, simpler case. Compared with regression, the line is thinner than it looks: ANCOVA is a regression model in which the grouping variable is entered as a categorical predictor alongside the continuous covariate. The two produce the same underlying fit; ANCOVA simply frames the output as adjusted group means, which is why the assumptions in linear regression also apply here.
Reporting ANCOVA properly
A clean ANCOVA report gives the F statistic, degrees of freedom, p-value, and an effect size such as partial eta-squared for the group factor, then presents the adjusted (estimated marginal) means rather than the raw means, because those adjusted means are the whole point of the analysis. State that you checked homogeneity of regression slopes and the usual normality and equal-variance assumptions, following the conventions in reporting statistics in APA style. If you want to test the omnibus group effect before adding a covariate, the one-way ANOVA calculator gives you the unadjusted comparison as a starting point.