Skip to content
Statculator
Hypothesis Tests

One-Way ANOVA Calculator

Free one-way ANOVA calculator for 2–10 groups, from raw data or n, mean and SD. Get the ANOVA table, F, p, η², Tukey HSD and Welch’s ANOVA with steps.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Usually 0.05 or 0.01.

Data input
Data for each group
n = 6
n = 6
n = 6

One box per group (2 to 10 groups). Groups can have different sizes; each needs at least 2 values.

One-way ANOVA assumes independent groups, roughly normal data within each group and similar group variances. Welch’s ANOVA and Tukey HSD post-hoc comparisons are included in the results.

Results

F statistic
13.1957
p-value
0.0005
df = (2, 15)
Eta squared, η²
0.6376

Reject H₀ at α = 0.05

p = 0.0005 ≤ 0.05. At the 5% level there is sufficient evidence that at least one group mean differs from the others.

Number of groups, k
3
Total observations, N
18
Grand mean
23.1111
Critical F (α = 0.05)
3.6823
Omega squared, ω²
0.5754
Welch’s F, df = (2, 9.88)
13.3004
Welch’s p-value
0.0016
Pooled SD, √MSW
1.5986
Highest mean
Group 2 (25.8333)
Lowest mean
Group 1 (21.5)

Interpretation: The between-groups mean square is 13.1957 times the within-groups mean square. Variation between the group means is too large to be explained by the spread within groups. Group membership accounts for 63.8% of the total variation (η²). In APA style: F(2, 15) = 13.20, p < .001, η² = .64.

  • A significant F says only that the means are not all equal. The Tukey HSD table shows which pairs differ: Group 1 vs Group 2, Group 2 vs Group 3.
f distribution curve with the shaded probability region, markers at F = 13.196F = 13.19602468101214F distribution, df = (2, 15)
Shaded area: rejection region at the chosen α. Dashed line: your test statistic.

ANOVA table

SourceSSdfMSFp-value
Between groups67.4444233.722213.19570.0005
Within groups (error)38.3333152.5556
Total105.777817

Group summary

GroupnMeanSDVarianceSum
Group 1621.51.87083.5129
Group 2625.83331.4722.1667155
Group 36221.41422132
All groups1823.11112.49446.2222416

Tukey HSD post-hoc comparisons

ComparisonMean differenceSEqAdjusted p95% CIDiffer?
Group 2 − Group 14.33330.65266.63980.00081.936 to 6.7307Yes
Group 3 − Group 10.50.65260.76610.8522-1.8974 to 2.8974No
Group 3 − Group 2-3.83330.65265.87370.0023-6.2307 to -1.436Yes

Tukey–Kramer method; critical q = 3.6734 with k = 3 and df = 15.

Step-by-step solution

  1. 1

    State the hypotheses

    This is a right-tailed test.

    H₀: μ₁ = μ₂ = μ₃
    H₁: at least one mean differs
  2. 2

    Choose the significance level

    α = 0.05
  3. 3

    Summarize each group

    Group 1: n = 6, x̄ = 21.5, s = 1.8708
    Group 2: n = 6, x̄ = 25.8333, s = 1.472
    Group 3: n = 6, x̄ = 22, s = 1.4142
  4. 4

    Find the grand mean

    x̄ = Σ nᵢx̄ᵢ / N = 416 / 18 = 23.1111
  5. 5

    Between-groups sum of squares

    How far each group mean sits from the grand mean, weighted by group size.

    SSB = Σ nᵢ(x̄ᵢ − x̄)²
    SSB = 6(21.5 − 23.1111)² + 6(25.8333 − 23.1111)² + 6(22 − 23.1111)² = 67.4444
  6. 6

    Within-groups sum of squares

    The spread of observations around their own group mean.

    SSW = Σ (nᵢ − 1)sᵢ²
    SSW = 5(1.8708)² + 5(1.472)² + 5(1.4142)² = 38.3333
  7. 7

    Degrees of freedom and mean squares

    df between = k − 1 = 3 − 1 = 2; df within = N − k = 18 − 3 = 15
    MSB = SSB / df between = 67.4444 / 2 = 33.7222
    MSW = SSW / df within = 38.3333 / 15 = 2.5556
  8. 8

    Calculate the F statistic

    F = MSB / MSW = 33.7222 / 2.5556 = 13.1957
  9. 9

    Find the p-value

    Use the F distribution with df = (2, 15). Only large F values count against H₀.

    p = P(F ≥ 13.1957) = 0.0005
  10. 10

    Find the critical value

    Critical value: 3.6823
    Reject H₀ if F ≥ 3.6823
  11. 11

    Decision: reject H₀

    At the 5% level there is sufficient evidence that at least one group mean differs from the others.

    p = 0.0005 ≤ α = 0.05
  12. 12

    Tukey HSD post-hoc comparisons

    Each pair of means is compared on the studentized range scale, using the pooled MSW and the Tukey–Kramer standard error for unequal group sizes. The p-values are already adjusted for making every comparison.

    SE = √(MSW / 2 × (1/nᵢ + 1/nⱼ)), q = |x̄ᵢ − x̄ⱼ| / SE
    Group 2 − Group 1: SE = √(2.5556 / 2 × (1/6 + 1/6)) = 0.6526, q = |4.3333| / 0.6526 = 6.6398
    Critical q(0.05; k = 3, df = 15) = 3.6734, so a pair differs when q > 3.6734
  13. 13

    Welch’s ANOVA (unequal variances)

    Welch’s version weights each group by nᵢ / sᵢ², so it does not assume equal variances.

    F = 13.3004 on df = (2, 9.8757), p = 0.0016
  14. 14

    Effect size

    η² is the share of total variation explained by group membership; ω² corrects it for sample size and is less biased.

    η² = SSB / SST = 67.4444 / 105.7778 = 0.6376
    ω² = (SSB − (k − 1)·MSW) / (SST + MSW) = (67.4444 − 2 × 2.5556) / (105.7778 + 2.5556) = 0.5754

What is an ANOVA Calculator?

This ANOVA calculator runs a one-way analysis of variance: it tests whether the means of two or more independent groups are all equal. It splits the total variation into a between-groups part and a within-groups part and compares them with F = MSB / MSW. A large F, with a small p-value from the F distribution on k − 1 and N − k degrees of freedom, means at least one group mean differs.

What the ANOVA Calculator does

The calculator handles a one-way (single-factor) ANOVA for 2 to 10 groups, from raw data or from group summaries (n, mean, SD). It fills in the complete ANOVA table (SS, df, MS, F and p for between and within groups), reports the critical F and the decision, and gives two effect sizes, η² and ω². Two follow-ups that most free tools leave out are built in: Tukey HSD post-hoc comparisons with adjusted p-values and confidence intervals, and Welch’s ANOVA for groups with unequal variances. Every number is worked through step by step, so it also works as an ANOVA solver for checking homework.

Use it when one numeric outcome is compared across the levels of a single factor: crop yield under several fertilizers, test scores for three teaching methods, waiting times at four branches. With two groups, ANOVA gives the same p-value as the pooled t-test (F = t²). It does not run a two-way, 2×2 or repeated-measures ANOVA; for two factors, read the Two-Way ANOVA: Main Effects, Interaction and a Worked Example guide and one-way vs two-way ANOVA. The One-Way ANOVA: Definition, Formulas and a Worked Example by Hand guide explains the ideas behind the table.

How to use the ANOVA Calculator

  1. Set the significance level α (0.05 is the usual choice).
  2. Choose Raw data and type or paste each group’s values into its own box (use Add group for more), or choose Summary statistics and enter each group’s name, n, mean and SD.
  3. Read F, the p-value and η², then check the ANOVA table and the Group summary.
  4. If F is significant, use the Tukey HSD post-hoc comparisons table to see which pairs of groups differ.
  5. If the group SDs are very different, report the Welch’s F and p-value instead of the classic F.

How to fill in an ANOVA table

