A mixed ANOVA is one of the most useful analyses in applied research — and one of the most confusing to run for the first time. It combines two kinds of comparison in a single model: you compare different groups of people (a between-subjects factor) and you measure the same people more than once (a within-subjects factor). A classic example is a training study where a treatment group and a control group are each tested before the training, immediately after it, and again at a follow-up.
In this tutorial you will learn how to run a mixed ANOVA in SPSS step by step, read the output in the right order, and report the results in APA style (7th ed.), with a paste-ready syntax block so you can reproduce the analysis exactly.
What is a mixed ANOVA?
A mixed ANOVA — also called a split-plot ANOVA — is an analysis of variance with at least one between-subjects factor and at least one within-subjects (repeated-measures) factor. It answers three questions at once:
- Is there a main effect of the between-subjects factor? Do the groups differ overall, averaged across all time points?
- Is there a main effect of the within-subjects factor? Do scores change over time, averaged across both groups?
- Is there an interaction? Does the change over time differ between the groups? This is usually the question researchers care about most.
The interaction is the heart of a mixed ANOVA. In a training study, you do not just want to know whether scores improved over time — you want to know whether the treatment group improved more than the control group. Only the interaction answers that question.
When to use a mixed ANOVA
Use a mixed ANOVA when your design has all of the following: one continuous dependent variable; one categorical between-subjects factor with two or more independent groups (for example, treatment vs control); and one categorical within-subjects factor with two or more levels measured on the same participants (for example, pre-test, post-test and follow-up).
The analysis also rests on several assumptions. Check each one before you trust the results:
- Normality: the dependent variable should be approximately normally distributed in each combination of group and time point.
- Homogeneity of variances: variances should be similar across groups at each time point (tested with Levene’s test).
- Homogeneity of covariances: the pattern of correlations between the repeated measures should be similar across groups (tested with Box’s M test).
- Sphericity: the variances of the differences between all pairs of repeated measures should be equal. This only matters when the within-subjects factor has three or more levels (tested with Mauchly’s test).
- No extreme outliers in any group-by-time cell.
If sphericity is violated, read the Greenhouse-Geisser corrected row of the within-subjects tests table instead of the “Sphericity Assumed” row. If Box’s M is significant, interpret the results cautiously and consider the Pillai’s trace result from the multivariate tests table, which is more robust.
If you are new to repeated-measures designs, start with our guide to repeated-measures ANOVA in SPSS; if your design has two within-subjects factors and no grouping factor, see our two-way repeated-measures ANOVA tutorial instead.
Setting up your data
For this tutorial, imagine a study with 30 students: 15 in a study-skills training group and 15 in a control group. Each student takes the same exam at three points: before the training (pre), immediately after it (post), and six weeks later (followup). Your SPSS Data View needs those three score variables plus a grouping variable, group (1 = training, 2 = control, with value labels). Each row is one student. This wide format — one column per time point — is the layout the Repeated Measures dialog expects.
How to run a mixed ANOVA in SPSS
Step 1: Define the within-subjects factor
- Go to Analyze > General Linear Model > Repeated Measures…
- In the Within-Subject Factor Name box, type a name for the repeated factor, for example time.
- In the Number of Levels box, type 3 (pre, post and follow-up).
- Click Add, then click Define.
Step 2: Add the repeated measures and the grouping factor
- In the Repeated Measures dialog, you will see the within-subjects variables listed as time(1), time(2) and time(3). Move pre, post and followup into the Within-Subjects Variables box in that order — the order matters, because it defines the order of the levels.
- Move group into the Between-Subjects Factor(s) box.
Step 3: Request a profile plot
- Click Plots…
- Move time to the Horizontal Axis box and group to the Separate Lines box.
- Click Add, then click Continue.
The profile plot is the fastest way to see the interaction: if the lines for the two groups are roughly parallel, there is probably no interaction; if they diverge or cross, the groups changed differently over time.
Step 4: Post hoc tests and estimated marginal means
- Click Post Hoc…, move group into the Post Hoc Tests for box, and tick Tukey. Post hoc tests are only available for the between-subjects factor here — pairwise comparisons for the within-subjects factor come from Estimated Marginal Means instead. Click Continue.
- Click EM Means…, move time, group and time*group into the Display Means for box, tick Compare main effects, and set the Confidence interval adjustment to Bonferroni. This gives you Bonferroni-adjusted pairwise comparisons for each factor and for the simple effects of group at each time point.
- Click Continue.
Step 5: Options and running the analysis
- Click Options… and tick Descriptive statistics, Estimates of effect size and Homogeneity tests.
- Click Continue, then click OK to run the analysis.
SPSS syntax for a mixed ANOVA
If you prefer syntax, or you want an exact record of the analysis, paste the following into a Syntax Editor window and run it. Replace the variable names with your own if they differ.
GLM pre post followup BY group /WSFACTOR=time 3 Polynomial /METHOD=SSTYPE(3) /PLOT=PROFILE(time*group) /EMMEANS=TABLES(time) COMPARE ADJ(BONFERRONI) /EMMEANS=TABLES(group) COMPARE ADJ(BONFERRONI) /EMMEANS=TABLES(time*group) COMPARE(group) ADJ(BONFERRONI) /PRINT=DESCRIPTIVE ETASQ HOMOGENEITY /CRITERIA=ALPHA(.05) /WSDESIGN=time /DESIGN=group.
Here is what each line does: GLM calls the general linear model procedure, listing the three repeated measures followed by BY and the grouping variable. /WSFACTOR defines the within-subjects factor (time, 3 levels). /PLOT produces the profile plot. The /EMMEANS lines request estimated marginal means with Bonferroni-adjusted comparisons — the third gives the simple effect of group at each time point, which is what you need to explain an interaction. /PRINT=ETASQ adds partial eta squared, and HOMOGENEITY adds Levene’s test and Box’s M.
How to interpret the SPSS output
Read the output tables in this order:
1. Check the assumptions first
Box’s M test checks whether the covariance matrices are equal across groups: a p-value above .05 means you can proceed, while a significant result calls for caution and for Pillai’s trace in the multivariate tests table. Mauchly’s test checks sphericity: if it is significant, read the Greenhouse-Geisser row of the within-subjects tests instead of the “Sphericity Assumed” row. Levene’s test appears once per time point; a non-significant result (p > .05) at each time point supports the homogeneity of variances assumption.
2. The interaction comes first
Look at the Tests of Within-Subjects Effects table and find the row labelled time * group. This is the interaction. If it is significant (p < .05), the groups changed differently over time — and the two main effects must be interpreted with care, because a significant interaction means the effect of time depends on which group a student is in.
When the interaction is significant, examine the profile plot and the time*group pairwise comparisons from the Estimated Marginal Means section: compare the two groups separately at pre, post and follow-up. In a typical training study you would expect no group difference at pre-test and a clear difference at post-test.
3. Then the main effects
Main effect of time — the row labelled time in the Tests of Within-Subjects Effects table. A significant result means scores changed across the three time points when both groups are averaged together; use the pairwise comparisons for time to see which time points differ. Main effect of group — the row labelled group in the Tests of Between-Subjects Effects table. A significant result means the groups differ overall, averaged across all time points; with three or more groups, read the Tukey results to see which pairs differ.
If the interaction is significant, report the main effects briefly but put the emphasis on the interaction and the simple effects — a main effect can be misleading when the groups follow different trajectories.
4. Report the effect sizes
SPSS prints partial eta squared (ηp²) for every effect when you tick “Estimates of effect size”. Report it alongside every F-test. As a rough guide, values around .01 are small, around .06 are medium, and around .14 or above are large — but always interpret the size in the context of your field, not by the thresholds alone.
Reporting in APA style (7th ed.)
Report a mixed ANOVA by naming the design, giving the F-statistic with its degrees of freedom, the p-value, and the effect size for the interaction first, then the main effects. Describe the pattern in words and support the interaction with the simple-effects comparisons. A template you can adapt:
A 2 (group: training, control) × 3 (time: pre-test, post-test, follow-up) mixed ANOVA was conducted to compare exam scores across groups and time points. There was a significant interaction between group and time, F(df, df) = [your F value], p = [your p value], ηp² = [your effect size], indicating that the change in scores over time differed between the groups. The main effect of time was [significant / not significant], F(df, df) = [your F value], p = [your p value], ηp² = [your effect size], and the main effect of group was [significant / not significant], F(df, df) = [your F value], p = [your p value], ηp² = [your effect size]. Bonferroni-adjusted pairwise comparisons showed that the groups did not differ at pre-test but the training group scored significantly higher than the control group at post-test and at follow-up.
When you fill in the template, report exact p-values (for example, p = .013) and use p < .001 for very small values. Report the means and standard deviations for each group at each time point in the text or in a table so the reader can see the pattern behind the statistics. If you applied the Greenhouse-Geisser correction, say so. For a fuller guide, see our tutorial on how to report ANOVA results in APA style.
Key Takeaways
- A mixed ANOVA combines one between-subjects factor (different groups) with one within-subjects factor (repeated measures on the same people).
- The interaction is the most important result: it tells you whether the groups changed differently over time.
- Run it via Analyze > General Linear Model > Repeated Measures, defining the within-subjects factor first and adding the grouping variable as a between-subjects factor.
- Check Box’s M, Mauchly’s test and Levene’s test first — if sphericity is violated, use the Greenhouse-Geisser corrected row.
- Follow a significant interaction with simple effects: compare the groups separately at each time point with Bonferroni-adjusted estimated marginal means.
- Report every effect with its F-statistic, degrees of freedom, exact p-value and partial eta squared.
Frequently asked questions
What is the difference between a mixed ANOVA and a two-way repeated-measures ANOVA?
In a mixed ANOVA, one factor is between-subjects (each participant is in only one group) and one is within-subjects (each participant is measured at every level). In a two-way repeated-measures ANOVA, both factors are within-subjects. Pick the design that matches how your data were collected.
What should I do if Mauchly’s test is significant?
Read the Greenhouse-Geisser row of the Tests of Within-Subjects Effects table instead of the “Sphericity Assumed” row, and report the corrected degrees of freedom and p-value. SPSS also prints the Huynh-Feldt correction, so report the one you used and why.
How do I run simple effects after a significant interaction?
Use Estimated Marginal Means: move time*group into the Display Means for box, tick “Compare main effects”, and choose Bonferroni as the adjustment. The pairwise comparisons table then gives you the group difference at each time point. To see the effect of time within each group separately, split the file by group (Data > Split File) and run a one-way repeated-measures ANOVA within each group.
Related guides
- Repeated-measures ANOVA in SPSS
- Two-way repeated-measures ANOVA in SPSS
- How to report ANOVA results in APA style
Need professional guidance with your SPSS analysis? Contact us → /services/