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
F(2, 6)
The F-statistic is significant — at least one group mean differs from the others.
< 0.0001
α = 0.05
ANOVA Table
Sum of squares, degrees of freedom, mean squares, F-statistic, and p-value
| Source | SS | df | MS | F | p |
|---|---|---|---|---|---|
| Between Groups | 150.0000 | 2 | 75.0000 | 75.0000 | < 0.0001 |
| Within Groups | 6.0000 | 6 | 1.0000 | — | — |
| Total | 156.0000 | 8 | — | — | — |
Group Statistics
Per-group sample size, mean, standard deviation, and standard error
| Group | N | Mean | SD | SE |
|---|---|---|---|---|
| Group 1 | 3 | 6.0000 | 1.0000 | 0.5774 |
| Group 2 | 3 | 11.0000 | 1.0000 | 0.5774 |
| Group 3 | 3 | 16.0000 | 1.0000 | 0.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
0.9615
Very large effect0.9427
Very large effectTukey 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]
Group 1 vs Group 3
Mean diff: -10.0000 · 95% CI [-12.5051, -7.4949]
Group 2 vs Group 3
Mean diff: -5.0000 · 95% CI [-7.5051, -2.4949]
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.
The formula and methodology behind ANOVA
The F-statistic is the ratio of between-group variability to within-group variability:
F = MS between / MS withinWhere:
- 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
Understanding the key differences between ANOVA designs
One-Way ANOVA
Example: Does fertilizer type (A, B, C) affect plant growth?
Two-Way ANOVA
Example: Do fertilizer and sunlight level affect plant growth, and is there an interaction between them?
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.
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.
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.
You Might Also Like
Related calculators from other categories
Last updated May 5, 2026