What Is One-Way ANOVA?
One-way ANOVA tests whether at least one group mean differs from the others by comparing the variation between groups with the variation within groups. The ratio of the two is the F statistic, and the p-value tells you how unusual that ratio would be if all group means were equal.
The calculator reports sums of squares, mean squares, F, the critical F value, eta squared, omega squared and Cohen's f, and it checks the largest-to-smallest group variance ratio so you can judge the equal-variance assumption. When the F test is significant, the pairwise comparisons show which groups differ.
The sections below give the formulas, a variables table, a worked example and answers to common questions such as ANOVA versus multiple t-tests and what to do after a significant result.
How to Use the One-Way ANOVA Calculator
- Type or paste one group per line. You can start a line with a name followed by a colon.
- Choose α.
- Read the ANOVA table and the decision. If significant, scan the pairwise table to see which pairs differ.
- Check the variance ratio and group means chart for assumptions and practical size.
One-Way ANOVA Formula
Sum of squares
Mean squares and F
Eta squared
Omega squared
One-Way ANOVA Variables Explained
| Symbol | Meaning | Notes |
|---|---|---|
| F | F statistic | MS between ÷ MS within |
| k | Number of groups | At least 3 for ANOVA |
| N | Total number of observations | |
| SSB, SSW | Sums of squares between and within groups | |
| df | Degrees of freedom | k − 1 between, N − k within |
One-Way ANOVA Worked Example
Using the example values (press “Load example” above to try them):
- k = 3 groups, N = 18; grand mean = 26.6111.
- SS between = Σ nᵢ(x̄ᵢ − x̄)² = 108.111; SS within = Σ Σ (x − x̄ᵢ)² = 64.1667.
- MS between = 108.111 ÷ 2 = 54.0556; MS within = 64.1667 ÷ 15 = 4.27778.
- F = MS between ÷ MS within = 12.636, with (2, 15) degrees of freedom.
- p-value = 0.00060688; critical F = 3.6823.
Result: F statistic = 12.636; p-value = 0.00060688; Decision at α = 0.05 = Reject H₀: at least one mean differs.
Why not just run several t-tests?
Each t-test carries a 5% chance of a false positive. With 3 groups there are 3 pairs, with 5 groups 10 pairs, and the chance of at least one false alarm climbs quickly. ANOVA tests the single overall hypothesis that all means are equal at the chosen α, keeping the false-positive rate under control.
| Groups | Pairs | Chance of at least one false positive |
|---|---|---|
| 3 | 3 | 14% |
| 4 | 6 | 26% |
| 5 | 10 | 40% |
| 6 | 15 | 54% |
Interpreting the ANOVA table
A significant F means at least one group mean differs from the others; it does not say which. Use the pairwise table for that. The effect size tells you how much of the total variation is explained by group membership.
| η² | Size | Cohen’s f |
|---|---|---|
| 0.01 | Small | 0.10 |
| 0.06 | Medium | 0.25 |
| 0.14 | Large | 0.40 |
Assumptions
- Independent observations, with each subject in one group only.
- Residuals approximately normal within groups (ANOVA is fairly robust, especially with equal group sizes).
- Equal variances across groups. A rule of thumb is that the largest variance should be under about 4 times the smallest. If not, use Welch’s ANOVA.
- Outcome measured on an interval or ratio scale.
- If assumptions fail badly, the Kruskal-Wallis test is the non-parametric alternative.
Post-hoc comparisons
The pairwise table uses the pooled error term from the ANOVA with a Bonferroni correction: each p-value is multiplied by the number of comparisons. This is simple and conservative. Tukey’s HSD is more powerful for all pairwise comparisons and is available in statistical software; the Bonferroni result here is a safe, slightly more cautious reading.
Where One-Way ANOVA Is Used
Comparing treatment groups
Testing whether several treatments give different average results.
Comparing methods or products
Checking whether three or more options differ in a measured outcome.
Course assignments
Completing an ANOVA table with sums of squares and mean squares.
Follow-up testing
Finding which pairs of groups differ after a significant F.
Common One-Way ANOVA Mistakes to Avoid
- Use balanced group sizes where possible; they make ANOVA more robust.
- Report F with both degrees of freedom: F(2, 15) = 8.31.
- Never interpret a non-significant ANOVA as proof that the means are equal.
- Plot the data; box plots by group often tell more than the F value.
One-Way ANOVA Terms and Definitions
- Between-group variation
- How far group means are from the grand mean.
- Within-group variation
- The spread of individual values around their own group mean (error).
- Post-hoc test
- Pairwise comparisons made after a significant ANOVA.
One-Way ANOVA FAQs
What does ANOVA test?
Whether the means of three or more groups are all equal. A significant result means at least one mean differs.
What is the F statistic?
The ratio of between-group variance to within-group variance. A large F suggests the group means differ by more than chance.
What is the difference between ANOVA and a t-test?
A t-test compares two means. ANOVA compares three or more, controlling the overall false-positive rate. With two groups ANOVA gives F = t².
What should I do after a significant ANOVA?
Run post-hoc comparisons such as Tukey’s HSD or Bonferroni-adjusted tests to see which pairs differ.
What if the group variances are very different?
Use Welch’s ANOVA, which does not assume equal variances, or a non-parametric Kruskal-Wallis test.
How many observations do I need per group?
More is better; at least 5 to 10 per group is a practical minimum for rough work, and a power analysis gives a proper target.
What does eta squared mean?
The proportion of the total variance in the data explained by group membership. 0.01 is small, 0.06 medium, 0.14 large by convention.
What is the difference between one-way and two-way ANOVA?
One-way ANOVA compares group means across one factor. Two-way ANOVA has two factors and can test for an interaction between them. This calculator performs one-way ANOVA.
Why not just run several t-tests?
Each extra test raises the chance of at least one false positive. A single ANOVA F test controls the overall error rate, and pairwise comparisons follow only if it is significant.