How to Analyse a Pretest-Posttest Design with ANCOVA
In a pretest-posttest control group design, the right method in most cases is ANCOVA (analysis of covariance), with posttest scores as the dependent variable, pretest scores as the covariate and group as the factor. ANCOVA does two jobs at once: it statistically controls for the groups' baseline differences before the intervention, and it removes the pretest-related variance from the error term, which raises the power of the test. Its output is not the raw posttest means but the adjusted means (estimated marginal means) — the posttest values you would expect if every group had started from the same pretest average — and those are the ones to report. The critical precondition for a valid ANCOVA is that the group × covariate interaction is non-significant; this is the homogeneity of regression slopes assumption. If the interaction is significant, reporting a single group difference is misleading and the analysis moves into a moderation framework instead.
This guide compares the four ways of analysing pretest-posttest data, walks through the steps and assumptions of ANCOVA in order, and covers the points examiners and reviewers press hardest. If you're not sure which method fits your design, send us your dataset: we run everything from the assumption checks to the adjusted-means tables and effect sizes, and deliver APA-formatted tables and figures you can paste straight into your thesis or manuscript. The initial review is free.
Who is this guide for?
Master's and doctoral students testing a teaching method, programme or intervention with a pretest-posttest control group design
Thesis authors whose advisor or committee said "this should be ANCOVA, not a t-test"
Researchers working with intact groups (classrooms, wards, clinics) who cannot randomise
Authors whose reviewers flagged uncontrolled baseline differences or missing adjusted means
Anyone stuck choosing between gain scores, mixed ANOVA and ANCOVA
Practitioners running intervention studies in psychology, nursing, medicine and sports science
Four ways to analyse pretest-posttest data — which one is right?
The same dataset can be analysed four different ways; they ask different questions and can give different answers. The most common mistake in thesis drafts is picking one of the two weakest options:
| Approach | What it does | When it fits | The risk |
|---|---|---|---|
| Posttest only (independent t-test / ANOVA) | Compares group posttest means and ignores the pretest entirely | Only with true randomisation and no pretest available | Throws away the pretest data you already have; if baselines differ, the finding is biased outright |
| Separate paired t-tests within each group | Tests change within the treatment group and within the control group separately | As descriptive supporting detail alongside the main analysis | "Significant in the treatment group, not in the control" does NOT show the two groups differ from each other — the most common interpretation error there is |
| Gain (change) scores with a t-test / ANOVA | Computes posttest minus pretest and compares groups on that difference | Defensible in randomised designs; intuitive to interpret | Assumes the pretest-posttest regression slope is exactly 1, which is rarely true in practice, and loses power |
| Mixed ANOVA — time × group interaction | Compares the two groups' change patterns over time | When there are three or more measurement points (e.g. pretest, posttest, follow-up) | With only two measurements the interaction test is mathematically equivalent to the gain-score analysis; no ANCOVA power advantage |
| ANCOVA (pretest as covariate) | Controls for baseline differences and compares adjusted posttest means | Most two-measurement pretest-posttest control group designs | It has assumptions; skipping the homogeneity of regression slopes check in particular can make the result misleading |
ANCOVA, step by step
Order matters: the assumption checks come before the main analysis, because a violated assumption changes the method rather than just adding a footnote.
- 01
Choose the covariate on theoretical grounds
In a pretest-posttest design the covariate is naturally the pretest score. If you add further covariates (age, baseline motivation, disease duration), each must meet two conditions: it has to be meaningfully related to the outcome, and it must be UNAFFECTED by the intervention — that is, measured before it. Using a variable measured after the intervention as a covariate removes part of the treatment effect from the model.
- 02
Verify the covariate-outcome relationship is linear
ANCOVA assumes a linear relationship between the covariate and the posttest. A scatterplot drawn separately for each group is the fastest way to see this. If the relationship is curved or absent, the covariate adds nothing — rather than forcing ANCOVA, the design needs rethinking.
- 03
Test the homogeneity of regression slopes
Temporarily add a group × covariate interaction term to the model. This term should be NON-significant (p > .05). If it is, drop the interaction and run the actual ANCOVA. If it is significant, the effect of the intervention varies by pretest level; reporting a single "group difference" would then be misleading and the analysis moves into a moderation framework.
- 04
Check the remaining assumptions on the residuals
Normality is assessed on the model residuals, not on the raw scores; homogeneity of variance is tested with Levene's test; outliers are judged individually in the covariate-outcome plane. In small groups a single outlying observation can visibly shift the adjusted means.
- 05
Run the model and read the group effect
The model is posttest ~ group + pretest. The F value on the group row tells you whether the groups differ significantly once the pretest is controlled. A significant covariate row is expected and welcome: it shows the pretest predicts the posttest, confirming the covariate was well chosen.
- 06
Report the adjusted means
The real output of ANCOVA is the adjusted (estimated marginal) means — the posttest values expected if all groups had the same pretest average. Best practice is to table the raw means with standard deviations alongside the adjusted means with standard errors; reviewers want to see the gap between the two.
- 07
Add effect size and pairwise comparisons
Partial eta squared (ηp²) is the standard effect size for ANCOVA. With three or more groups, which pairs differ is determined from the adjusted means using pairwise comparisons with a correction such as Bonferroni; uncorrected multiple comparisons inflate the Type I error rate.
ANCOVA assumptions: how to check them, what to do when they fail
Listing the assumptions isn't enough; every row needs a "what if it doesn't hold?" answer. That is exactly what gets asked in a defence:
| Assumption | How to check | If violated |
|---|---|---|
| Homogeneity of regression slopes | Add the group × covariate interaction to the model; it should be non-significant | The effect varies by pretest level; report the interaction and use Johnson-Neyman to show over which pretest range the difference is significant |
| Linear covariate-outcome relationship | Scatterplot and correlation within each group | Try a transformation or a non-linear term; if there is no relationship at all, drop the covariate |
| Normality of residuals | Shapiro-Wilk on residuals, Q-Q plot, skewness and kurtosis | ANCOVA is robust with reasonable, balanced group sizes; for severe violations use rank-based ANCOVA or bootstrap alternatives |
| Homogeneity of variances | Levene's test (p > .05 expected) | Limited impact with balanced groups; with unbalanced groups prefer robust standard errors |
| Covariate independent of the treatment | Check the timing: the covariate must be measured BEFORE the intervention | A variable measured after the intervention cannot serve as a covariate — it absorbs part of the effect and shrinks the result |
| Covariate measured reliably | Inspect the internal consistency (Cronbach's alpha) of the pretest | An unreliable covariate under-corrects the baseline difference; state it as a limitation |
| Outlier control | Covariate-outcome scatter, standardised residuals | Judge outlying cases individually; run the analysis with and without them and report whether the conclusion changes |
How to interpret partial eta squared (ηp²)
"It came out significant" is not a finding on its own; the size of the difference belongs in the report too. The commonly used reference bands are:
| ηp² value | Interpretation | What it means |
|---|---|---|
| ≈ .01 | Small effect | About 1% of the posttest variance is explained by the group difference |
| ≈ .06 | Medium effect | Noticeable in practice; the level most intervention studies expect |
| ≈ .14 and above | Large effect | A strong intervention effect; interpret with care if it comes from a small sample |
| Significant but small | Statistical significance ≠ practical importance | In large samples even small differences reach significance; make the distinction explicit in the discussion |
Common mistakes
Comparing posttest scores with an independent t-test when pretest data exists — if baselines differ, the finding is biased outright
Running separate paired t-tests in each group and concluding "it rose significantly in the treatment group but not in the control, so the method works"; one test being significant does not show that the DIFFERENCE between groups is significant
Never testing the homogeneity of regression slopes — it is ANCOVA's most critical precondition and the question most often asked in a defence
Running ANCOVA but tabling the raw posttest means; what belongs in the table are the adjusted means with their standard errors
Using a variable measured after the intervention as a covariate — part of the treatment effect leaks into it, systematically shrinking the estimate
Adding five or six covariates on a "more control is better" logic; each covariate costs a degree of freedom, and highly intercorrelated covariates destabilise the model
Checking normality on the raw scores; in ANCOVA normality is assessed on the residuals
Presenting ANCOVA on non-randomised groups with markedly different baselines as "we equated the groups" — statistical adjustment does not replace random assignment
Running uncorrected multiple pairwise comparisons with three or more groups (Bonferroni or Šidák is needed)
Never reporting the effect size (ηp²), which APA and most journals require
Forcing a three-measurement design (pretest, posttest, follow-up) into a single ANCOVA; a mixed model fits that design better
How to write it up in the results section
An APA-formatted ANCOVA result carries three pieces of information at once: the assumption check, the test statistic for the group effect, and the adjusted means. A usable template: "The homogeneity of regression slopes assumption was satisfied, F(1, 76) = 0.84, p = .362. With pretest scores controlled as a covariate, there was a significant difference between groups on posttest scores, F(1, 77) = 12.45, p = .001, ηp² = .139. Adjusted means were 74.26 (SE = 1.12) for the treatment group and 67.84 (SE = 1.11) for the control group." Note that the degrees of freedom drop by one because of the covariate — the detail most often missed in ANCOVA write-ups.
Putting both the raw means with standard deviations and the adjusted means with standard errors in the table lets the reader see how much the adjustment moved things; a good results section shows those columns side by side. For figures, either a line plot of pretest and posttest means by group or a bar chart of adjusted means with confidence intervals will do. We prepare these tables and figures ready to paste into your thesis or manuscript, formatted to your journal's or institute's template.
If you're working with intact groups: an honest framing
In most education, nursing and field research, groups cannot be randomly assigned; existing classes, wards or clinics serve as treatment and control groups. ANCOVA is still the right tool in that design, but it pays to be clear about what it does: it applies a statistical adjustment for pretest scores, it does not actually make the groups equivalent. The possibility that the groups differ systematically on something unmeasured — teacher experience, school resources, patient profile — is nowhere in the model. Indeed, the fact that gain-score analysis and ANCOVA can point in different directions in quasi-experimental designs is a known and still-debated issue in the methodology literature, known as Lord's paradox; both are considered legitimate because they answer different questions, and the choice depends on the research question.
In practice this means writing the finding not as a firm causal claim ("the method produced this much effect") but as "with baseline level controlled, a difference of this size was observed between groups", and stating the absence of randomisation openly in the limitations. That is precisely the point a reviewer will press, and having it written in advance strengthens the paper rather than weakening it. In our reports we keep the strength of the claim within what your data can carry, and hand you the defence questions already answered.
Frequently asked questions
When should ANCOVA be used?
Its most typical use is the pretest-posttest control group design: posttest as the dependent variable, pretest as the covariate, group as the factor. ANCOVA does two things there — it statistically controls for the groups' pre-intervention baseline difference, and it removes the pretest-related portion of posttest variance from the error term, raising the power of the test. Beyond that, it can be used whenever a known variable measured before the intervention (age, disease duration, baseline motivation) would otherwise distort a between-groups comparison.
Should I use gain scores or ANCOVA?
In a randomised design both give unbiased results, but ANCOVA is almost always more powerful: the gain-score approach assumes the pretest-posttest regression slope is exactly 1, whereas ANCOVA estimates that slope from the data. When groups are not randomly assigned, the two can disagree (Lord's paradox) — because they answer different questions: gain scores ask "who improved more?", ANCOVA asks "of two people who started at the same level, who ends up higher?". In practice, theses and journals generally expect ANCOVA.
What if the homogeneity of regression slopes assumption fails?
A violation is not a disaster — it is itself a finding: the effect of the intervention varies with pretest level, e.g. participants who started low may benefit more from the method. The right move is not to hide it but to report the group × covariate interaction and use the Johnson-Neyman technique to show over which range of pretest scores the effect is significant. That is a far richer and more publishable result than a standard ANCOVA table, and moving the analysis into that framework is work we do for you.
What is the difference between mixed ANOVA and ANCOVA?
Mixed ANOVA treats time as a repeated-measures factor, and what you actually care about is the time × group interaction. With only two measurements (pretest and posttest) that interaction test is mathematically equivalent to a gain-score analysis, so it does not deliver ANCOVA's power advantage. The practical rule: with only a pretest and a posttest, prefer ANCOVA; with three or more measurement points (pretest, posttest, follow-up), a mixed model fits better — and the pretest can still enter that model as a covariate.
How large a sample does ANCOVA need?
For a two-group design and a medium effect (d ≈ 0.50), roughly 128 participants are needed for 80% power; but if the pretest-posttest correlation is around .60, ANCOVA cuts that by about a third, so around 85 may suffice. In a three-group design, the roughly 160 participants required for a medium effect (f = 0.25) drops to about 105 at the same correlation. That is ANCOVA's most concrete benefit: a well-chosen covariate visibly reduces the number of participants you need. We can run a power analysis specific to your design before you start collecting data.
Which software do you use? Can I get SPSS-compatible output?
We run the analyses on our own Python-based stack; the results are SPSS-compatible and identical to what the classic menus would give you — the same F and p values, the same partial eta squared, adjusted (estimated marginal) means, Levene's test, the slope homogeneity check and Bonferroni-corrected pairwise comparisons. We also provide G*Power-style power analysis output with sensitivity curves. You don't need a licence for any program, and the report arrives in APA format, ready to drop into your thesis or manuscript.
Let us analyse your pretest-posttest data with the right method
Send us your dataset and a note on your design; we'll settle which method fits, run everything from the assumption checks to the adjusted-means tables, and deliver APA-formatted tables and figures ready to paste into your thesis or manuscript. The initial review is free.
Last updated: August 21, 2026