One-way ANOVA and Tukey HSD calculator

Enter each group's size, mean and standard deviation to get the one-way and Welch's ANOVA and all pairwise comparisons with Tukey–Kramer or Games–Howell, including simultaneous confidence intervals.

No accountInstant resultsFrom summary statistics

Enter each group's summary

Sample size, mean and standard deviation, as reported in a table or a paper.

GROUP SUMMARIES

LIVE RESULT

INSTANT

ANOVA and pairwise comparisons

Assumes independent groups and roughly normal data within each group. With strongly skewed data or small groups, use a rank-based test on the raw data instead.

From a significant ANOVA to which groups differ

A one-way ANOVA tells you whether any of three or more group means differ, but not which. Testing every pair with separate t tests inflates the chance of a false positive. Tukey's honestly significant difference (HSD) test compares all pairs while keeping the family-wise error rate at α, using the studentized range distribution. The Tukey–Kramer version handles unequal group sizes.

ANOVA: F = MSbetween ÷ MSwithin, MSwithin = Σ(ni − 1)si² ÷ (N − k)
Tukey–Kramer: q = |mi − mj| ÷ √(MSwithin ÷ 2 × (1/ni + 1/nj)), df = N − k
Games–Howell: q = |mi − mj| ÷ √((si²/ni + sj²/nj) ÷ 2), Welch df
p = P(Qk, df ≥ q); CI = difference ± qcrit × SE

Because the calculator works from summary statistics, you can run the post hoc tests for a published ANOVA that reports only means and standard deviations. Results match SciPy's tukey_hsd and f_oneway and pingouin's pairwise_gameshowell and welch_anova.

Worked example

Three groups of employees took a skills test: no training, a short course and a long course. The one-way ANOVA gives F(2, 34) = 4.61, p = .017, η² = 0.21. Tukey's test shows that control vs long training differ by 3.30 points (p = .014), while control vs short training (p = .128) and short training vs long training (p = .443) do not differ significantly. The training effect is clear only for the long course.

Tukey or Games–Howell?

  • Tukey–Kramer assumes equal variances in all groups. It is the standard choice and is somewhat conservative with unequal group sizes.
  • Games–Howell does not assume equal variances and uses a separate Welch degrees of freedom for each pair. Prefer it when the largest standard deviation is more than about 1.5 to 2 times the smallest, especially if group sizes also differ. Pair it with Welch's ANOVA, which the calculator also reports.
  • Only a few planned comparisons? Testing them with t tests and a Holm correction is often more powerful than Tukey's test of all pairs; use the multiple comparisons calculator.

Reporting

Report the ANOVA with its effect size, the post hoc method, and each relevant difference with its adjusted confidence interval, for example: “F(2, 34) = 4.61, p = .017, η² = .21; Tukey's HSD showed higher scores after the long course than with no training, difference 3.30, 95% CI [0.59, 6.01].” For an effect size with a confidence interval from the F statistic, use the effect size from t or F calculator; to plan the sample for an ANOVA, use the power analysis calculator; or read the post-hoc tests and multiple comparisons guide.

Common questions

Frequently asked questions

When should I choose Tukey HSD vs Games–Howell?

Use Tukey HSD (Tukey–Kramer when sample sizes differ) when group variances are roughly equal. Use Games–Howell alongside Welch’s ANOVA when group standard deviations or sample sizes differ noticeably.

Does Tukey–Kramer work with unequal group sample sizes?

Yes. The calculator automatically applies the Tukey–Kramer harmonic sample-size adjustment whenever groups have different n.

Is Tukey HSD better than Bonferroni-corrected t-tests?

When testing all pairwise comparisons between group means after an ANOVA, Tukey HSD uses the studentized range distribution and is generally more powerful (narrower confidence intervals) than Bonferroni.