induwara.lk
induwara.lkStatistics · Education

One-Way ANOVA Calculator

Compare the means of three or more groups from raw data. Paste your groups and get the full ANOVA table — sum of squares, degrees of freedom, mean squares, the F-statistic, an exact p-value and effect size (η², ω²) — with a plain-English verdict, computed entirely in your browser.

By Induwara AshinsanaUpdated Jul 8, 2026
One-way ANOVA
NIST formulas · cross-checked
3 values

Numbers separated by commas, spaces, or new lines.

3 values

Numbers separated by commas, spaces, or new lines.

3 values

Numbers separated by commas, spaces, or new lines.

3 of 10 groups
Try an example

Any value from 0.0001 to 0.5. 0.05 is the usual default.

Reject H₀ — at least one group mean differs (p = 0.0080 < α = 0.05).
F(2, 6)
12
p-value (upper tail)
0.0080
Critical F at α = 0.05
5.1433
F exceeds F* → significant
Effect size η²
0.8
ω² = 0.7097

ANOVA table

SourceSSdfMSFp-value
Between groups24212120.0080
Within groups (error)661
Total308

Per-group summary

GroupnMeanSample SDVariance
Method A3511
Method B3711
Method C3911
Overall (grand)97

Cross-check: the total sum of squares from the table identity (SSB + SSW = 30) and from the direct definition ΣΣ(x − x̄)² = 30 agree to floating-point precision.

One-way ANOVA assumes independent observations, roughly normal groups, and similar variances across groups (homogeneity). If variances differ widely, prefer Welch's ANOVA; if the data are ranks or heavily skewed, use the non-parametric Kruskal–Wallis test. A significant F tells you the group means are not all equal — run a post-hoc test (Tukey HSD) to find which pairs differ.
Sources cited

How it works

One-way ANOVA (analysis of variance) tests one null hypothesis: that every group is drawn from a population with the same mean. It answers this by comparing two independent estimates of the underlying variance — one built from how far the group means sit from the overall mean, the other from the spread inside each group. The method follows the NIST/SEMATECH e-Handbook of Statistical Methods §7.4.3.

Let there be k groups; group i has nᵢ observations and total N = Σ nᵢ. The calculator carries out these steps:

  1. Means. Compute each group mean x̄ᵢ and the grand mean x̄ over all N values.
  2. Between-groups sum of squares. SSB = Σ nᵢ (x̄ᵢ − x̄)² with df = k − 1. This grows when the group means are far apart.
  3. Within-groups (error) sum of squares. SSW = ΣΣ (xᵢⱼ − x̄ᵢ)² with df = N − k. This is the noise inside the groups.
  4. Mean squares. MSB = SSB / (k − 1) and MSW = SSW / (N − k). Each is a variance estimate; under the null they estimate the same quantity.
  5. F-statistic. F = MSB / MSW, referenced to the F distribution with d1 = k − 1 and d2 = N − k degrees of freedom. A large F means the between-group signal beats the within-group noise.
  6. p-value. The upper-tail probability p = I_{d2/(d2+d1·F)}(d2/2, d1/2), computed exactly through the regularised incomplete beta function (Abramowitz & Stegun §26.6.2) — the same numerical routine that powers this site's t-test tool. The critical value F* at your α is found by inverting the same relation, so it matches a printed F table.
  7. Effect sizes. η² = SSB / SST is the fraction of variation explained by group membership; ω² = (SSB − (k − 1)·MSW) / (SST + MSW) is the less biased version. The identity SST = SSB + SSW is checked both ways and shown as a credibility line under the results.

ANOVA rests on three assumptions: independent observations, approximately normal groups, and roughly equal variances. When variances differ sharply, Welch's ANOVA is safer; for ranked or heavily skewed data, the non-parametric Kruskal–Wallis test applies instead.

Worked examples

Three equal-sized groups — F = 12.00, p = 0.008

  1. A = 4, 5, 6 (x̄ = 5) · B = 6, 7, 8 (x̄ = 7) · C = 8, 9, 10 (x̄ = 9)
  2. N = 9, k = 3, grand mean = 7
  3. SSB = 3(5−7)² + 3(7−7)² + 3(9−7)² = 12 + 0 + 12 = 24, df = 2
  4. SSW: each group deviations (−1, 0, 1) → 2 per group × 3 = 6, df = 6
  5. MSB = 24/2 = 12, MSW = 6/6 = 1 → F = 12.00 on (2, 6) df
  6. p = I_0.2(3, 1) = 0.2³ = 0.008 → reject H₀ at α = 0.05
  7. η² = 24/30 = 0.80 (a large effect)

Unequal group sizes — exam scores by method, F = 17.43, p ≈ 0.001

  1. A (n=4) = 82, 84, 85, 89 (x̄ = 85) · B (n=3) = 78, 80, 82 (x̄ = 80) · C (n=5) = 88, 90, 92, 94, 96 (x̄ = 92)
  2. N = 12, k = 3, grand mean = 1040/12 = 86.667
  3. SSB = 4(85−86.667)² + 3(80−86.667)² + 5(92−86.667)² = 286.667, df = 2
  4. SSW = 26 + 8 + 40 = 74, df = 9
  5. MSB = 143.333, MSW = 8.222 → F = 17.43 on (2, 9) df
  6. x = 9/(9 + 2·17.43) = 0.2052; p = x^4.5 ≈ 0.0008 → reject H₀
  7. η² = 286.667/360.667 = 0.79

Edge case — two identical groups, F = 0, p = 1.000

  1. A = 1, 2, 3 · B = 1, 2, 3 (both means = 2)
  2. N = 6, k = 2, grand mean = 2
  3. SSB = 3(2−2)² + 3(2−2)² = 0, df = 1
  4. SSW = 2 + 2 = 4, df = 4 → MSB = 0, MSW = 1
  5. F = 0/1 = 0 → p = 1.000, η² = 0
  6. Verdict: fail to reject H₀ — the groups are indistinguishable

Frequently asked questions

Sources & references

The formulas on this page were last cross-checked against the NIST e-Handbook on 2026-07-08. Both worked examples reconcile to the calculator to at least three significant figures, and the ANOVA-table identity SST = SSB + SSW is verified in the results panel.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.