Homework problems often give a one-way ANOVA table with blanks. Every cell follows from a few relationships, so you can fill it in from any two or three known values. SS and df add up down the columns; each mean square is its SS divided by its df; F is MSB divided by MSW.

  1. Find the df first: k − 1 between, N − k within, N − 1 total. If you know two of them, the third is their sum or difference.
  2. Get any missing SS from SST = SSB + SSW, or from MS × df.
  3. Divide each SS by its df to get MSB and MSW, then F = MSB / MSW.
  4. Look up the p-value for F with (k − 1, N − k) df, or compare F with the critical value from the F-table.
  5. Example: with k = 3 groups, N = 18, SSB = 67.4444 and SST = 105.7778, you get SSW = 38.3333, df = 2 and 15, MSB = 33.7222, MSW = 2.5556 and F = 13.1957.
SourceSSdfMSF
Between groupsSSBk − 1MSB = SSB / (k − 1)F = MSB / MSW
Within groups (error)SSWN − kMSW = SSW / (N − k)
TotalSST = SSB + SSWN − 1

ANOVA formula

Between groups
SSB = Σ nᵢ(x̄ᵢ − x̄)², df = k − 1, MSB = SSB / (k − 1)
Within groups
SSW = Σ (nᵢ − 1)sᵢ², df = N − k, MSW = SSW / (N − k)
Test statistic
F = MSB / MSW
Effect sizes
η² = SSB / SST, ω² = (SSB − (k − 1)MSW) / (SST + MSW)
Tukey HSD
q = |x̄ᵢ − x̄ⱼ| / √(MSW / 2 × (1/nᵢ + 1/nⱼ))
Formula symbols
SymbolMeaning
knumber of groups
Ntotal number of observations
nᵢ, x̄ᵢ, sᵢsize, mean and SD of group i
x̄grand mean of all observations
SSTtotal sum of squares, SSB + SSW

η² tends to overstate the effect in small samples; ω² adjusts for this and can be slightly negative when the true effect is near zero (read it as 0). Rough guides: 0.01 small, 0.06 medium, 0.14 large.

Group SDs use the sample (n − 1) divisor. The F test, Tukey HSD and Welch results were checked against SciPy (f_oneway, tukey_hsd) to at least four decimals.

Worked example

Worked example: three fertilizers

Problem. Yields (kg per plot) for six plots per fertilizer: A = 20, 22, 19, 24, 21, 23; B = 25, 27, 24, 26, 28, 25; C = 22, 21, 23, 20, 24, 22. Do mean yields differ at α = 0.05?

  1. 01Group means: 21.5, 25.8333 and 22; grand mean = 23.1111 (N = 18).
  2. 02SSB = 6(21.5 − 23.1111)² + 6(25.8333 − 23.1111)² + 6(22 − 23.1111)² = 67.4444, df = 2, MSB = 33.7222.
  3. 03SSW = 5(1.8708²) + 5(1.4720²) + 5(1.4142²) = 17.5 + 10.8333 + 10 = 38.3333, df = 15, MSW = 2.5556.
  4. 04F = 33.7222 / 2.5556 = 13.1957; critical F(2, 15) = 3.6823.
  5. 05p = P(F₂,₁₅ ≥ 13.1957) = 0.0005; η² = 67.4444 / 105.7778 = 0.6376, ω² = 0.5754.
  6. 06Tukey HSD (groups 1, 2, 3 = A, B, C): B − A = 4.3333, p = 0.0008; C − B = −3.8333, p = 0.0023; C − A = 0.5, p = 0.8522. B differs from both; A and C do not differ.

Answer. Reject H₀ (p < 0.001). Fertilizer B gives a higher mean yield than A and C, which do not differ from each other. Fertilizer explains about 64% of the variation in yield. These are the calculator’s default inputs, so you can check each step above.

Tukey HSD post-hoc test and Welch’s ANOVA

A significant F only says that the group means are not all equal. Tukey’s HSD (honestly significant difference) compares every pair of means while holding the family-wise error rate at α. For each pair it divides the difference in means by SE = √(MSW / 2 × (1/nᵢ + 1/nⱼ)) and refers the result, q, to the studentized range distribution with k groups and N − k df. This is the Tukey–Kramer form, which also works when group sizes differ.

