How to use the ANOVA calculator
- In Excel or Google Sheets, select your groups, one column per group with the names in the first row, and copy them.
- Paste them into the box. Columns can have different numbers of values. You can also type one group per line.
- Keep the significance level at 0.05 unless your course says otherwise, then click Run ANOVA.
- Read the p-value and the ANOVA table, then the Tukey comparisons to see which groups differ.
- Check the chart of group means and the equal-variance check before reporting the result.
One-way ANOVA formulas
ANOVA splits the total variation into variation between the group means and variation within the groups:
SSbetween = Σni(xi − x)2 , SSwithin = Σ(ni − 1)si2
Each is divided by its degrees of freedom to give a mean square, and their ratio is the F statistic:
F = MSbetweenMSwithin = SSbetween / (k − 1)SSwithin / (N − k)
- k
- The number of groups
- ni, N
- The size of group i, and the total number of values
- xi, si
- The mean and standard deviation of group i
- x
- The grand mean of all the values together
- MS
- Mean square: a sum of squares divided by its degrees of freedom
- F
- The test statistic, compared with an F distribution with k − 1 and N − k degrees of freedom
Worked example
Three groups of 3 students each scored: A: 4, 5, 6; B: 7, 8, 9; C: 5, 6, 7. Do the group means differ?
-
Group means and the grand mean
means 5, 8, 6; grand mean = 57 / 9 = 6.333
-
Between groups: each group's size times its mean's squared distance from the grand mean
SSbetween = 3(5 − 6.333)² + 3(8 − 6.333)² + 3(6 − 6.333)² = 14
-
Within groups: squared distances from each group's own mean
SSwithin = (1 + 0 + 1) + (1 + 0 + 1) + (1 + 0 + 1) = 6
-
Mean squares with k − 1 = 2 and N − k = 6 degrees of freedom, then F
F = 14 / 26 / 6 = 71 = 7 , p = 0.027
What it means: p = 0.027 is below 0.05, so the group means are not all equal. Tukey's test would then show that B differs from A, the pair furthest apart. With only three values per group, a real study would want more data.
How to interpret ANOVA results
- The p-value answers one question: are the group means all equal? Below α, at least one differs.
- Tukey comparisons say which pairs differ, with p-values adjusted for making several comparisons.
- η² (eta squared) gives the size of the effect: the share of the variation explained by the groups.
- The chart shows each group's mean and 95% confidence interval. Groups whose intervals barely overlap tend to differ.
- Check the assumptions: similar spreads in each group, and no extreme outliers. Draw a box plot of the groups to see both.
Comparing just two groups? Use the t-test calculator. For counts in categories rather than measurements, use the chi-square test.