Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

ANOVA calculator

Paste 2 to 6 groups of numbers to run a one-way ANOVA. You get the full ANOVA table, the F statistic and its p-value.

Numbers separated by commas, spaces or new lines. Fill 2 to 6 groups.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Already have an F statistic? Get its p-value with the p-value calculator. Want each group's spread in detail? Use the standard deviation calculator.

How one-way ANOVA works

ANOVA (analysis of variance) tests whether several group means are equal. It compares how far apart the group means are (between-group variation) with how spread out the values are inside each group (within-group variation).

SSB = Σ nᵢ(x̄ᵢ − x̄)² SSW = Σ Σ (x − x̄ᵢ)²
df between = k − 1 df within = N − k
MSB = SSB ÷ (k − 1) MSW = SSW ÷ (N − k)
F = MSB ÷ MSW

Here k is the number of groups, N the total number of values, x̄ᵢ each group's mean and x̄ the grand mean. The p-value is the chance of an F this large or larger if all the true means were equal. It comes from the F distribution with k − 1 and N − k degrees of freedom, worked out with the regularized incomplete beta function (a continued fraction, accurate to about 9 or more significant digits).

Worked example

This is the resistor example from the NIST/SEMATECH e-Handbook, which is already filled in above. Three temperature levels each have 5 readings, so k = 3 and N = 15.

  • Group means: 5.34, 7.72 and 8.56. The grand mean is 108.1 ÷ 15 = 7.20667.
  • SSB = 5 × (5.34 − 7.20667)² + 5 × (7.72 − 7.20667)² + 5 × (8.56 − 7.20667)² = 17.4222 + 1.3176 + 9.1576 = 27.8973.
  • SSW, adding the squared distances from each group's own mean: 4.992 + 4.868 + 7.592 = 17.452.
  • MSB = 27.8973 ÷ 2 = 13.9487. MSW = 17.452 ÷ 12 = 1.45433.
  • F = 13.9487 ÷ 1.45433 = 9.59, with 2 and 12 degrees of freedom, so p = 0.00325.

Since p is below 0.05, the temperature makes a difference. These figures match the ANOVA table NIST publishes for this data.

Getting a trustworthy result

  • ANOVA assumes the groups are independent, roughly normal, and have similar spreads. Compare the group SDs in the result. A common rule of thumb is that the largest should be no more than about twice the smallest.
  • A significant F says at least one mean differs, not which one. Follow up with a post-hoc test such as Tukey's HSD.
  • With exactly 2 groups, one-way ANOVA gives the same p-value as a two-sample t-test with pooled variance, and F = t².
  • η² (eta squared) is the share of the total variation explained by the groups. It shows how big the effect is, which a p-value doesn't.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • NIST resistor data: F = 9.59111 ✓
  • NIST resistor data: p = 0.00324822 ✓
  • NIST table: SSB 27.8973, df 2, MSB 13.9487 ✓
  • NIST table: SSW 17.452, df 12, MSW 1.45433 ✓
  • 1, 2, 3 vs 2, 3, 4: F = 1.5, p = 0.287864 ✓
  • Edge: groups with no spread inside are rejected ✓
  • Edge: one group asks for at least 2 ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What does the F value mean in ANOVA?

F is the ratio of the variation between group means to the variation within groups. Near 1 means the group means differ about as much as chance would produce. Much larger than 1 suggests a real difference.

What is the difference between SSB and SSW?

SSB (between groups) measures how far each group's mean is from the overall mean. SSW (within groups, also called error) measures how spread out values are inside each group. Together they make up the total sum of squares.

How are the degrees of freedom found?

Between groups: number of groups minus 1. Within groups: total number of values minus number of groups. For 3 groups of 5, that's 2 and 12.

Do the groups need to be the same size?

No. One-way ANOVA works with unequal group sizes. The test is less sensitive to unequal spreads when the groups are about the same size, though.

When should I use ANOVA instead of t-tests?

Use ANOVA for 3 or more groups. Running a t-test for every pair raises the chance of a false positive. With 3 groups at α = 0.05 each, the chance of at least one false alarm can reach about 14%.

Related calculators