Skip to content

ANOVA Calculator — Step-by-Step Solutions

The ANOVA (Analysis of Variance) Calculator tests whether the means of three or more groups differ significantly. It performs one-way ANOVA with a full sum of squares table, two-group comparison, and post-hoc Tukey HSD tests to identify which specific pairs differ.

Enter your group data (one group per line, values separated by commas) and set the significance level. The calculator produces the F-statistic, p-value, degrees of freedom, effect size (eta squared), and a complete ANOVA summary table with step-by-step working.

Your calculations will appear here

How to Use the ANOVA Calculator

  1. Select a mode: One-Way ANOVA, Two Groups Comparison, or Post-Hoc (Tukey HSD).
  2. For One-Way ANOVA, enter each group on a separate line with values separated by commas. You need at least two groups with at least two values each.
  3. For Two Groups Comparison, enter each group in its own input field. This is a simplified interface for comparing exactly two groups.
  4. For Tukey HSD, enter groups in the same format as One-Way ANOVA. The calculator first runs ANOVA, then performs pairwise comparisons to identify which specific groups differ.
  5. Set the significance level (default 0.05) and review the ANOVA table, F-statistic, p-value, and effect size in the results.

Formula and Theory

Analysis of Variance (ANOVA) tests whether the means of three or more groups are significantly different. It compares the variance between group means to the variance within groups. If the between-group variance is much larger than the within-group variance, the group means likely differ.

The F-statistic is the ratio of Mean Square Between (MSB) to Mean Square Within (MSW). MSB measures how much the group means vary around the grand mean. MSW measures the average variability within each group. A large F-statistic suggests the group means are not all equal.

The p-value gives the probability of observing an F-statistic as extreme as the calculated value, assuming all group means are equal (the null hypothesis). If p is less than the significance level (typically 0.05), we reject the null hypothesis and conclude that at least one group mean differs.

Eta squared (eta squared = SSB / SST) is a measure of effect size. It represents the proportion of total variance explained by group membership. Values of 0.01, 0.06, and 0.14 are conventionally interpreted as small, medium, and large effects respectively.

When ANOVA is significant, post-hoc tests such as Tukey HSD identify which specific pairs of groups differ. The Tukey HSD test controls the family-wise error rate, keeping the overall Type I error at the chosen alpha level across all pairwise comparisons.

Worked Examples

Example 1: One-way ANOVA with three groups

Problem: Group 1: 23, 25, 28, 22, 27. Group 2: 30, 32, 29, 35, 31. Group 3: 18, 20, 22, 19, 21. Are the means significantly different at alpha = 0.05?

Solution: Grand mean = 25.4. SSB = 310, SSW = 62, SST = 372. MSB = 155, MSW = 5.167. F = 30.0. df = (2, 12). p < 0.001.

Answer: F = 30.0, p < 0.001. Reject H0, at least one group mean differs significantly. Eta squared = 0.833.

Example 2: Two-group comparison

Problem: Group A: 5, 6, 7, 8. Group B: 10, 11, 12, 13. Is there a significant difference?

Solution: Mean A = 6.5, Mean B = 11.5. F = 25.0. df = (1, 6). p = 0.0024.

Answer: F = 25.0, p = 0.0024. The means are significantly different.

Example 3: Tukey HSD post-hoc test

Problem: After finding a significant ANOVA with three groups, which pairs are different?

Solution: Calculate the HSD threshold using q critical, MSE, and group sizes. Compare each pair of means against the threshold.

Answer: Pairs where the absolute mean difference exceeds the HSD threshold are significantly different.

Frequently Asked Questions

When should I use ANOVA instead of multiple t-tests?
Use ANOVA when comparing three or more groups. Running multiple t-tests inflates the Type I error rate (the probability of a false positive). ANOVA controls this by testing all groups simultaneously in a single test.
What assumptions does one-way ANOVA require?
One-way ANOVA assumes: (1) observations are independent, (2) each group is approximately normally distributed, and (3) the groups have equal variances (homogeneity of variance). ANOVA is reasonably robust to moderate violations of normality, especially with larger sample sizes.
What does a significant ANOVA result tell me?
A significant result tells you that at least one group mean is different from the others, but it does not tell you which groups differ. You need a post-hoc test (such as Tukey HSD) to identify specific pairwise differences.
What is eta squared and how do I interpret it?
Eta squared is the proportion of total variance in the dependent variable that is explained by group membership. Values around 0.01 are considered small, 0.06 medium, and 0.14 large. It helps you assess practical significance beyond statistical significance.
Can I use ANOVA with just two groups?
Yes, ANOVA with two groups gives identical results to an independent samples t-test (F = t squared). However, for two groups, a t-test is more common and provides additional information such as the direction of the difference.

Related Statistics Calculators

Related Articles