Analysis of variance (ANOVA) answers one question: are the means of several groups all equal, or does at least one of them differ by more than chance would explain? Running a t-test on every pair of groups inflates the risk of a false alarm — with five groups there are ten pairs, and the chance of at least one spurious "significant" result at 5 % climbs to about 40 %. One-way ANOVA tests all groups at once with a single F test.
The idea, due to Ronald Fisher, is to split the total variability of the data into two parts: the spread between the group means and the spread within each group. If the groups truly share one mean, both parts estimate the same background noise and their ratio, , stays near 1. A large means the group means are further apart than the noise inside the groups can explain.
Enter 2 to 8 groups either as raw data or as summary statistics (size, mean, standard deviation). The calculator returns the full ANOVA table — sums of squares, degrees of freedom, mean squares — with the statistic, its exact p-value from the F distribution, the critical value at your significance level, and two effect sizes, eta squared () and omega squared ().
How to use this calculator
- Choose Raw data or Summary (n, mean, SD).
- Raw data: pick the number of groups and type the observations of each group, separated by spaces or new lines. Groups may have different sizes.
- Summary: enter one row per group with its size, mean and sample standard deviation (divisor ). Add rows for up to 8 groups.
- Set the significance level α (0.05 by default).
- Read , the p-value and the decision. The table under the result is the standard ANOVA table, and the steps show each intermediate quantity.
The formula
With groups, group sizes , group means , sample standard deviations , total size and grand mean :
Under (all population means equal) follows an F distribution with and degrees of freedom. The p-value is the upper tail , computed with the regularized incomplete beta function: .
Effect sizes: (share of the total variation explained by the groups) and , a less biased estimate for the population.
Worked example
NIST example (the raw-data default): three treatment levels with five observations each. The group means are 5.34, 7.72 and 8.56, and the grand mean is 7.2067.
- (sum of the squared deviations inside each group)
- and
- with 2 and 12 degrees of freedom
The p-value is 0.0032, far below 0.05 (the critical value is $F^* = 3.89$), so the treatment means are not all equal. : the treatments explain about 62 % of the variation.
Summary-statistics default (OpenStax Example 13.4, bean plants grown in three media, n = 5 each, means 24.2, 25.4 and 24.4): , p = 0.876. The differences between media are well within the noise.
Reading the ANOVA table
| Source | SS | df | MS | F |
|---|---|---|---|---|
| Between groups | ||||
| Within groups | ||||
| Total |
The within mean square is the pooled variance of the groups: it estimates the noise whether or not is true. The between mean square only estimates that same noise when the population means are equal; real differences between means inflate it. The degrees of freedom add up (), and so do the sums of squares. To check the degrees of freedom on their own, see the degrees of freedom calculator.
Assumptions and what to do next
One-way ANOVA assumes independent observations, roughly normal data within each group and similar variances across groups. It is fairly robust to mild non-normality, especially with equal group sizes; a common rule of thumb tolerates a largest-to-smallest standard deviation ratio up to about 2. With very unequal variances, Welch's ANOVA is safer; with strongly skewed small samples, the Kruskal–Wallis test is the usual non-parametric alternative.
A significant F only says that some difference exists. To find which groups differ, run a post-hoc procedure such as Tukey's HSD or pairwise t-tests with a Bonferroni correction. With exactly two groups, one-way ANOVA is equivalent to the pooled two-sample t-test: and the p-values are identical.
Frequently asked questions
What does the F statistic mean in ANOVA?
F is the ratio of the variance between group means to the variance within groups. Values near 1 are what chance alone produces; the larger F is, the stronger the evidence that the group means differ.
Why not just run several t-tests?
Each test carries its own risk of a false positive, and the risks add up. ANOVA tests all means in one step at the chosen α, then post-hoc tests with adjusted thresholds locate the differences.
Can the groups have different sizes?
Yes. The formulas weight each group by its size. Balanced designs are more robust to unequal variances, but unbalanced data are handled exactly.
What is a good eta squared?
Cohen’s rough benchmarks are 0.01 small, 0.06 medium and 0.14 large. Eta squared overstates the population effect in small samples; omega squared corrects for that bias.
Can I use summary statistics instead of raw data?
Yes. One-way ANOVA only needs each group’s size, mean and sample standard deviation, so results from a paper or report can be re-analysed directly.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.3 Are the means equal? (one-way ANOVA)
- NIST/SEMATECH e-Handbook, §7.4.3.3 The ANOVA table and tests of hypotheses about means
- OpenStax, Introductory Statistics 2e, §13.3 Facts About the F Distribution
- OpenStax, Introductory Statistics 2e, §13.2 The F Distribution and the F-Ratio
Last updated: