Skip to content

ANOVA Calculator

One-way ANOVA for 2 to 10 groups: ANOVA table, F, p-value and critical F, η² and ω², Welch’s ANOVA, Levene/Brown–Forsythe test and Tukey HSD or Bonferroni pairwise comparisons.

Calculator Details

F(2, 12):12.6667See results ↓

One group per line, values separated by commas or spaces; an optional name before a colon. 2 to 10 groups, at least 2 values each

Reject equal means when p is below this

Tukey’s HSD (default): the standard test for comparing every pair after ANOVA, built on the studentized range; the NIST/SEMATECH e-Handbook (§7.4.7) and Montgomery recommend it for all pairwise comparisons because its intervals are narrower than Bonferroni’s. Unequal group sizes use the Tukey–Kramer form. Bonferroni: pooled t-tests with each p-value multiplied by the number of pairs; simpler and more conservative

Your Results

F(2, 12): 12.6667

F(2, 12)

12.6667

p = 0.001103: the means differ at α = 0.05

Critical F

3.88529

Reject equal means when F > 3.8853

Effect size

η² = 0.6786

ω² = 0.6087 (less biased)

Welch’s ANOVA

F = 11.692

df = 2, 8; p = 0.004222

Equal variances (Brown–Forsythe)

p = 1

No evidence the variances differ

F(2, 12) = 12.667, p = 0.0011: at α = 0.05 at least one of the 3 group means differs (η² = 0.679).

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Group means

Group means

Detailed Breakdown

ANOVA table
SourceSSdfMSFp-value
Between groups63.333333231.66666712.66670.001103
Within groups30122.5
Total93.33333314

Same layout as Excel’s Analysis ToolPak and R’s summary(aov()).

Groups
GroupnMeanSDVarianceMedian
Fertiliser A5211.581142.521
Fertiliser B5261.581142.526
Fertiliser C5231.581142.523
Pairwise comparisons (Tukey HSD)
PairDifference95% intervalqAdjusted pSignificant?
Fertiliser A − Fertiliser B−5−7.6679 to −2.33217.07110.0008342Yes
Fertiliser A − Fertiliser C−2−4.6679 to 0.667862.82840.1546No
Fertiliser B − Fertiliser C30.33214 to 5.66794.24260.02772Yes

Studentized range q = |difference| ÷ √(MSW ÷ 2 × (1/nᵢ + 1/nⱼ)) with k = 3 and df = 12; critical q = 3.7729, so means more than the HSD of 2.6679 apart differ.

How This Calculator Works

How it's calculated

SSB = Σ nᵢ(x̄ᵢ − x̄)² · SSW = Σ Σ (x − x̄ᵢ)²

F = (SSB ÷ (k − 1)) ÷ (SSW ÷ (N − k))

Your numbers: k = 3 groups, N = 15 values, grand mean 23.333333. SSB = 63.333333 with 2 df, so MSB = 31.666667. SSW = 30 with 12 df, so MSW = 2.5. F = 31.666667 ÷ 2.5 = 12.666667. The upper tail of F(2, 12) beyond it is p = 0.001103; the critical value at α = 0.05 is 3.88529. η² = SSB ÷ SST = 63.333333 ÷ 93.333333 = 0.678571.

Frequently Asked Questions

What does one-way ANOVA test?

Whether the means of three or more independent groups are all equal. The null hypothesis is μ₁ = μ₂ = … = μₖ; the alternative is that at least one mean differs. It compares the variation between group means with the variation inside the groups: if the group means are further apart than the noise within groups would explain, F is large and p is small.

How is the F statistic calculated?

F = MSB ÷ MSW, where MSB = SSB ÷ (k − 1) is the between-groups mean square and MSW = SSW ÷ (N − k) the within-groups mean square. In the default example SSB = 63.3333, SSW = 30.0000, so F(2, 12) = 31.6667 ÷ 2.5000 = 12.6667.

How do I read the p-value?

It is the chance of an F at least this large if all the group means were equal. Below your significance level (usually 0.05), you conclude that at least one mean differs. For the default data p = 0.0011, well below 0.05. ANOVA does not say which groups differ: look at the pairwise comparisons for that.

What are the assumptions of ANOVA?

Independent observations, roughly normal data within each group, and equal variances across groups. ANOVA is fairly robust to non-normality with similar group sizes, but unequal variances combined with unequal group sizes can make it badly wrong. That is why the calculator also runs the Brown–Forsythe test and Welch’s ANOVA.

When should I use Welch’s ANOVA?

When the group variances differ, especially if the group sizes differ too. Welch’s ANOVA weights each group by n ÷ s² and adjusts the denominator degrees of freedom, so it keeps the error rate close to α. Many statisticians recommend it by default because it loses almost no power when the variances are equal.

What is the difference between η² and ω²?

Both measure the share of total variation explained by the groups. η² = SSB ÷ SST is simple but overestimates the effect in the population, especially with small samples. ω² corrects for that bias and can be slightly negative when there is no effect. Rough benchmarks (Cohen): 0.01 small, 0.06 medium, 0.14 large.

Why not just run t-tests between every pair of groups?

Every extra test adds another chance of a false positive. With 5 groups there are 10 pairs, and at α = 0.05 each, the chance of at least one false positive is about 40%. ANOVA tests all groups at once; afterwards, Tukey’s HSD (the default here) or Bonferroni-corrected tests (multiply each p by the number of pairs) keep the overall error rate near α.

Tukey HSD or Bonferroni: which should I use?

For comparing every pair of groups, Tukey’s HSD. It is built for exactly that job: it uses the distribution of the largest difference among k means (the studentized range), so its intervals are narrower than Bonferroni’s while keeping the same overall error rate, which is why the NIST/SEMATECH e-Handbook recommends it for all pairwise comparisons. Bonferroni is simpler and works for any set of tests, but it is more conservative, especially with many groups. In the default example the honestly significant difference is 2.67: B differs from A (p = 0.0008) and from C (p = 0.028), A and C do not (p = 0.15).

Is ANOVA with two groups the same as a t-test?

Yes. With two groups, one-way ANOVA gives F = t², where t is the pooled two-sample t statistic, and the p-values are identical. Welch’s ANOVA with two groups likewise equals Welch’s t-test.

Included: one-way ANOVA for 2 to 10 independent groups (NIST/SEMATECH e-Handbook §7.4.3), η² and ω², Welch’s ANOVA for unequal variances (Welch 1951), the Brown–Forsythe version of Levene’s test, and pairwise comparisons by Tukey’s HSD (default; Tukey–Kramer for unequal sizes, studentized range computed to about 10⁻⁷, so p-values below about 10⁻⁶ show only that they are very small) or Bonferroni-adjusted t-tests on the pooled variance. Results match R’s aov() and oneway.test() and scipy’s f_oneway, levene and tukey_hsd. Left out: Scheffé, Dunnett, Games–Howell (Tukey for unequal variances) and other post-hoc tests, two-way and repeated-measures ANOVA, ANCOVA, non-parametric alternatives (Kruskal–Wallis) and tests of normality.

ANOVA Calculator: One-Way ANOVA Table, F, p-Value and Effect Size

By FindMySum · Last reviewed

An ANOVA calculator tests whether three or more groups have the same mean. Analysis of variance does it with one number, the F statistic, which compares how far apart the group means are with how much the values vary inside each group. This calculator runs a one-way ANOVA for 2 to 10 groups and gives the full ANOVA table, the p-value and critical F, two effect sizes, Welch's ANOVA for unequal variances, the Brown–Forsythe test of equal variances, and Tukey HSD or Bonferroni comparisons of every pair of groups. Paste one group per line, with an optional name before a colon.

The idea behind ANOVA

Imagine three fertilisers tested on five plots each. Yields vary from plot to plot even with the same fertiliser: that is the within-group variation, the noise. The three fertiliser averages also differ: that is the between-group variation. If the fertilisers made no difference, the averages would differ only by about as much as noise predicts. ANOVA turns this into a ratio:

F = (variation between groups) ÷ (variation within groups).

An F near 1 is what you expect when all means are equal. A large F says the group means are further apart than chance explains.

Worked example with the default data

GroupValuesMean
Fertiliser A20, 21, 23, 19, 2221
Fertiliser B25, 27, 24, 26, 2826
Fertiliser C22, 24, 21, 23, 2523

The grand mean of all 15 values is 23.333.

  1. Between groups: SSB = Σ nᵢ(x̄ᵢ − x̄)² = 5(21 − 23.333)² + 5(26 − 23.333)² + 5(23 − 23.333)² = 63.333, with k − 1 = 2 degrees of freedom, so MSB = 31.667.
  2. Within groups: add the squared deviations from each group's own mean. Each group contributes 10, so SSW = 30, with N − k = 12 degrees of freedom, so MSW = 2.5.
  3. F = 31.667 ÷ 2.5 = 12.667.
  4. p-value: the chance of F(2, 12) ≥ 12.667 is 0.0011. The critical value at α = 0.05 is 3.885, and 12.667 is far beyond it.

So the fertilisers do not all give the same yield. The effect is large: η² = 63.333 ÷ 93.333 = 0.68, meaning 68% of the variation in yield is explained by fertiliser.