Differences are listed as later group minus earlier group, as in R’s TukeyHSD. In the fertilizer example below (groups 1, 2 and 3 are A, B and C), B − A = 4.3333 (q = 6.6398, adjusted p = 0.0008) and C − B = −3.8333 (q = 5.8737, p = 0.0023) are significant, while C − A = 0.5 (q = 0.7661, p = 0.8522) is not. The critical q for k = 3 and df = 15 at α = 0.05 is 3.6734, so any two of these means must differ by at least 3.6734 × 0.6526 = 2.3974 kg.

Welch’s ANOVA drops the equal-variance assumption by weighting each group by nᵢ / sᵢ² and adjusting the error df. Prefer it when the largest SD is more than about twice the smallest, especially with unequal group sizes. For the example it gives F = 13.3004 on (2, 9.8757) df, p = 0.0016, which agrees with the classic test.

Common use cases

  • Comparing outcomes across three or more treatments, doses or teaching methods.
  • Testing whether average output or defect counts differ between several machines, shifts or sites.
  • Comparing customer satisfaction scores across regions or product versions.
  • Checking a textbook or homework ANOVA table, or one from Excel, SPSS or a TI-84, step by step.
  • Analysing designed experiments with one factor before moving to two-way ANOVA.

Assumptions and limitations

  • Independence: observations within and between groups must be independent. Repeated measures on the same subjects need repeated-measures ANOVA, which this calculator does not run.
  • Normality: residuals should be roughly normal within each group; ANOVA tolerates moderate departures with balanced groups of 15 or more. For skewed small samples consider the Kruskal–Wallis test, or check each group with the Shapiro–Wilk test.
  • Equal variances: group variances should be similar (largest SD under about twice the smallest). Check with Levene’s test; when they are not, especially with unequal group sizes, use the Welch’s ANOVA result.
  • One factor only: two-way, factorial (2×2) and mixed designs need a different model. See Two-Way ANOVA: Main Effects, Interaction and a Worked Example.
  • Running many t-tests instead of a post-hoc test inflates false positives; the Tukey HSD p-values here are already adjusted.

Frequently asked questions

What does the F value in ANOVA mean?

F is the ratio of the variance between group means to the variance within groups. If the null hypothesis is true, both estimate the same quantity and F is near 1. A large F means the group means are further apart than the within-group noise would explain.

How do you calculate degrees of freedom in ANOVA?

In a one-way ANOVA with k groups and N observations in total, the between-groups df is k − 1, the within-groups (error) df is N − k, and the total df is N − 1. For three groups of six, that is 2, 15 and 17. The F statistic is read on (k − 1, N − k) degrees of freedom.

What are the assumptions of one-way ANOVA?

One-way ANOVA assumes independent observations, a roughly normal outcome within each group, and similar variances across groups. It is fairly robust to non-normality with balanced groups of 15 or more. When variances differ, use Welch’s ANOVA; when data are strongly skewed with small samples, use the Kruskal–Wallis test.

What should I do after a significant ANOVA?

Run a post-hoc test to see which pairs of groups differ while controlling the overall error rate. Tukey’s HSD is the usual choice for all pairwise comparisons, and this calculator reports it automatically with adjusted p-values. Dunnett’s test is the alternative when every group is compared with one control.

Can this calculator do a two-way ANOVA?

No. This is a one-way ANOVA calculator for a single factor with 2 to 10 groups. A two-way or 2×2 ANOVA tests two factors and their interaction and needs the data for every combination of levels; the two-way ANOVA guide explains how it works.

How do I run a one-way ANOVA on a TI-84?

Enter each group in its own list (L1, L2, L3 and so on), press STAT, move to the TESTS menu and choose ANOVA(. Type the lists separated by commas, for example ANOVA(L1, L2, L3), and press ENTER. The calculator shows F, p, and the df, SS and MS for the factor and error rows, which should match this page.

How do I report a one-way ANOVA?

Report the F statistic with both degrees of freedom, the p-value and an effect size, for example: “Yield differed by fertilizer, F(2, 15) = 13.20, p < .001, η² = .64.” Follow it with the post-hoc comparisons and the group means and SDs.

Cite this page

Statculator. (2026, November 14). ANOVA Calculator. Retrieved November 14, 2026, from https://statculator.com/hypothesis-tests/anova-calculator/