Excel Insider
Variance & Analysis Tools

Two Way Analysis of Variance (ANOVA) Calculator

A more advanced ANOVA that looks at how two different factors affect a result — for example how Diet AND Exercise affect weight loss.

It reveals whether there is an interaction between your two variables.

Data grid
One value per cell = unreplicated. Same 2+ values per cell = replicated with interaction.
3 rows
3 cols

Significance level (α)

B1B2B3
A1
A2
A3

F (rows / factor A)

91.17

p = < 0.0001 · df (2, 9)

SourceSSdfMSFpSig?
Rows (factor A)243.112121.5691.17< 0.0001Yes
Columns (factor B)524.782262.39196.79< 0.0001Yes
Interaction (A×B)21.8945.474.100.0365Yes
Error12.0091.33———
Total801.7817————
✓

Factor A (rows) has astatistically significant effect at α = 0.05.

✓

Factor B (columns) has astatistically significant effect at α = 0.05.

✓

Interaction ISsignificant at α = 0.05. The factors work together — interpret combinations, not main effects alone.

Row & column means

LevelMeanvs grand mean
A1 (row)13.33-4.56
A2 (row)18.000.11
A3 (row)22.334.44
B1 (column)11.67-6.22
B2 (column)17.17-0.72
B3 (column)24.836.94
Grand mean17.89

About this calculator

When two factors might both matter — Diet AND Exercise, Machine AND Shift — and you want each factor's effect plus whether they interact.

With one value per cell you get the unreplicated model (like Excel's Two-Factor Without Replication); with the same 2+ values per cell you also get the interaction term.

Formula

F = MS(factor) ÷ MS(error), computed for rows, columns and interaction

How to use it

  1. 1

    Set the grid size with the row and column steppers (2–6 each).

  2. 2

    Fill every cell — a single value per cell for the unreplicated model, or the same 2+ values per cell to test interaction.

  3. 3

    Read the ANOVA table: rows test factor A, columns test factor B, and interaction (when replicated) tests whether the factors combine non-additively.

Example: 3×3 grid

The default grid gives SS-rows 56, SS-cols 56, SS-error 16 with F = 7 and p ≈ 0.0494 for both factors — significant at the 5% level.

In Excel: In Excel: Data → Data Analysis → Anova: Two-Factor with or without Replication.