The ANOVA table

SourceSSdfMSFp
Between groups63.333231.66712.6670.0011
Within groups30122.5
Total93.33314

This is the layout of Excel's Analysis ToolPak and of R's summary(aov()). SS between plus SS within always equals the total, and so do the degrees of freedom.

Which groups differ?

A significant F says at least one mean differs. To find which, the calculator compares every pair, by default with Tukey's honestly significant difference (HSD). Each difference in means is divided by √(MSW ÷ 2 × (1/nᵢ + 1/nⱼ)) to give a studentized range q, and its p-value comes from the studentized range distribution for k groups and N − k degrees of freedom: the distribution of the largest gap among k means, so the error rate holds across all the pairs at once. With equal group sizes, any two means further apart than the HSD, q(1 − α) × √(MSW ÷ n), differ. In the example q(0.95; 3, 12) = 3.773 and the HSD is 3.773 × √(2.5 ÷ 5) = 2.67: B differs from A (p = 0.0008) and from C (p = 0.028), while A and C, 2 apart, do not (p = 0.15). With unequal group sizes the same formula is used pair by pair (the Tukey–Kramer form).

The other choice is Bonferroni: a t-test for each pair on the pooled variance, with each p-value multiplied by the number of pairs. It works for any collection of tests but is more conservative, so for comparing every pair the NIST/SEMATECH e-Handbook and Montgomery's textbook prefer Tukey, which is why it is the default. In the example Bonferroni gives adjusted p-values below 0.001, 0.033 and 0.21 for the same three pairs.

Checking the assumptions

ANOVA assumes independent observations, approximately normal data in each group, and equal variances. The calculator helps with the third.

  • Brown–Forsythe test: a one-way ANOVA on the absolute deviations of each value from its group's median. A small p-value means the spreads differ. It is the robust version of Levene's test and the default in R's car::leveneTest and scipy's levene.
  • Welch's ANOVA: weights each group by nᵢ ÷ sᵢ² and adjusts the denominator degrees of freedom. It stays accurate when variances differ and loses very little when they don't, so it is a sound default, particularly with unequal group sizes.

Effect sizes

The p-value depends on sample size: a tiny difference becomes significant with enough data. Effect sizes describe how big the difference is.

  • η² (eta squared) = SSB ÷ SST, the share of total variation explained by the groups.
  • ω² (omega squared) = (SSB − (k − 1)·MSW) ÷ (SST + MSW), a less biased estimate of the population effect. It is smaller than η² and can be slightly negative when there is no effect.

Common rough guides are 0.01 small, 0.06 medium and 0.14 large, though what counts as large depends on the field.

Common mistakes

  • Running many t-tests instead of ANOVA. Each test adds a chance of a false positive; ten tests at α = 0.05 give about a 40% chance of at least one.
  • Using ANOVA on paired or repeated data. The same people measured three times are not independent groups; use repeated-measures ANOVA.
  • Ignoring unequal variances. Look at the Brown–Forsythe result, and report Welch's F when it is significant.
  • Reporting only p. Give F with both degrees of freedom, p, and an effect size.

Related calculators

Use the t-test calculator for two groups, the chi-square calculator for counts in categories, the standard deviation calculator to describe each group's spread, and the critical value calculator for F critical values at any α.

More questions

What does a significant ANOVA result tell me?

Only that the group means are not all equal. It does not say which groups differ, by how much, or whether the difference matters in practice. Follow it with pairwise comparisons for the which, the group means and their differences for the how much, and an effect size such as ω² for practical importance.

Can I use ANOVA with groups of different sizes?

Yes. The formulas weight each group by its size. Unequal sizes do make ANOVA more sensitive to unequal variances: if the smaller groups have the larger variances, the classic F test rejects too often. Check the Brown–Forsythe test and use Welch's ANOVA when in doubt.

What should I do if my data are not normal?

With 15 or more values per group, ANOVA is usually robust to moderate non-normality because group means are close to normal by the central limit theorem. For small, strongly skewed or ordinal data, use the Kruskal–Wallis test, which compares ranks instead of means.

What is the difference between one-way and two-way ANOVA?

One-way ANOVA has a single factor, such as fertiliser type. Two-way ANOVA has two factors at once, such as fertiliser and watering level, and can test whether they interact. This calculator handles one factor; a two-factor design needs a cell for every combination and a different table.

How do I report an ANOVA result?

APA style gives the F statistic with both degrees of freedom, the p-value and an effect size, for example: F(2, 12) = 12.67, p = .001, ω² = .61. Add the group means and standard deviations in a table, and say which post-hoc test you used for the pairwise comparisons.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy