CalcThis CalcThis
One-way ANOVA · Welch · Kruskal-Wallis · post hoc tests

ANOVA Calculator

Type or paste the values of each group and get F, the p-value, the ANOVA table and a picture of which groups differ. For the example of three teaching methods with five scores each the result is F = 19.3214 with 2 and 12 degrees of freedom, p = 0.000177.

Your groups

What do you have?

How will you enter the values?

Try an example

One-way ANOVA
—
Type the values of at least two groups to see F, the p-value, which groups differ and a picture of your data.
ANOVA
—

How to use the ANOVA calculator

Put each group’s values in its own box, separated by commas, spaces or new lines, or paste a table from a spreadsheet: one column per group, or two columns holding the value and the group name. The result updates as you type. With only sizes, averages and standard deviations, choose Summary.

The page picks the test from your data and says why. Under Go advanced you can choose the test and the pair comparisons yourself, leave outliers out, set the confidence level, plan for an expected effect and set the decimal places.

The one-way ANOVA formula

F = MS between ÷ MS within MS between = Σ n × (group mean − grand mean)² ÷ (k − 1) · MS within = Σ (value − its group mean)² ÷ (N − k) · k = number of groups · N = number of values

Worked example: three teaching methods

GroupScoresAverageSD
Method A23, 25, 28, 30, 2726.62.7
Method B31, 33, 35, 29, 3432.42.41
Method C22, 24, 21, 26, 2323.21.92
SourceSum of squaresdfMean squareF
Between groups216.42108.219.3214
Within groups67.2125.6
Total283.614

The grand mean is 27.4. F = 19.3214 is above the critical value 3.8853, and the p-value is 0.000177: at least one method gives a different average. Eta squared is 0.763, omega squared 0.7095 and Cohen’s f 1.7945.

Which methods differ: Tukey

PairDifference95% intervalp
A vs B-5.8-9.79 to -1.810.005779
A vs C3.4-0.59 to 7.390.09897
B vs C9.25.21 to 13.190.0001361

With three groups and 12 degrees of freedom the studentized range value is 3.7729, so two of these averages must differ by at least 3.99 to count. A and C differ by 3.4, less than that.

F critical values at 0.05

An F above the value is significant at 0.05. Columns are the between-groups degrees of freedom, rows the within-groups ones. For other values choose “F value” and leave F empty.

df123456
56.615.795.415.195.054.95
85.324.464.073.843.693.58
104.964.103.713.483.333.22
124.753.893.493.263.113.00
154.543.683.293.062.902.79
204.353.493.102.872.712.60
304.173.322.922.692.532.42
404.083.232.842.612.452.34
604.003.152.762.532.372.25
1203.923.072.682.452.292.18

Classic, Welch or Kruskal-Wallis?

The classic ANOVA assumes similar spread in every group and roughly normal values. Welch’s version drops the equal-spread assumption. Kruskal-Wallis replaces the values with their ranks. For the teaching example the three give F = 19.3214 (p = 0.000177), F = 20.5348 with 2 and 7.83 degrees of freedom (p = 0.0007669) and H = 10.4637 (p = 0.005344). Levene’s test gives p = 0.7954 and Shapiro-Wilk p = 0.7391, so the classic test is recommended.

Post hoc tests

Tukey compares every pair with the pooled spread and suits the classic ANOVA. Games-Howell uses each pair’s own spread and goes with Welch. Dunn compares average ranks after Kruskal-Wallis. Bonferroni multiplies each t-test p-value by the number of pairs and is the most cautious and simplest of them.

Reading the picture

Each group sits on the same scale: every value as a dot, a box around the middle half of the values with a line at the median, the average as a tick and its interval as a bar. Letters summarise the comparisons: two groups with a letter in common are not shown to differ. Pick a pair in the table to see its difference and interval against zero. The page also reruns the test without each group in turn, so you can see whether one group carries the result.

Effect size and sample size

Cohen’s f measures how far apart the group averages are compared with the spread inside them. In the teaching example it is very large, so 3 values per group would already give 80% power at those averages. Effects seen in small studies tend to shrink, so plan with the smallest effect that matters.

Groupsf = 0.10f = 0.25f = 0.40
23946426
33235322
42744519
52404016
62153615

Values per group needed for 80% power at α = 0.05.

Related tools

For two groups use the t-test calculator; to turn another statistic into a probability the p-value calculator; for counts in categories the chi square calculator; and for the spread of one list the standard deviation calculator.

