Maximum decimal places: 6; Nearest, ties away from zero
Decision
Reject H₀
F statistic
9.591107
df between groups
2
df within groups
12
Sum of squares between
27.897333
Sum of squares within
17.452
Mean square between
13.948667
Mean square within
1.454333
η² (share of variance explained)
0.6152
Critical F
3.8853
Reject H₀ at α = 0.05. If all population group means were equal, a result at least this extreme would turn up with probability 0.0032. The p-value is not the probability that H₀ is true, and a significant result says nothing about how large or important the effect is. Group membership accounts for 61.5% of the total variation (η²). ANOVA does not say which groups differ: follow up with a post-hoc comparison such as Tukey’s HSD.
One-way analysis of variance (ANOVA) tests whether two or more independent groups share the same mean. It splits the total variation into a between-group sum of squares and a within-group sum of squares, divides each by its degrees of freedom (k − 1 and N − k) to get mean squares, and takes their ratio as the F statistic. The p-value is the area of the F distribution beyond that F.
Typical uses are comparing crop yields under three fertilisers, exam scores across teaching methods or response times across product versions. The default data, the NIST e-Handbook example with three groups of five, give F = 9.59 on 2 and 12 degrees of freedom and p = 0.0032, so at α = 0.05 the three means are not all equal.
The test assumes independent observations, roughly normal data in each group and similar group variances. A significant F says that at least one mean differs, not which one.
How to calculate one-way ANOVA
One-way ANOVA tests whether group means are equal with F = MSB ÷ MSW, the mean square between groups over the mean square within them. Three groups of five with means 5.34, 7.72 and 8.56 give F = 9.59 on 2 and 12 df and p = 0.0032: the means are not all equal.
The data are the NIST e-Handbook example: 6.9, 5.4, 5.8, 4.6, 4.0; 8.3, 6.8, 7.8, 9.2, 6.5; and 8.0, 10.5, 8.1, 6.9, 9.3. Worked by hand:
Group means: 26.7 ÷ 5 = 5.34, 38.6 ÷ 5 = 7.72 and 42.8 ÷ 5 = 8.56. The grand mean of all 15 values is 108.1 ÷ 15 = 7.2067.
F = 13.948667 ÷ 1.454333 = 9.5911. The upper tail of F with 2 and 12 df beyond 9.5911 is p = 0.003248.
Reading the ANOVA table
For the example, the table reads:
Between groups: SS 27.897, df 2, MS 13.949, F 9.591
Within groups: SS 17.452, df 12, MS 1.454
Total: SS 45.349, df 14
The two sums of squares add to the total variation around the grand mean, and so do the degrees of freedom. The total row has no mean square or F, and the within row has no F of its own.
What the F statistic tells you
If the population means are equal, F tends to land near 1. A large F means the group means are further apart than the scatter inside the groups would explain.
How large is large enough depends on both degrees of freedom. With 2 and 12 df, the 5% critical value is 3.885 and the 1% value is 6.927, so F = 9.59 is significant at either level.
The same F can carry different evidence. F = 13.5 gives p = 0.0020 with 2 and 9 df, but p = 0.0213 with 1 and 4 df.
Effect size: eta squared
A p-value says whether the means differ; η² = SSB ÷ SST says how much of the variation group membership explains. For the example, η² = 27.897 ÷ 45.349 = 0.615.
Cohen (1988) proposed 0.01, 0.06 and 0.14 as small, medium and large effects, so 0.615 is very large. η² overstates the population effect in small samples, and ω² corrects for that bias.
ANOVA assumptions
The F test assumes independent observations, a roughly normal distribution in each group and equal population variances. It tolerates moderate non-normality when the groups are of similar size.
Moore and McCabe's rule of thumb accepts equal variances when the largest group SD is less than twice the smallest. The example passes: its SDs are 1.117, 1.103 and 1.378.
When the rule fails, Welch's ANOVA is the usual alternative, and the Kruskal–Wallis test suits clearly non-normal data. Repeated measurements on the same subjects need a repeated-measures model, not independent groups.
Which groups differ after a significant F?
A significant F says at least one mean differs, not which. A post-hoc test answers that. Tukey's HSD compares every pair while holding the family-wise error rate at α, and Bonferroni tests each of m pairs at α/m, which is 0.05/3 = 0.0167 for three groups.
Separate t-tests at 0.05 on every pair raise the chance of at least one false positive toward 1 − 0.95³ = 14% for three comparisons.
ANOVA with two groups
With exactly two groups, one-way ANOVA matches the pooled two-sample t-test: F = t². Groups 1, 2, 3 and 4, 5, 6 give t = −3.674 and F = 13.5, with the same p-value, 0.0213. Welch's t-test makes no equal-variance assumption, so its result can differ.
One-way ANOVA examples
Scenario
F statistic
p-value
Default
9.591107
0.003248
Unequal groups
13.500000
0.001953
Equal means
0.000000
1.000000
Two groups
13.500000
0.021312
"Default" is the NIST example. "Unequal groups" is 23, 25, 21, 22; 28, 30, 27, 26, 29; and 24, 26, 25, with η² = 0.75. "Two groups" is 1, 2, 3 and 4, 5, 6.
"Equal means" is 1, 2, 3; 0, 2, 4; and −1, 2, 5. The spreads differ, but every mean is 2, so SSB, F and η² are all 0 and p = 1.
Entering the groups
One group per line, with values separated by spaces or commas. Group sizes may differ.
Raw measurements only. A row of labels, means, SDs or totals would be read as another group of data.
The error needs data. At least two groups and one within-group degree of freedom are required, so a one-value group works only if others have spread.
Mistakes that change the result
Averaging the group means for the grand mean. With unequal group sizes the grand mean weights each group by its size.
Rounding mean squares before dividing. 13.9487 ÷ 1.4543 gives 9.5913 instead of 9.5911, so carry full precision to F.
Dividing by k and N. MSB divides by k − 1 = 2 and MSW by N − k = 12. Dividing by 3 and 15 instead gives F = 7.99.
Checked against: Sums of squares with exact fractions (SSB 62.25, SSW 20.75); A&S 26.6.4 for d₁ = 2 gives p = (9/(9 + 2F))^4.5 = 4^−4.5 = 1/512
Two groups equals the pooled t-test
Groups
12 15 11 14 13 16
17 14 18 16 19 15
Significance level α
0.05
F statistic
7.714286
df within groups
10
p-value
0.019536
Checked against: F = t² for two groups; pooled t from with exact fractions, two-sided p from the A&S 26.7.4 closed form with ν = 10
Edge case: identical group means
Groups
1 2 3
2 1 3
3 2 1
Significance level α
0.05
F statistic
0
p-value
1
Decision
Fail to reject H₀
Checked against: Every group mean is 2, so SS between = 0 and F = 0
Questions
What does the p-value in ANOVA mean?
It is the probability of an F statistic at least as large as the one observed if every group mean were equal. With the default data p = 0.0032: equal means would produce F ≥ 9.59 in about 3 samples out of 1,000. It is not the probability that the null hypothesis is true, and a small p-value does not say how large the differences are; η² measures that.
How do you interpret the F statistic?
F is the between-group mean square divided by the within-group mean square. Equal population means give F values near 1; larger values point to real differences. How large is large enough depends on the degrees of freedom: with 2 and 12 df the 5% critical value is 3.885, so F = 9.59 is significant at α = 0.05 and F = 3 would not be.
What are the assumptions of one-way ANOVA?
Independent observations, a roughly normal distribution in each group, and equal population variances. The F test tolerates moderate non-normality when groups are of similar size. Moore and McCabe's rule of thumb accepts the equal-variance assumption if the largest group standard deviation is less than twice the smallest; otherwise use Welch's ANOVA, and for clearly non-normal data the Kruskal–Wallis test.
How do you find which groups differ after ANOVA?
Run a post-hoc test. Tukey's honestly significant difference (HSD) compares every pair while holding the family-wise error rate at α; the Bonferroni method tests each of the m pairs at α/m, which is 0.05/3 ≈ 0.0167 for three groups. Separate t-tests at 0.05 on every pair push the chance of at least one false positive well above 5%, towards 1 − 0.95³ ≈ 14% for three comparisons.
What is a good eta squared value?
η² is the between-group sum of squares divided by the total sum of squares: the share of variation explained by group membership. Cohen (1988) proposed 0.01, 0.06 and 0.14 as small, medium and large effects. The default data give 27.897/45.349 = 0.615, a very large effect. η² overstates the population effect in small samples; ω² corrects for that bias.
Abramowitz & Stegun, Handbook of Mathematical Functions, §26.6 (F distribution)
Checked against references
This calculator includes 4 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.
Put this calculator on your site
Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.