Run a one-way ANOVA on 2 to 10 groups from raw values or from sizes, means and SDs, and get the full ANOVA table, effect size, Welch's test and an equal-variance check.
ANOVA Calculator - One-Way F-Test, Welch and Effect Size
Run a one-way ANOVA on 2 to 10 groups from raw values or from sizes, means and SDs, and get the full ANOVA table, effect size, Welch's test and an equal-variance check.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Problem: three group means, and three t-tests that overstate the evidence
Three fertilizers, three average corn yields: 549.4, 557.5 and 722.4. The tempting move is to run a t-test on every pair. With three groups that is three tests, and with every extra group the number of pairs grows fast: 6 pairs for four groups, 10 for five, 45 for ten. Each test carries its own 5% chance of a false alarm, so the chance that at least one of them fires by accident is far above 5%. A one-way ANOVA answers the first question with a single test: is there any difference among the means at all? This calculator runs that test from raw measurements or from a table of sizes, means and standard deviations, and adds the two checks a plain F-test leaves out.
Solution: one F-test, a Welch check and an equal-variance test
- Type of data - raw measurements when you have every value, summary statistics when a paper or a report gives only the size, mean and standard deviation of each group.
- Measurements of each group - one group per line, values separated by spaces, commas, semicolons or tabs, a dot for decimals. An optional name goes before a colon: Fertilizer A: 452 874 554. From 2 to 10 groups, up to 2,000 values each.
- Group statistics - in the summary mode, one line per group with three numbers: size, mean, sample standard deviation (the one with n - 1, which is what STDEV.S in Excel and sd() in R return), for example 13, 549.38, 168.76.
- Significance level - 0.05 in most fields, 0.01 when a false alarm is costly, 0.10 for a first look. Pick it before you see the result.
- Read the result - F with its degrees of freedom and the p-value, the full ANOVA table, η² and ω², the critical F, the Welch test, the Brown-Forsythe test of equal variances (raw data only) and a warning when the variances look unequal.
Which of the three results goes in your report
The calculator shows all three tests at once, so the choice is about which line goes into your report. The rules below follow the NCSS documentation for one-way ANOVA, which also quotes the rule of thumb used here: some authors switch to Welch when the largest group variance is more than four times the smallest.
| What you see | Report | Why |
|---|---|---|
| Brown-Forsythe p ≥ 0.05, variance ratio under 4 | Classic F | No sign that the equal-variance assumption fails |
| Brown-Forsythe p < 0.05, or ratio above 4 | Welch F | Welch does not pool the variances, so one noisy group cannot hide a difference |
| Only summary statistics | Classic F, or Welch if the SDs differ a lot | Without raw values no variance test is possible; the ratio rule still works |
| Clearly skewed data, ranks or ratings, equal spreads | Kruskal-Wallis | A rank test does not need normal data |
| Significant result with three or more groups | A post hoc test next | ANOVA says some means differ, not which ones |
NCSS adds a caution worth repeating: the Kruskal-Wallis test also assumes equal variances, so it is not the cure for unequal spreads. With normal data and unequal variances, Welch is the tool.
Five data sets, run through the calculator
Critical F at 0.05 and 0.01 for 2 to 6 groups
The numerator degrees of freedom are the number of groups minus one; the denominator degrees of freedom are the total number of observations minus the number of groups. Your F is significant when it is larger than the value in the table. The 0.05 rows agree with the NIST/SEMATECH e-Handbook F table to all three decimals.
| Denominator df | 2 groups | 3 groups | 4 groups | 5 groups | 6 groups |
|---|---|---|---|---|---|
| 10, α = 0.05 | 4.965 | 4.103 | 3.708 | 3.478 | 3.326 |
| 20, α = 0.05 | 4.351 | 3.493 | 3.098 | 2.866 | 2.711 |
| 30, α = 0.05 | 4.171 | 3.316 | 2.922 | 2.690 | 2.534 |
| 60, α = 0.05 | 4.001 | 3.150 | 2.758 | 2.525 | 2.368 |
| 100, α = 0.05 | 3.936 | 3.087 | 2.696 | 2.463 | 2.305 |
| 20, α = 0.01 | 8.096 | 5.849 | 4.938 | 4.431 | 4.103 |
| 60, α = 0.01 | 7.077 | 4.977 | 4.126 | 3.649 | 3.339 |
How the F statistic is put together
The total variation of all values around the grand mean splits into two parts. SS between adds up, for every group, its size times the squared distance of its mean from the grand mean. SS within adds up the squared distances of each value from its own group mean. Dividing each by its degrees of freedom gives the mean squares, and F = MS between / MS within. If the groups come from populations with the same mean, F hovers around 1; a large F means the group means are further apart than the scatter inside the groups would explain. η² is SS between over SS total; ω² = (SS between - df between × MS within) / (SS total + MS within) takes out the part of SS between that chance alone would produce, so it is usually a little smaller.
Welch's version weights each group by n / s² instead of pooling the variances, and corrects the denominator degrees of freedom, which is why the corn example shows 24.27 rather than 40. Brown-Forsythe runs an ordinary ANOVA on the absolute distances of each value from its group median; a small p there means the spreads differ.
ANOVA questions from coursework and lab reports
Related tools
Kruskal-Wallis Test Calculator
The rank-based comparison of several groups, with an exact p and Dunn pairs - See the calculator
Tukey HSD Calculator
Which pairs of group means differ after the ANOVA, with simultaneous intervals - See the calculator
Two-Sample T-Test Calculator
Two groups only, with Welch, Student and paired versions side by side - See the calculator
P-Value Calculator
Turns an F printed in a paper, with its two degrees of freedom, into a p-value - See the calculator
Wilcoxon Test Calculator
The rank-based test for two groups when the data are far from normal - See the calculator
Sample Size Calculator
How many observations a planned comparison of means needs before you collect them - See the calculator
Confidence Interval Calculator
An interval around each group mean, for the chart that goes next to the ANOVA table - See the calculator
Chi-Square Calculator
The counterpart of ANOVA when the outcome is a category rather than a measurement - See the calculator