A two-way ANOVA tests how two categorical factors affect one continuous outcome, for example how teaching method (lecture, online, workshop) and gender affect exam scores. It answers three questions at once:
- Does the first factor matter, averaging over the second? (main effect of A)
- Does the second factor matter, averaging over the first? (main effect of B)
- Does the effect of one factor depend on the level of the other? (interaction A × B)
The interaction is often the most interesting result, and it changes how you should read the main effects.
In this guide
Main effects vs interaction
Imagine a 2 × 3 design: gender (2 levels) × teaching method (3 levels). A main effect of method means the three methods differ on average. An interaction means the gap between methods is not the same for men and women; perhaps the workshop helps women much more than men.
Plot the cell means with one factor on the x-axis and a line for each level of the other. Parallel lines suggest no interaction; lines that diverge or cross suggest one.
If the effect of method reverses between men and women, the “average” effect of method can be misleading or even zero. With a significant interaction, describe the simple effects (the effect of one factor at each level of the other) rather than the main effects alone.
Assumptions
- Independent observations, with each participant in one cell only. For repeated measurements use a mixed or repeated measures ANOVA.
- Normally distributed residuals within each cell. ANOVA is fairly robust with 15–20 or more per cell.
- Equal variances across cells, checked with Levene's test. Unequal variances are most harmful when cell sizes also differ.
- Reasonable cell sizes. Unbalanced designs are fine with Type III sums of squares, which is what SPSS and the free calculator use by default.
Worked example
A researcher compares three teaching methods for men and women, with 20 students in each of the six cells (N = 120). The error degrees of freedom are 120 − 6 = 114.
| Source | df | F | p | Partial η² |
|---|---|---|---|---|
| Gender | 1 | 9.36 | .003 | .076 |
| Method | 2 | 3.12 | .048 | .052 |
| Gender × Method | 2 | 4.21 | .017 | .069 |
| Error | 114 |
All three effects are significant. Because the interaction is significant, the next step is to test the effect of method separately for men and for women (simple effects), with post hoc comparisons inside each gender, and to show the pattern in a plot of cell means.
Effect size: partial eta squared
Partial η² is the proportion of variance explained by an effect after removing the other effects: SSeffect / (SSeffect + SSerror). You can also compute it from F: η²p = (F × dfeffect) / (F × dfeffect + dferror). For the interaction, (4.21 × 2) / (4.21 × 2 + 114) = .069. Common benchmarks are .01 small, .06 medium and .14 large.
How to report a two-way ANOVA in APA 7
A 2 (gender) × 3 (teaching method) between-subjects ANOVA was conducted on exam scores. There was a significant main effect of gender, F(1, 114) = 9.36, p = .003, η²p = .076, and of teaching method, F(2, 114) = 3.12, p = .048, η²p = .052. These were qualified by a significant gender × method interaction, F(2, 114) = 4.21, p = .017, η²p = .069. Simple effects analysis showed that teaching method affected scores among women but not among men.
Add a table of cell means and SDs and a line plot of the interaction. Report the simple effects with their own F or t tests.
Common mistakes
- Reporting the main effects as the headline finding when a significant interaction shows they depend on the other factor.
- Running separate one-way ANOVAs for each factor, which ignores the interaction entirely.
- Using Type I sums of squares in an unbalanced design, where the results then depend on the order in which factors are entered.
- Calling an interaction “significant for women but not men” without testing whether the two simple effects differ from each other. That comparison is exactly what the interaction test does.
Frequently asked questions
What is an interaction effect in a two-way ANOVA?
An interaction means the effect of one factor depends on the level of the other factor. On a plot of cell means, the lines are not parallel.
What should I do after a significant interaction?
Test simple effects: the effect of one factor at each level of the other, followed by post hoc comparisons where a factor has three or more levels. Describe the pattern with a plot.
Can I run a two-way ANOVA with unequal group sizes?
Yes. Use Type III sums of squares, which do not depend on the order of the factors. Very unequal cells combined with unequal variances can distort the F tests, so check Levene’s test.
What is the difference between eta squared and partial eta squared?
Eta squared divides by the total sum of squares, so effects in the same model add up to at most 1. Partial eta squared divides by the effect plus error only, so values for different effects do not sum to the total. Most software, including SPSS, reports partial eta squared.
How many participants do I need per cell?
A common rule of thumb is at least 15–20 per cell. For a planned study, run a power analysis for the effect you care most about, usually the interaction, which needs larger samples.


