One-Way ANOVA Calculator
Compare means across 3+ groups.
Enter at least 2 groups (one per line)
Enter data for at least 2 groups
What Is One-Way ANOVA?
One-way ANOVA (Analysis of Variance) tests whether three or more group means differ significantly. It extends the two-sample t-test to multiple groups.
Question answered: "Do any of these groups have different average values?"
Examples:
- "Do students taught by three different methods have different test scores?"
- "Does crop yield differ across four fertilizer types?"
- "Are customer satisfaction ratings different across five store locations?"
Why Not Multiple T-Tests?
With three groups, you could run three t-tests (A vs B, A vs C, B vs C). Problem: each test has 5% false positive rate, compounding to ~14% overall.
With five groups (10 pairwise comparisons), false positive rate exceeds 40%.
ANOVA solution: One test controlling overall Type I error at chosen α (typically 0.05).
The Logic of ANOVA
ANOVA compares two sources of variation:
Between-group variation: How much group means differ from the overall mean. If groups are truly different, this is large.
Within-group variation: How much individuals vary within each group. This represents random error/noise.
Key insight: If group means are the same (H₀ true), between-group variation should be similar to within-group variation.
The F-Statistic
Where:
- = Mean Square Between (between-group variance)
- = Mean Square Within (within-group variance, also called error)
If H₀ is true: F ≈ 1 (both sources similar) If H₁ is true: F > 1 (between > within)
F always ≥ 0 and is typically compared to the F-distribution.
Calculating ANOVA
Step 1: Calculate Group Means
| Group | n | Mean | Sum |
|---|---|---|---|
| A | 10 | 72 | 720 |
| B | 12 | 78 | 936 |
| C | 8 | 85 | 680 |
| Total | 30 | 77.9 | 2336 |
Step 2: Calculate Sum of Squares
Example:
Step 3: Calculate Mean Squares
where k = number of groups
where N = total sample size
Step 4: Calculate F and P-value
Compare to F-distribution with and .
The ANOVA Table
Standard output format:
| Source | SS | df | MS | F | p |
|---|---|---|---|---|---|
| Between | 751.2 | 2 | 375.6 | 8.43 | .001 |
| Within | 1202.8 | 27 | 44.5 | ||
| Total | 1954.0 | 29 |
Interpreting Results
Significant F (p < α): At least one group mean differs from the others. But ANOVA doesn't tell you which groups differ—you need post-hoc tests.
Non-significant F (p ≥ α): Insufficient evidence that any group means differ.
Effect Size: Eta-Squared
Proportion of variance explained by group membership.
| η² | Interpretation |
|---|---|
| 0.01 | Small |
| 0.06 | Medium |
| 0.14 | Large |
In example: η² = 751.2 / 1954.0 = 0.38 (large effect)
Post-Hoc Tests
When ANOVA is significant, determine which groups differ:
- Tukey HSD: Most common, compares all pairs
- Bonferroni: Conservative, multiplies p-values by number of comparisons
- Scheffe: Most conservative, allows complex comparisons
- Dunnett: Compares each group to a control
Without post-hoc tests, you only know "something differs" but not what.
Assumptions
Independence
Observations are independent within and between groups.
Normality
Populations are normally distributed, OR sample sizes are adequate (each n > 20-30).
ANOVA is fairly robust to normality violations.
Homogeneity of Variance
Groups have equal population variances.
Check: Ratio of largest to smallest sample SD < 2:1
If violated: Use Welch's ANOVA or non-parametric Kruskal-Wallis.
Applications
Medical Research
Comparing treatment outcomes across multiple drug doses or treatment types.
Education
Testing teaching methods, curricula, or intervention approaches.
Marketing
Comparing customer responses across advertising strategies or price points.
Manufacturing
Assessing quality across production lines, shifts, or suppliers.
Psychology
Testing behavioral differences across experimental conditions.
When ANOVA Isn't Appropriate
Two groups only: Use two-sample t-test. ANOVA gives identical results but t-test is simpler.
Paired/repeated measures: Use repeated measures ANOVA instead.
Two factors: Use two-way ANOVA.
Non-normal data with small samples: Use Kruskal-Wallis (non-parametric alternative).
Historical Context
Ronald Fisher developed ANOVA in the 1920s while working at Rothamsted Experimental Station on agricultural experiments.
Fisher needed to compare crop yields across multiple treatment conditions simultaneously. His solution—partitioning total variance into components—became one of the most influential statistical methods.
The F-distribution is named in his honor.
Common Mistakes
Running Multiple T-Tests
Inflates Type I error. Use ANOVA.
Stopping at Significant F
ANOVA only tells you groups differ somewhere. Post-hoc tests reveal where.
Ignoring Assumptions
Especially homogeneity of variance with unequal sample sizes.
Confusing Factors with Levels
"One-way" means one factor (e.g., teaching method). The factor has multiple levels (methods A, B, C).
Reporting Results
APA format:
"A one-way ANOVA revealed a significant effect of teaching method on test scores, F(2, 27) = 8.43, p = .001, η² = .38. Post-hoc Tukey HSD tests indicated that Method C (M = 85) produced significantly higher scores than Method A (M = 72), p = .002, while Method B (M = 78) did not differ significantly from either group."
Related Calculations
- Two-Sample T-Test — Compare two groups
- Two-Way ANOVA — Two factors
- Repeated Measures ANOVA — Same subjects
- Tukey HSD — Post-hoc comparisons
- F-Distribution Calculator — P-values
Summary
One-way ANOVA tests whether three or more group means differ by comparing between-group variance to within-group variance. A significant F-statistic indicates that at least one group differs, but post-hoc tests are needed to identify which groups. The test assumes independence, normality (or large samples), and equal variances. Report F-statistic, degrees of freedom, p-value, effect size (η²), and post-hoc results for complete interpretation.