ANOVA explained: when and how to use it

By Dr. Rafiq Muhammad, MD, PhD · Updated June 2026

ANOVA — analysis of variance — tests whether three or more group means differ more than chance would predict. Despite the name, it’s about comparing means; it just does so by partitioning variance. It returns an F-statistic and a p-value — and a significant result means “at least one group differs,” not which one.

Why not just run lots of t-tests?

Because every t-test carries a ~5% false-positive risk, and they pile up. Compare four groups pairwise and you need six t-tests — the chance of at least one false alarm climbs toward 25%. ANOVA tests everything in a single step at a controlled error rate. That’s the whole reason it exists.

Key idea: ANOVA splits the total variation into “between-group” and “within-group” parts. If between-group variation is large relative to within-group noise, the F-ratio is big and the means probably aren’t all equal.

One-way vs two-way

You still need a post-hoc test

A significant ANOVA says the groups aren’t all equal but not which pairs differ. That’s what post-hoc tests (Tukey’s HSD, Bonferroni) are for — they find the specific differences while keeping the overall false-positive rate in check. Report the F-statistic, the p-value, an effect size (η² or partial η²), and the post-hoc comparisons.

Assumptions

Roughly normal residuals, independent observations, and similar variances across groups (homogeneity of variance). If variances differ badly, use Welch’s ANOVA; if normality is badly violated, the Kruskal–Wallis test is the non-parametric alternative.

Two groups or three-plus? Independent or repeated? The free Statistical Test Selector takes you from your design to the right test — t-test, ANOVA, or a non-parametric alternative — in four questions.

Get the free Statistical Test Selector

A step-by-step path from your research question to the right test — comparing groups, relationships and prediction, or categorical data — with an assumptions checklist, a fill-in selection worksheet, and two worked examples, from the Statistical Test Selection Workbook. We’ll email you the download link.

One email with your download, then occasional research tips. One-click unsubscribe, anytime. We never sell your data.

Frequently asked questions

What does ANOVA test?

Whether three or more group means differ more than chance — returning an F-statistic and p-value. Significant = at least one differs.

Why not run many t-tests?

Multiple t-tests compound the false-positive rate; ANOVA tests all groups at once at a controlled error rate.

One-way vs two-way?

One-way = one factor; two-way = two factors plus their interaction.

Why a post-hoc test?

ANOVA says the groups aren’t all equal but not which pairs; Tukey/Bonferroni find the specific differences safely.

The workbook for this

The Statistical Test Selection Workbook

“Which test do I use?” It is the single most common question asked by graduate students and clinical researchers.

58 fill-in templates. Paperback $31.99 on Amazon

See inside the workbook

Just want the templates? The Statistical Test Selection Kit: every template as a fillable PDF, $19.

The t-test explained → Open the Test Selector →