🧮
🧮 Math & statistics

One-Way ANOVA Calculator

Results update as you type.

Your numbers

Understanding the one-way ANOVA — concept and principle

One-way analysis of variance (ANOVA) tests whether the means of three or more independent groups are all equal, using a single F test instead of many pairwise t-tests. It is used to compare teaching methods, fertiliser types, production lines or any factor with several levels. Enter each group's values on its own row, separated by semicolons; the calculator returns F, the p-value, both degrees of freedom and η².

One-way ANOVA compares two kinds of spreadGroup means 6.5, 8.5 and 6.75 around a grand mean of 7.25; mean square between 4.75 divided by mean square within 1.42 gives F of 3.35.Spread between groups vs within groupsGroup AGroup BGroup Cgrand mean 7.255678910▲ mean6.58.56.75Between groups9.5 ÷ 2 = 4.75Within groups12.75 ÷ 9 ≈ 1.42F = 4.75 ÷ 1.42 ≈ 3.35df 2 / 9 · p ≈ 0.082 · η² ≈ 0.43
F divides the between-group spread (4.75) by the within-group noise (1.42): F ≈ 3.35, p ≈ 0.082.

How it is calculated

  1. Compute each group mean and the grand mean of all N values.
  2. SS_between = Σ nⱼ (group meanⱼ − grand mean)², the spread of group means.
  3. SS_within = Σ Σ (x − group mean)², the spread inside groups.
  4. Mean squares: MS_between = SS_between ÷ (k − 1) and MS_within = SS_within ÷ (N − k), where k is the number of groups.
  5. F = MS_between ÷ MS_within; the p-value is the upper tail of the F distribution with (k − 1, N − k) df.
  6. η² = SS_between ÷ (SS_between + SS_within).

The principle

Total variation splits exactly into a part explained by group membership and a part left inside groups. MS_within estimates the random noise variance whatever the truth. MS_between estimates the same noise variance only if all population means are equal; if they differ, it is inflated. Their ratio is therefore close to 1 under the null hypothesis and large when the means really differ. With normal data and equal variances, the ratio follows the F distribution introduced by R. A. Fisher.

Worked example

  1. Groups: {5, 6, 7, 8}, {7, 8, 9, 10}, {6, 7, 6, 8}; k = 3, N = 12.
  2. Group means 6.5, 8.5, 6.75; grand mean 87 ÷ 12 = 7.25.
  3. SS_between = 4(0.5625 + 1.5625 + 0.25) = 9.5.
  4. SS_within = 5 + 5 + 2.75 = 12.75.
  5. MS_between = 9.5 ÷ 2 = 4.75; MS_within = 12.75 ÷ 9 ≈ 1.4167.
  6. F ≈ 3.3529, df 2 / 9, p ≈ 0.0816.
  7. η² = 9.5 ÷ 22.25 ≈ 0.4270.

How to read the result

Where does your result fall?SmallMediumLarge0.010.060.14NegligibleSmallMediumLargeYour result: 0.426966 · LargeReference: Cohen (1988) η² benchmarks
Where does your result fall?

With p ≈ 0.082 > 0.05 the means are not significantly different at the 5% level; the 5% critical F for (2, 9) df is about 4.26. Yet η² ≈ 0.43 says group membership accounts for 43% of the observed variation, a large share; the sample is simply too small to be conclusive. A significant F only says that at least one mean differs; a post-hoc test such as Tukey's HSD is needed to find which.

Common mistakes

Keep in mind: ANOVA assumes independent observations, roughly normal residuals and similar variances across groups. With clearly unequal variances use Welch's ANOVA; with strongly non-normal or ordinal data consider the Kruskal–Wallis test.

Frequently asked questions

Can I use ANOVA with only two groups?

Yes. With two groups F equals the square of the pooled two-sample t statistic and gives the same p-value.

Do the groups need equal sizes?

No, but equal sizes make the test more robust to unequal variances.

What counts as a large η²?

Common rough benchmarks are 0.01 small, 0.06 medium and 0.14 large, but context matters more.

Sources: Fisher, R. A. Statistical Methods for Research Workers (1925). · Montgomery, D. C. Design and Analysis of Experiments (Wiley).

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →