ANOVA Calculator

Figran

Paste your groups to get the ANOVA table, post hoc tests and a graph with brackets or letters.

  • One-way, Welch or Kruskal–Wallis
  • Tukey, Dunnett, Games–Howell, Dunn
  • Graph with brackets or letters

Data

Data

Test

Test
Post hoc
Options

Plot
Error bars
Labels
Bracket text
Show
Color
Width
p = 0.016

One-way ANOVA F(2, 27) = 4.85 · η² = 0.26 · 1 of 3 pairs differ (Tukey)

34567Dried weight of plantsctrltrt1trt2p = 0.012

ANOVA table

SourceSSdfMSFp
Between groups3.7721.884.850.016
Within groups10.49270.39——
Total14.2629———

Post hoc comparisons

ComparisonDifferenceLowerUpperpp < α
trt1 – ctrl−0.37−1.060.320.39No
trt2 – ctrl0.49−0.201.190.20No
trt2 – trt10.870.171.560.012Yes

Descriptive statistics

GroupnMeanSDSEM95% CIMedianQ1Q3MinMax
ctrl105.030.580.18[4.61, 5.45]5.154.555.294.176.11
trt1104.660.790.25[4.09, 5.23]4.554.214.873.596.03
trt2105.530.440.14[5.21, 5.84]5.445.275.734.926.31

Effect sizes

η²0.26 (95% CI [0.0099, 0.46])
ω²0.20

Assumption checks

TestStatisticp
Levene (median)F = 1.120.34
Residual Shapiro–WilkW = 0.970.44
Maximum/minimum SD1.79—

Use these as a description, not as a gate for choosing the test.

Report

Results

One-way ANOVA: F(2, 27) = 4.85, p = .016, η² = .26. trt2 versus trt1: difference 0.87, 95% CI [0.17, 1.56], p = .012. Remaining pairs had p = .20 or larger.

Methods

Groups were compared using one-way ANOVA followed by Tukey’s HSD (α = 0.05).

ANOVA calculator examples

Explore common designs and load an example into the calculator.

34567Dried weight of plantsctrltrt1trt2p = 0.012

One-way ANOVA example: plant dry weight

Compare a control and two treatments.

Source: R PlantGrowth · 3 groups · 10 plants each

0100200300400500Chick weight (g)chorsebeanbclinseedbsoybeanasunflowerabmeatmealacasein

Compact letters: chick weight by feed

Compare six feeds with compact letters.

Source: R chickwts · 6 groups

0102030Insect countABCDEF*********************************

Welch’s ANOVA and Games–Howell: insect sprays

Compare sprays with unequal variation.

Source: R InsectSprays · 6 groups

050100150200Ozone (ppb)MayJunJulAugSepp = 0.035p < 0.0001p = 0.013p = 0.00036

Kruskal–Wallis test: ozone by month

Compare skewed ozone measurements by month.

Source: R airquality · 5 months

0510152025Recovery time (min)b0b1b2b3p = 0.00012

Dunnett’s test: blanket recovery vs standard

Compare treatments with the standard blanket.

Source: R multcomp recovery · 4 groups

020406080Warp breaks per loomLMHp = 0.0072p = 0.0090

From mean, SD and n: warp breaks by tension

Calculate from summary statistics.

Source: R warpbreaks · 3 groups

010203040Tooth length0.5 mg/day1 mg/day2 mg/day************

ANOVA bar graph with stars: vitamin C dose

Show dose comparisons as a bar graph.

Source: R ToothGrowth · 3 doses

234Mucociliary efficiencyNormalObstructive airwaydiseaseAsbestosis

Kruskal–Wallis with small groups: mucociliary clearance

Compare three small samples by rank.

Source: Hollander & Wolfe 1973 · 3 groups

How to run a one-way ANOVA

From group values to a figure and report.

  1. 1Paste your groups

    Enter raw values or mean, SD and n.

  2. 2Choose a test

    Select one-way ANOVA, Welch or Kruskal–Wallis.

  3. 3Read the comparisons

    Choose a post hoc test and review the results.

  4. 4Export your figure

    Choose brackets or letters and download your figure.

