One-Way ANOVA Calculator

One-way ANOVA for 2 to 6 groups: the full ANOVA table (SS, df, MS), the F statistic, the p-value, the critical F value and the group means.

At least 2 values per group. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.
%

Results

F statistic
2.2303
p-value
0.1241
At α = 5%
Not enough evidence that the group means differ (do not reject the null hypothesis)
Critical F (α = 5%)
3.2389
Reject when F is larger than this.
Sum of squares between groups (SS)
2.8873
Degrees of freedom between (k − 1)
3
Mean square between (MS)
0.96244
Sum of squares within groups (SS)
6.9044
Degrees of freedom within (N − k)
16
Mean square within (MS)
0.431525
Total sum of squares
9.7917
Share of variation explained by group (η² = SS between ÷ SS total)
29.49 %
Group means
Group 1: 2.374 (n = 5) Group 2: 2.344 (n = 5) Group 3: 3.082 (n = 5) Group 4: 3.152 (n = 5)
Grand mean
2.738

How it’s calculated

One-way analysis of variance (ANOVA) tests whether the means of several groups are all equal. It compares the variation between the group means with the variation within the groups. If the means really were equal, those two estimates of variance would be about the same and F would be near 1; a large F is evidence that at least one mean is different.

SS between = Σ nᵢ (mean of group i − grand mean)² df between = k − 1 SS within = Σ (each value − its group mean)² df within = N − k MS = SS ÷ df F = MS between ÷ MS within p-value = P(F with (k − 1, N − k) degrees of freedom > observed F)

Example (OpenStax Introductory Statistics 2e, Example 13.3): four sororities each report five grade point averages. With k = 4 groups and N = 20 values, SS between = 2.88732 (df 3, MS 0.96244), SS within = 6.9044 (df 16, MS 0.431525), so F = 0.96244 ÷ 0.431525 = 2.2303 and the p-value is 0.1241. At a 1% (or 5%) level that is not enough to conclude that the mean grades differ. The default values are that data set.

ANOVA assumes independent observations, roughly normal data within each group and similar spread in each group. A significant F says that the means are not all equal, not which ones differ; follow up with a post-hoc comparison.

Frequently asked questions

What does a small p-value tell me?

If the group means were truly all equal, an F this large would be unusual. It is evidence that at least one mean differs. It does not say which groups differ or how large the difference matters in practice.

Why not just run several t-tests?

Each extra test adds a chance of a false alarm. One ANOVA tests all the groups at once at a single significance level.

Do the groups need the same number of values?

No. This calculator handles groups of different sizes (an unbalanced design). Each group needs at least two values.

What if my data are not normal or the spreads are very different?

ANOVA is fairly robust with similar group sizes, but with strong skew, outliers or very different spreads the p-value can mislead. Consider a rank-based alternative or a statistician’s advice.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator