Blog
Analysis made easy

Reading a two-way ANOVA interaction

Main effects vs interaction, the interaction plot, simple main effects, Type III sums of squares and partial η².

Skari team6 min

Is it better to learn from videos or from reading? What if the answer depends on when you study?

"There are two factors — how do I read this?"

Open a two-way ANOVA table and there are two main-effect rows plus an interaction row, and it is easy to freeze over where to start. Here is how to read main effects and interactions in a two-way ANOVA, including the interaction plot and simple main effects.

What two-way ANOVA is

Two-way ANOVA tests in one go how two categorical factors affect the mean of a continuous outcome. One analysis answers three questions.

  1. The main effect of factor A — do means differ by A?
  2. The main effect of factor B — do means differ by B?
  3. The interaction A × B — does the effect of A depend on B?

Today's example

ItemDetails
Subjects80 university students (20 per condition)
Factor AStudy time — morning / evening
Factor BMaterial format — video / text
OutcomeVocabulary test score (out of 30)

2 × 2 gives four cells, and the design compares the mean of each cell.

Main effects vs interaction

A main effect is the difference after averaging over the other factor. The main effect of study time, for example, is "morning vs evening" with video and text pooled.

An interaction means the effect of one factor changes with the level of the other. As in: "scores drop in the evening only with text materials."

So if the interaction is significant, you should not generalise from the main effect alone and say "evening is worse."

Reading the interaction plot

Joining the cell means with lines gives the interaction plot.

  • Parallel lines → no interaction
  • Lines that spread apart or cross → interaction
Study timeTextVideo
Morning24.1522.75
Evening18.8522.40

From morning to evening, text drops 5.30 points while video changes by just 0.35. The slopes are clearly different, so the lines cross on the plot.

With an interaction, look at simple main effects

A simple main effect looks again at one factor's effect within a single level of the other factor.

EffectResult
Study time, text materialsF = 23.77, p < .001
Study time, video materialsF = 0.09, p = .767
Format, in the eveningF = 10.85, p = .002
Format, in the morningF = 1.40, p = .243

In short, the evening penalty appeared only with text, and in the evening video beat text.

Check the assumptions first

  • Independence — each person is in one cell only
  • Normality — Shapiro-Wilk within each cell
  • Equal variances — Levene or Brown-Forsythe across cells
  • Cell sizes — if cells differ in size (unbalanced), the type of sums of squares matters

For unbalanced designs, Type III sums of squares, which test each effect allowing for the interaction, are the most widely used. With equal cell sizes, Types I, II and III give the same result.

If the same people went through every condition, use repeated-measures ANOVA or mixed-design ANOVA instead.

Effect size: partial η²

With several factors, the usual effect size is partial eta squared (η²p), which looks at an effect with the others taken out.

η²p = effect SS ÷ (effect SS + error SS) (.01 small · .06 medium · .14 large)

Reading the output

EffectResult
InteractionF(1, 76) = 9.58, p = .003, η²p = .11
Study timeF(1, 76) = 12.48, p < .001, η²p = .14
FormatF(1, 76) = 1.81, p = .183, η²p = .02
  • Start with the interaction row — it is significant, so move on to simple main effects
  • F(1, 76) — 2 levels − 1 = 1; error df 80 − 4 = 76
  • The study-time main effect (morning 23.45 vs evening 20.63) is significant, but it is really the drop with text
  • The format main effect is not significant, yet there is a clear difference in the evening

How to write it up

The interaction between study time and material format was significant, F(1, 76) = 9.58, p = .003, η²p = .11. Simple main effects showed that with text materials, evening scores (M = 18.85) were significantly lower than morning scores (M = 24.15), F(1, 38) = 23.77, p < .001, whereas with video there was no difference by study time, F(1, 38) = 0.09, p = .767.

Example sentence · the numbers are made up

Report the main effects too, but say that they were not interpreted on their own because of the interaction.

In Skari

In Skari's statistics app, open Comparison → ANOVA → Two-Way ANOVA.

In the Variables step, pick the dependent variable and factors A and B, and the design — say 2 × 2 = 4 cells — appears at once.

Pick the outcome and two factors — study time × format example data, 80 students
Pick the outcome and two factors — study time × format example data, 80 students

In Settings, the Configuration Summary shows the post hoc tests (Tukey HSD + Games-Howell) and effect sizes (η²p + ω²p), and you can choose the Sum of Squares Type — I, II or III. The default is Type III (Recommended).

Configuration Summary and Sum of Squares Type
Configuration Summary and Sum of Squares Type

Try it with your own data

Open Comparison → ANOVA → Two-Way ANOVA

Open two-way ANOVA

The top of the report lines up F and η²p for the interaction and both main effects as key figures. The results paragraph also starts with the interaction, and when it is significant it tells you to look at simple main effects.

Interaction and main effects at a glance — example result (fertilizer × watering, 45 plants)
Interaction and main effects at a glance — example result (fertilizer × watering, 45 plants)

When the interaction is significant, a simple main effects table is added automatically, and the cell-by-cell post hoc test is recommended as Tukey HSD or Games-Howell based on a Brown-Forsythe check.

Simple main effects table — same example
Simple main effects table — same example

The charts include the interaction plot, distributions by factor, a residual Q-Q plot, and cell means with 95% CIs.

Interaction plot · distributions by factor · residual Q-Q — same example
Interaction plot · distributions by factor · residual Q-Q — same example

Cell descriptives, marginal means for each factor, and per-cell normality and variance tests are in the report too. Switch tables to APA under Table style; the report downloads as Word or PDF and tables as Excel.

Wrapping up

In a two-way ANOVA the order is interaction first, then main effects. If there is an interaction, check its shape on the plot and use simple main effects to pin down where the difference lies — the result becomes far more convincing.

Want the theory behind it?The Academy's Two-Way ANOVA chapter covers main effects, interactions, simple effects and types of sums of squares →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data