Which ANOVA and post hoc test should I use?

Choose a test that matches your data and comparison.

Data situationTestPost hocEffectDefault labels
Similar group variancesOne-way ANOVATukey (all pairs)η² / ω²Brackets
Compare treatments with a controlOne-way ANOVADunnett (vs control)η² / ω²Brackets
Different group variancesWelch ANOVAGames–Howellη² / ω²Brackets
Ranked or strongly skewed dataKruskal–WallisDunnε²Brackets

Welch's ANOVA when SDs differ

Welch’s ANOVA allows unequal variances; Games–Howell provides all-pair comparisons without assuming a common variance.

Normality and equal variances

Independent observations and suitable residual distributions matter. Median-centered Levene is the Brown–Forsythe test; use checks as context, not as an automatic gate.

Brackets or letters

Brackets show individual comparisons. Groups sharing a letter have not been separated by the selected post hoc test at the chosen alpha.

References: Tukey (1953) · Kramer (1956) · Dunnett (1955) · Games & Howell (1976) · Dunn (1964) · Delacre et al. (2019) · Brown & Forsythe (1974) · Piepho (2004)

One-way ANOVA formulas

The table partitions variation within and between groups.

One-way ANOVA

SSbetween = Σ ni(x̄i − x̄)2 · SSwithin = Σ(ni − 1)si2

F = (SSbetween / (k − 1)) / (SSwithin / (N − k))

η² = SSbetween / SStotal · ω² = (SSbetween − (k − 1)MSwithin) / (SStotal + MSwithin)

Welch ANOVA

wi = ni / si² · F = [Σwi(x̄i − x̄w)² / (k − 1)] / [1 + 2(k − 2)B / (k² − 1)]

B = Σ (1 − wi / Σw)2 / (ni − 1)

Tukey

q = |x̄i − x̄j| / √[MSwithin(1/ni + 1/nj)/2]

For PlantGrowth, F = 1.883 / 0.389 = 4.85.

Rank tests

H = [12ΣniR̄i² / (N(N + 1)) − 3(N + 1)] / C

C = 1 − Σ(t³ − t) / (N³ − N) · z = (R̄i − R̄j) / √[(N(N + 1)/12 − Σ(t³ − t)/(12(N − 1)))(1/ni + 1/nj)]

References: Fisher (1925) · Welch (1951) · Kruskal & Wallis (1952)

ANOVA calculator FAQ

When should I use ANOVA instead of a t test?

Use ANOVA for three or more independent groups; a t test is often suitable for two. Multiple t tests inflate the family-wise error rate. For two groups, the ordinary ANOVA F equals Student’s t squared. t-test calculator.

Do I need a significant ANOVA before post hoc tests?

No. These procedures adjust the pairwise comparisons; report planned comparisons when only a few pairs matter.

What is the non-parametric alternative to one-way ANOVA?

Kruskal–Wallis compares rank distributions and can be followed by Dunn comparisons. Its p value here uses a chi-square approximation.

What are the assumptions of one-way ANOVA?

Observations should be independent, with approximately normal residuals and similar variances. Levene and Shapiro–Wilk checks provide context; Welch accommodates unequal variances. Power analysis calculator.

Should I report eta squared or omega squared?

Both describe effect size. Omega squared has less small-sample bias, while eta squared is commonly reported and equals R squared in one-way ANOVA. Effect size calculator.

How do I report one-way ANOVA results?

Report F with its degrees of freedom, the p value and an effect size, followed by the post hoc method and relevant comparisons.

Can I use this for repeated measures?

No. Repeated observations on the same participant require a repeated-measures analysis or a Friedman test; two time points may use a paired t test. t-test calculator.

Can I run a two-way ANOVA here?

No. This tool tests one factor. Two-factor designs require a model that includes the interaction.

Do the results match R and other software?

The one-way, Welch, Tukey and Kruskal–Wallis calculations follow the corresponding R methods. Levene variants can differ by their choice of center. Your data stay in your browser.

Compare your groups

Run an ANOVA and make a figure from your data.

Run an ANOVA