ANOVA Calculator
Perform one-way Analysis of Variance (ANOVA) to test whether the means of three or more groups are significantly different. ANOVA extends the t-test to multiple groups and is fundamental in experimental design and research. See also our T-Test Calculator, F-Statistic Calculator, and P-Value Calculator.
How to Use the ANOVA Calculator
Analysis of Variance (ANOVA) is a statistical method used to test whether there are significant differences between the means of three or more independent groups. It works by comparing the variance between groups to the variance within groups. If the between-group variance is significantly larger than the within-group variance, we conclude that at least one group mean differs from the others.
To use this calculator, enter the data for each group as comma-separated values. You can add or remove groups as needed (minimum 2 groups). Click Calculate to get the complete ANOVA table including sum of squares, degrees of freedom, mean squares, F-statistic, and p-value. The calculator also provides the effect size (η²) to measure the proportion of variance explained by group membership.
ANOVA is widely used in experimental research to compare treatments, in manufacturing to compare production methods, in education to compare teaching approaches, in medicine to compare drug dosages, and in agriculture to compare fertilizer types. One-way ANOVA tests the effect of a single factor; for multiple factors, two-way or factorial ANOVA is used. If ANOVA is significant, post-hoc tests (Tukey, Bonferroni) identify which specific groups differ.
ANOVA Formulas
Sum of Squares Between (SSB):
SSB = Σ nᵢ(x̄ᵢ - x̄)²
Sum of Squares Within (SSW):
SSW = Σᵢ Σⱼ (xᵢⱼ - x̄ᵢ)²
Total Sum of Squares:
SST = SSB + SSW
Degrees of Freedom:
df_between = k - 1
df_within = N - k
df_total = N - 1
Mean Squares:
MSB = SSB / df_between
MSW = SSW / df_within
F-Statistic:
F = MSB / MSW
Effect Size:
η² = SSB / SST
Example Calculation
Three teaching methods are compared. Group 1: [23, 25, 27, 22, 26], Group 2: [30, 32, 28, 31, 29], Group 3: [18, 20, 22, 19, 21]. Are the methods significantly different?
Group means: x̄₁=24.6, x̄₂=30.0, x̄₃=20.0
Grand mean: x̄ = 24.867
SSB = 5(24.6-24.867)² + 5(30-24.867)² + 5(20-24.867)²
= 0.356 + 131.956 + 118.356 = 250.667
SSW = (within-group deviations) = 30.800
df_between = 3-1 = 2, df_within = 15-3 = 12
MSB = 250.667/2 = 125.333
MSW = 30.800/12 = 2.567
F = 125.333/2.567 = 48.83
p-value < 0.001
Conclusion: Highly significant difference between groups.
F-Distribution Critical Values Reference Table
| df₁ (between) | df₂ (within) | F (α=0.05) | F (α=0.01) |
|---|---|---|---|
| 1 | 10 | 4.96 | 10.04 |
| 2 | 10 | 4.10 | 7.56 |
| 2 | 20 | 3.49 | 5.85 |
| 3 | 12 | 3.49 | 5.95 |
| 3 | 20 | 3.10 | 4.94 |
| 4 | 20 | 2.87 | 4.43 |
| 5 | 30 | 2.53 | 3.70 |
| 10 | 60 | 1.99 | 2.63 |
Frequently Asked Questions
What are the assumptions of one-way ANOVA?
One-way ANOVA assumes: (1) Independence of observations, (2) Normality — data within each group is approximately normally distributed, (3) Homogeneity of variances — all groups have similar variances (test with Levene's test). ANOVA is robust to moderate violations of normality, especially with equal group sizes. For unequal variances, use Welch's ANOVA.
Why not just use multiple t-tests instead of ANOVA?
Running multiple t-tests inflates the Type I error rate (familywise error). With k groups, you would need k(k-1)/2 comparisons. At α=0.05 with 3 groups, the probability of at least one false positive is 1-(0.95)³ = 14.3%, not 5%. ANOVA controls the overall error rate at α by testing all groups simultaneously with a single F-test.
What do I do after a significant ANOVA result?
A significant F-test tells you that at least one group mean differs, but not which ones. Use post-hoc tests to identify specific differences: Tukey's HSD (all pairwise comparisons), Bonferroni (conservative adjustment), Dunnett's (compare all to control), or Scheffé (most conservative, allows complex contrasts). Choose based on your research questions and desired error control.
What is eta-squared (η²) and how do I interpret it?
Eta-squared (η² = SSB/SST) measures the proportion of total variance explained by group membership. Guidelines: η² = 0.01 (small), η² = 0.06 (medium), η² = 0.14 (large). For example, η² = 0.25 means 25% of the variation in the dependent variable is explained by group differences. Note that η² tends to overestimate; partial η² or omega-squared (ω²) may be preferred.
What is the difference between one-way and two-way ANOVA?
One-way ANOVA tests the effect of a single factor (independent variable) on a dependent variable. Two-way ANOVA tests the effects of two factors simultaneously and can also detect interaction effects between factors. For example, one-way might test the effect of drug type on blood pressure; two-way might test drug type AND dosage, plus their interaction.
Can ANOVA be used with unequal group sizes?
Yes, ANOVA works with unequal group sizes (unbalanced designs), but it becomes more sensitive to violations of the homogeneity of variances assumption. With unequal n, use Welch's ANOVA if variances are unequal, and be cautious with post-hoc tests (Games-Howell is recommended for unequal variances and unequal n). Equal group sizes provide maximum power and robustness.