Sources

  • The Tukey intervals and the studentized range follow the NIST/SEMATECH e-Handbook, section 7.4.7.1, and the distribution function in the Wikipedia article “Studentized range distribution”, computed here by numerical integration (read 2026-11-27). The handbook’s example value, q = 4.65 for 5 means and 10 degrees of freedom, is reproduced.
  • Welch’s ANOVA (weights n ÷ variance, adjusted grand mean and small-sample correction) follows the pingouin welch_anova reference code; Games-Howell follows the PMCMRplus documentation of gamesHowellTest (read 2026-11-27).
  • The Kruskal-Wallis H with the tie correction follows the Wikipedia article “Kruskal–Wallis test”; Dunn’s comparisons follow the scikit-posthocs code and the PMCMRplus documentation, with the Bonferroni adjustment Dunn proposed (read 2026-11-27).
  • Levene’s test around the group medians follows the NIST/SEMATECH e-Handbook, section 1.3.5.10. The Shapiro-Wilk test is algorithm AS R94 (Royston 1995) as distributed with SciPy 1.11 (read 2026-11-27).
  • The guide of at least 15 values per group for 2 to 9 groups and 20 for 10 to 12 before relying on ANOVA with data that do not look normal is from Minitab’s “Data considerations for One-Way ANOVA”; this page uses 20 above 12 groups too (read 2026-11-27). Choosing the test from checks on the same data is a rule of thumb, not a law.
  • Eta squared and omega squared follow the Wikipedia article “Effect size”; Cohen’s f of 0.10, 0.25 and 0.40 for small, medium and large is from the CASRAI guide “Effect size: eta squared”. Power uses the noncentral F distribution with noncentrality f² × N, as in the Wikipedia article “Noncentral F-distribution” (read 2026-11-27).
  • The feature set was compared with the ANOVA tools of Social Science Statistics, Stats Kingdom, Omnicalculator, Statistics by Jim, MiniWebtool, Pearson.com, GoodCalculators, StatPages and Daniel Soper, all opened on 2026-11-27.

For information only. Check the assumptions of the method and your own data before drawing conclusions.

Common questions

What is ANOVA?

ANOVA (analysis of variance) tests whether the averages of several groups differ by more than chance would produce. It compares the spread between the group averages with the spread of the values inside the groups. Their ratio is the F statistic.

When should I use ANOVA instead of a t-test?

Use ANOVA when you compare three or more groups. Running a t-test on every pair raises the chance of a false alarm. With two groups the classic ANOVA and the equal-variance t-test give the same p-value.

How do I read the F value and p-value?

A larger F means the group averages are further apart compared with the noise inside the groups. A p-value below your significance level, usually 0.05, says at least one average differs. In the example F = 19.3214 and p = 0.000177.

Which groups are different?

ANOVA alone does not say. A post hoc test compares each pair while keeping the overall false alarm rate in check. In the example Tukey gives p = 0.005779 for A and B, 0.09897 for A and C and 0.0001361 for B and C, so B stands apart from the other two.

What do the letters on the picture mean?

Groups that share a letter are not shown to differ. Groups with no letter in common are significantly different. In the example Method B has the letter a, and Methods A and C share the letter b.

What are the assumptions of one-way ANOVA?

Each value comes from a separate subject, the values in every group are roughly normal, and the groups have similar spread. The page checks the last two with Shapiro-Wilk and Levene. Independence has to come from how you collected the data.

What if the spreads are unequal?

Use Welch’s ANOVA, which does not assume equal variances, followed by Games-Howell comparisons. The page recommends it when Levene’s test finds a difference in spread.

What if my data are not normal?

With small groups that clearly depart from normality, the Kruskal-Wallis test works on ranks. In larger groups, at least 15 values each for up to 9 groups, ANOVA copes well with moderate departures.

Can I run ANOVA with only means and standard deviations?

Yes. Choose Summary and type each group’s size, average and standard deviation or standard error. The classic and Welch tests and the pair comparisons work; the normality, spread and rank tests need the raw values.

What is eta squared?

The share of all the variation that lies between the groups: between-groups sum of squares divided by the total. In the example it is 0.763. Cohen’s f turns it into √(η² ÷ (1 − η²)), here 1.7945.

How many values do I need per group?

It depends on the effect you want to detect. With three groups and α = 0.05, 80% power needs about 323 values per group for a small effect (f = 0.1), 53 for a medium one (0.25) and 22 for a large one (0.4).

I only have F and the degrees of freedom. Can I get the p-value?

Yes. Choose F value and type the two degrees of freedom and F. For F = 4.5 with 2 and 12 degrees of freedom p = 0.03482. Leave F empty to get the critical value, 3.8853 at 0.05.

Does this calculator do two-way ANOVA?

No. This page handles one factor: groups that differ in one way. Designs with two factors, or the same subjects measured repeatedly, need a different analysis.