One-Way ANOVA Calculator

This ANOVA calculator runs a one-way analysis of variance on three or more groups. Paste each group on its own line to get the full ANOVA table, the F test, effect sizes and pairwise comparisons.

Numbers separated by commas or spaces. Each line is one group.

Checks on your data

  • Group sizes, variances and outliers look acceptable for a one-way ANOVA.

Results

F statistic
12.636
p-value
0.00060688
Decision at α = 0.05
Reject H₀: at least one mean differs
Critical F
3.6823
F(2, 15)
η² (eta squared)
0.6275
large effect
ω² (omega squared, less biased)
0.5639
Cohen’s f
1.298
Grand mean
26.6111
Largest ÷ smallest group variance
1.333
looks acceptable (rule of thumb < 4)
Groups k / total N
3 / 18
F distribution (2, 15): shaded = rejection region, line = your F
51015F = 12.6
Group means with 95% CIs (pooled error)
Control: 21.87 to 25.47Drug A: 27.87 to 31.47Drug B: 24.7 to 28.3222426283032
ANOVA summary table
SourceSSdfMSFp
Between groups108.111254.055612.6360.00060688
Within groups (error)64.1667154.27778
Total172.27817
Show step-by-step solution
  1. k = 3 groups, N = 18; grand mean = 26.6111.
  2. SS between = Σ nᵢ(x̄ᵢ − x̄)² = 108.111; SS within = Σ Σ (x − x̄ᵢ)² = 64.1667.
  3. MS between = 108.111 ÷ 2 = 54.0556; MS within = 64.1667 ÷ 15 = 4.27778.
  4. F = MS between ÷ MS within = 12.636, with (2, 15) degrees of freedom.
  5. p-value = 0.00060688; critical F = 3.6823.
Compares3 or more group means
StatisticF = MS between / MS within
Effect sizeη², ω², Cohen’s f
Follow-upPairwise tests (Bonferroni)

What Is One-Way ANOVA?

One-way ANOVA tests whether at least one group mean differs from the others by comparing the variation between groups with the variation within groups. The ratio of the two is the F statistic, and the p-value tells you how unusual that ratio would be if all group means were equal.

The calculator reports sums of squares, mean squares, F, the critical F value, eta squared, omega squared and Cohen's f, and it checks the largest-to-smallest group variance ratio so you can judge the equal-variance assumption. When the F test is significant, the pairwise comparisons show which groups differ.

The sections below give the formulas, a variables table, a worked example and answers to common questions such as ANOVA versus multiple t-tests and what to do after a significant result.

How to Use the One-Way ANOVA Calculator

  1. Type or paste one group per line. You can start a line with a name followed by a colon.
  2. Choose α.
  3. Read the ANOVA table and the decision. If significant, scan the pairwise table to see which pairs differ.
  4. Check the variance ratio and group means chart for assumptions and practical size.

One-Way ANOVA Formula

Sum of squares

SSB=∑ni(xˉi−xˉ)2,SSW=∑∑(xij−xˉi)2SS_B=\sum n_i(\bar x_i-\bar x)^2,\quad SS_W=\sum\sum(x_{ij}-\bar x_i)^2

Mean squares and F

MSB=SSBk−1,MSW=SSWN−k,F=MSBMSWMS_B=\frac{SS_B}{k-1},\quad MS_W=\frac{SS_W}{N-k},\quad F=\frac{MS_B}{MS_W}

Eta squared

η2=SSBSST\eta^2=\frac{SS_B}{SS_T}

Omega squared

ω2=SSB−(k−1)MSWSST+MSW\omega^2=\frac{SS_B-(k-1)MS_W}{SS_T+MS_W}

One-Way ANOVA Variables Explained

SymbolMeaningNotes
FF statisticMS between ÷ MS within
kNumber of groupsAt least 3 for ANOVA
NTotal number of observations
SSB, SSWSums of squares between and within groups
dfDegrees of freedomk − 1 between, N − k within

One-Way ANOVA Worked Example

Using the example values (press “Load example” above to try them):

  1. k = 3 groups, N = 18; grand mean = 26.6111.
  2. SS between = Σ nᵢ(x̄ᵢ − x̄)² = 108.111; SS within = Σ Σ (x − x̄ᵢ)² = 64.1667.
  3. MS between = 108.111 ÷ 2 = 54.0556; MS within = 64.1667 ÷ 15 = 4.27778.
  4. F = MS between ÷ MS within = 12.636, with (2, 15) degrees of freedom.
  5. p-value = 0.00060688; critical F = 3.6823.

Result: F statistic = 12.636; p-value = 0.00060688; Decision at α = 0.05 = Reject H₀: at least one mean differs.

Why not just run several t-tests?

Each t-test carries a 5% chance of a false positive. With 3 groups there are 3 pairs, with 5 groups 10 pairs, and the chance of at least one false alarm climbs quickly. ANOVA tests the single overall hypothesis that all means are equal at the chosen α, keeping the false-positive rate under control.

Family-wise error rate with repeated t-tests at α = 0.05
GroupsPairsChance of at least one false positive
3314%
4626%
51040%
61554%

Interpreting the ANOVA table

A significant F means at least one group mean differs from the others; it does not say which. Use the pairwise table for that. The effect size tells you how much of the total variation is explained by group membership.

Effect size benchmarks for η²
η²SizeCohen’s f
0.01Small0.10
0.06Medium0.25
0.14Large0.40

Assumptions

  • Independent observations, with each subject in one group only.
  • Residuals approximately normal within groups (ANOVA is fairly robust, especially with equal group sizes).
  • Equal variances across groups. A rule of thumb is that the largest variance should be under about 4 times the smallest. If not, use Welch’s ANOVA.
  • Outcome measured on an interval or ratio scale.
  • If assumptions fail badly, the Kruskal-Wallis test is the non-parametric alternative.

Post-hoc comparisons

The pairwise table uses the pooled error term from the ANOVA with a Bonferroni correction: each p-value is multiplied by the number of comparisons. This is simple and conservative. Tukey’s HSD is more powerful for all pairwise comparisons and is available in statistical software; the Bonferroni result here is a safe, slightly more cautious reading.

Where One-Way ANOVA Is Used

Comparing treatment groups

Testing whether several treatments give different average results.

Comparing methods or products

Checking whether three or more options differ in a measured outcome.

Course assignments

Completing an ANOVA table with sums of squares and mean squares.

Follow-up testing

Finding which pairs of groups differ after a significant F.

Common One-Way ANOVA Mistakes to Avoid

  • Use balanced group sizes where possible; they make ANOVA more robust.
  • Report F with both degrees of freedom: F(2, 15) = 8.31.
  • Never interpret a non-significant ANOVA as proof that the means are equal.
  • Plot the data; box plots by group often tell more than the F value.

One-Way ANOVA Terms and Definitions

Between-group variation
How far group means are from the grand mean.
Within-group variation
The spread of individual values around their own group mean (error).
Post-hoc test
Pairwise comparisons made after a significant ANOVA.

One-Way ANOVA FAQs

What does ANOVA test?

Whether the means of three or more groups are all equal. A significant result means at least one mean differs.

What is the F statistic?

The ratio of between-group variance to within-group variance. A large F suggests the group means differ by more than chance.

What is the difference between ANOVA and a t-test?

A t-test compares two means. ANOVA compares three or more, controlling the overall false-positive rate. With two groups ANOVA gives F = t².

What should I do after a significant ANOVA?

Run post-hoc comparisons such as Tukey’s HSD or Bonferroni-adjusted tests to see which pairs differ.

What if the group variances are very different?

Use Welch’s ANOVA, which does not assume equal variances, or a non-parametric Kruskal-Wallis test.

How many observations do I need per group?

More is better; at least 5 to 10 per group is a practical minimum for rough work, and a power analysis gives a proper target.

What does eta squared mean?

The proportion of the total variance in the data explained by group membership. 0.01 is small, 0.06 medium, 0.14 large by convention.

What is the difference between one-way and two-way ANOVA?

One-way ANOVA compares group means across one factor. Two-way ANOVA has two factors and can test for an interaction between them. This calculator performs one-way ANOVA.

Why not just run several t-tests?

Each extra test raises the chance of at least one false positive. A single ANOVA F test controls the overall error rate, and pairwise comparisons follow only if it is significant.

Related calculators

Last updated 2026-11-09. See our disclaimer.