ANOVA Calculator

Free ANOVA Calculator with Tukey HSD post-hoc test. Run one-way and two-way analysis of variance, calculate F-statistic, p-value, effect size, and pairwise comparisons. Ideal for statistics students and researchers.

3 values entered

3 values entered

3 values entered

ANOVA Result

F(2, 6)

75.0000
Significant

The F-statistic is significant — at least one group mean differs from the others.

p-value

< 0.0001

Significance Level

α = 0.05

ANOVA Table

Sum of squares, degrees of freedom, mean squares, F-statistic, and p-value

SourceSSdfMSFp
Between Groups150.0000275.000075.0000< 0.0001
Within Groups6.000061.0000
Total156.00008

Group Statistics

Per-group sample size, mean, standard deviation, and standard error

GroupNMeanSDSE
Group 136.00001.00000.5774
Group 2311.00001.00000.5774
Group 3316.00001.00000.5774

Group Means with Error Bars (±SE)

Visual comparison of group means with standard error bars

Loading chart...

Effect Size

How much variation is explained by group differences

η² (Eta-squared)

0.9615

Very large effect
ω² (Omega-squared)

0.9427

Very large effect

Tukey HSD Post-Hoc Test

Pairwise comparisons identifying which specific groups differ significantly

Group 1 vs Group 2

Mean diff: -5.0000 · 95% CI [-7.5051, -2.4949]

Significant

Group 1 vs Group 3

Mean diff: -10.0000 · 95% CI [-12.5051, -7.4949]

Significant

Group 2 vs Group 3

Mean diff: -5.0000 · 95% CI [-7.5051, -2.4949]

Significant
What Is ANOVA?

Analysis of Variance explained simply

ANOVA (Analysis of Variance) is a statistical method used to compare the means of three or more groups to determine if at least one group mean is statistically different from the others. It tests the null hypothesis that all group means are equal.

Key insight: ANOVA compares the variance between groups to the variance within groups. If the between-group variance is significantly larger, it suggests the group means are not all equal.

ANOVA is widely used in fields like medicine, psychology, biology, economics, and engineering for experimental and observational studies.

How Is the F-Statistic Calculated?

The formula and methodology behind ANOVA

The F-statistic is the ratio of between-group variability to within-group variability:

F = MS‍ between / MS‍ within

Where:

  • SSbetween = Σ ni(x̄i − x̄)² — weighted sum of squared deviations of group means from the grand mean
  • SSwithin = ΣΣ (xij − x̄i)² — sum of squared deviations within each group
  • MSbetween = SSbetween / (k − 1) — where k is the number of groups
  • MSwithin = SSwithin / (N − k) — where N is the total sample size

Worked example

Comparing test scores across three teaching methods:

  • Method A: 85, 89, 78, 92, 88 (mean = 86.4)
  • Method B: 72, 75, 68, 80, 74 (mean = 73.8)
  • Method C: 90, 95, 88, 92, 91 (mean = 91.2)
  • If F is large and p < 0.05, we conclude that teaching method affects scores
One-Way vs Two-Way ANOVA

Understanding the key differences between ANOVA designs

One-Way ANOVA

Tests the effect of a single categorical factor on a continuous outcome. Use when you have one independent variable with three or more levels.
Example: Does fertilizer type (A, B, C) affect plant growth?

Two-Way ANOVA

Tests the effects of two categorical factors simultaneously, including their interaction. Use when you have two independent variables.
Example: Do fertilizer and sunlight level affect plant growth, and is there an interaction between them?
What Is the Tukey HSD Test?

Honestly Significant Difference post-hoc analysis

When ANOVA finds a significant difference, the Tukey HSD (Honestly Significant Difference) test determines exactly which pairs of groups differ. It performs all pairwise comparisons while controlling the family-wise error rate.

Tukey-Kramer formula

q = |x̄‍ i − x̄‍ j| / √(MS‍ error × (1/n‍ i + 1/n‍ j) / 2)

How to interpret

The calculated q-statistic is compared against the studentized range distribution. If q exceeds the critical value, the pair is significantly different at the chosen alpha level. The 95% confidence interval shows the range of plausible mean differences.

Key Assumptions of ANOVA

Conditions that must be met for valid ANOVA results

Independence

Observations are independent of each other. Random sampling and proper experimental design ensure this assumption is met.

Normality

The residuals are approximately normally distributed within each group. ANOVA is fairly robust to moderate violations when sample sizes are equal.

Homogeneity of Variance

The variance is roughly equal across all groups (homoscedasticity). Levene's test can check this. If violated, consider Welch's ANOVA as an alternative.

Common Mistakes to Avoid

Pitfalls that can invalidate your ANOVA results

Using t-tests instead of ANOVA

Running multiple t-tests inflates the Type I error rate. ANOVA tests all groups simultaneously while controlling the error rate.

Ignoring assumptions

Always check normality and equal variance before interpreting results. Transformations or non-parametric alternatives may be needed.

Skipping post-hoc tests

A significant ANOVA only tells you that not all means are equal. Always follow up with Tukey HSD to find which groups specifically differ.

Confusing statistical vs. practical significance

A significant p-value doesn't mean the effect is meaningful. Always check effect size (η² or ω²) to assess practical importance.

Frequently Asked Questions

Common questions about ANOVA and how to use this calculator

Embed ANOVA Calculator

Add this calculator to your website or blog for free.