One-way ANOVA calculator (Tukey, Dunnett, Welch, Kruskal–Wallis)
Paste the values of three or more groups and the ANOVA table, multiple comparisons and a results sentence appear instantly — including Tukey and Dunnett, which Excel does not offer. The calculations use the same code as the BenchFig app and match SciPy (Python’s statistics library).
Your numbers are processed only in this browser. Nothing is sent to a server (it is gone when you close the page).
Paste one column per group (group names in the first row) or a long table with two columns: group | value. Group sizes may differ. Blanks, N/A and #DIV/0! are treated as missing; decimal commas (12,5), thousands separators (1,234) and ID columns (ID, Mouse …) are understood.
How to use it
- Copy your table in Excel and paste it into the box. One column per group, with the group names in the first row, is the standard layout; a long table (group | value, one row per sample) also works.
- Choose the test and the comparisons. Tukey compares all pairs; Dunnett compares each group with a control. If the SDs differ a lot, use Welch’s ANOVA with Games–Howell; with outliers or strong skew, use Kruskal–Wallis with Dunn’s test.
- Copy the results sentence into your manuscript. “Make the graph in BenchFig” opens the graph screen with the same values and test.
Both layouts give the same result:
| Control | Drug A | Drug B |
|---|---|---|
| 12.1 | 14.2 | 13.0 |
| 13.4 | 15.1 | 14.1 |
| 11.8 | 13.6 | 12.6 |
| … | … | … |
One column per group (like a Prism column table)
| Group | Value |
|---|---|
| Control | 12.1 |
| Control | 13.4 |
| Drug A | 14.2 |
| … | … |
Long format (R, SPSS and other software)
Rows with an empty group cell are read as the group above (merged cells in Excel). The result shows how the table was read (layout, number of groups, dropped columns); if it is wrong, change “Table layout”.
Which test should I use?
| Your data and question | Overall test | Multiple comparisons |
|---|---|---|
| The usual case (roughly normal, similar SDs) | One-way ANOVA | Tukey (all pairs) |
| Only each group versus a control (doses, treated vs untreated) | One-way ANOVA | Dunnett (fewer comparisons, more power) |
| SDs differ a lot between groups | Welch’s ANOVA | Games–Howell |
| Outliers, strongly skewed data, or ranks | Kruskal–Wallis test | Dunn (Holm or Bonferroni) |
| The same subjects measured 3+ times (paired) | Repeated-measures ANOVA or Friedman test | — this calculator handles independent groups only |
Multiple-comparison tests control their own error rate whether or not the ANOVA is significant. Decide which pairs to compare before looking at the data. See Tukey vs Dunnett and multiple-comparison corrections (Bonferroni, Holm).
How to read the results
- F and P: F = between-group mean square ÷ within-group mean square. P < 0.05 means at least one group mean differs; the multiple comparisons show which
- F(2, 12): the degrees of freedom (groups − 1, total n − groups). Welch’s ANOVA has a non-integer denominator df
- η²: the share of the total variation explained by the groups. ω² corrects η² for its upward bias and is a little smaller
- Multiple-comparison P values are adjusted for the number of pairs. If the 95% CI of a difference excludes 0, P < 0.05 (Tukey, Games–Howell)
- Not significant ≠ no difference: with small n even large differences can miss significance. Look at the CIs too
Differences are the left group minus the right group, and each group minus the control for Dunnett — the same direction as the BenchFig app. The assumption checks (Brown–Forsythe test for equal variances, Shapiro–Wilk by group) have little power with small n and flag trivial deviations with large n, so judge them together with the dot plot (using the Shapiro–Wilk test).
Doing it in Excel
Excel’s Data → Data Analysis → “Anova: Single Factor” (enable the Analysis ToolPak) gives the same F and P in the ANOVA table. For P alone, use =F.DIST.RT(F, groups−1, total n−groups). But Excel has no Tukey, Dunnett, Games–Howell or Kruskal–Wallis, and repeating t tests for every pair inflates false positives, so run the multiple comparisons here or in a statistics package. The one-way ANOVA guide works through the sums of squares step by step.
What is calculated, and how it was checked
One-way ANOVA (F, P, sums of squares, η², ω²), Welch’s ANOVA, Tukey (Tukey–Kramer for unequal n: differences, adjusted P and 95% CIs), Dunnett (t and P from the multivariate t distribution by numerical integration), Games–Howell, the Brown–Forsythe and Levene tests, and the Kruskal–Wallis H and P (tie-corrected) all match SciPy 1.18 (f_oneway including equal_var=False, tukey_hsd, dunnett, levene, kruskal) in our tests; Games–Howell and Dunn’s z and adjusted P, which SciPy lacks, were checked against an independent implementation built on SciPy’s distribution functions (studentized_range, norm). Tests cover unequal n, a group with n = 2, a group with identical values, tables with missing cells, decimal commas and long-format tables. See also Dunnett’s test and the Kruskal–Wallis test and Dunn’s test.
FAQ
Is my data sent anywhere?
No. Everything is calculated inside this page in your browser; the numbers are never sent to a server and disappear when you close the page. “Make the graph in BenchFig” also hands the numbers to the graph screen within your browser.
Does it match Excel’s “Anova: Single Factor”?
Yes for the ANOVA table (sums of squares, df, F, P). This calculator adds the multiple comparisons Excel lacks (Tukey, Dunnett …), effect sizes and a results sentence.
Can the groups have different sizes?
Yes. Tukey becomes the Tukey–Kramer method for unequal n. If both the sizes and the SDs differ, Welch’s ANOVA with Games–Howell is safer.
The ANOVA is not significant, but a pair is significant in the multiple comparisons.
That can happen. Tukey and Dunnett control the error rate on their own and do not require a significant ANOVA. Report both results.
What about only two groups?
With two groups ANOVA gives the same answer as a t test (F equals t squared). Use the t test calculator for two groups.
Other calculators
Related guides
Product names are trademarks or registered trademarks of their respective owners.