Solved.tools — Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

One-Way ANOVA Calculator

Last updated: 10 August 2026

Reviewed by Gavin · Research and drafting assisted by AI

Run a one-way ANOVA (analysis of variance) to test whether the means of 2 to 10 groups differ by more than you'd expect from sampling noise. The tool computes the ANOVA table (SS, df, MS, F), a p-value from the F-distribution, and the F critical value at your chosen significance level α, with a plain-English interpretation. All computations are performed locally from first principles — no network calls, no precomputed tables.

210
n = 5
n = 5
n = 5
Enter values separated by commas, spaces, semicolons, or new lines (1–50 per group).
One-Way ANOVA
F = 43.4713Reject H₀
df₁ = 2, df₂ = 12, k = 3 groups, N = 15 observations

ANOVA table

SourceSSdfMSFp-value
Between groups252.13332126.066743.47133.182654e-6
Within groups34.8122.9
Total286.933314

Per-group summary

GroupnMeanVariance
Group A524.23.7
Group B5302.5
Group C5202.5
Grand mean1524.7333
F critical (α = 0.05)
3.8853
Decision
Reject H₀
F = 43.471, F_crit(α=0.05) = 3.885 → reject H₀ (p = 3.1827e-6) — group means differ significantly.
Quick reference. One-way ANOVA tests H₀: μ₁ = μ₂ = … = μ_k. SSB = Σ nⱼ(x̄ⱼ − x̄)², SSW = Σ Σ(xᵢⱼ − x̄ⱼ)², df₁ = k−1, df₂ = N−k, MSB = SSB/df₁, MSW = SSW/df₂, F = MSB/MSW, p-value = 1 − F_CDF(F, df₁, df₂). Reject H₀ when F > F_crit at the chosen α (or equivalently when p < α). A significant ANOVA tells you at least one group differs — follow up with a post-hoc test (Tukey HSD, Bonferroni) to identify which pairs differ.
Was this helpful?


One-Way ANOVA Calculator

A one-way ANOVA (analysis of variance) tests whether the means of two or more groups differ by more than you'd expect from sampling noise alone. It is the standard omnibus test in the toolbox of any scientist, engineer, marketer, or analyst who regularly compares three or more conditions, fertiliser treatments, drug doses, marketing copy variants, machine settings, or experimental conditions. This calculator computes the full ANOVA table (sum of squares, degrees of freedom, mean squares, F-statistic, and p-value) from your raw data, plus per-group n, mean, and variance. All results are computed locally in your browser from first principles, no network calls, no precomputed tables, your data never leaves your device.

How to Use This Tool

  1. Choose the number of groups (slider, 2 to 10) you want to compare.
  2. For each group, enter a short name (optional) and the observations as a comma-separated list (1 to 50 per group). Spaces, tabs, semicolons, and newlines all work as separators.
  3. Set the significance level α (the default 0.05 is the most common convention in scientific and engineering work).
  4. The calculator instantly displays the ANOVA table, per-group summary, the F critical value, and a plain-English interpretation that highlights whether to reject or fail to reject the null hypothesis.
  5. If you want to see the calculator in action before entering your own data, click Load sample data to populate three pre-filled groups from a worked agricultural example.

The Formulas

One-way ANOVA partitions the total variation in the data into two components: variation between groups (how much the group means differ from each other) and variation within groups (how much the observations scatter around their own group mean). If the between-group variation is large compared to the within-group variation, the group means are likely different.

The sums of squares are

SSB = Σ nⱼ (x̄ⱼ − x̄)²          (between groups)
SSW = Σ Σ (xᵢⱼ − x̄ⱼ)²          (within groups)
SST = SSB + SSW                  (total)

with associated degrees of freedom

df_B = k − 1
df_W = N − k
df_T = N − 1

and mean squares

MSB = SSB / df_B
MSW = SSW / df_W

The F-statistic is the ratio MSB / MSW. Under the null hypothesis that all group means are equal, F follows the F-distribution with (df_B, df_W) degrees of freedom. The p-value is the upper-tail probability

p = P(F_{df_B, df_W} ≥ observed F)

computed from the F-CDF using the regularised incomplete beta function (Numerical Recipes §6.4). A large F means the between-group variation is large compared to the within-group variation, providing evidence against the null.

The F critical value F_crit(α, df_B, df_W) is the (1 − α) quantile of the F-distribution. Reject H₀ when the observed F exceeds F_crit, or equivalently when p < α.

Worked Examples

Example 1: Significant difference (reject H₀)

A plant biologist measures yield (kg per plot) under three fertiliser treatments, with five plots per treatment:

GroupObservationsMeanVariance
A (control)23, 25, 27, 22, 2424.203.70
B (nitrogen)30, 28, 31, 29, 3230.002.50
C (compost)19, 21, 18, 20, 2220.002.50

The grand mean is (5·24.2 + 5·30.0 + 5·20.0) / 15 = 24.733. With k = 3 groups and N = 15 observations:

SSB = 5·(24.2 − 24.733)² + 5·(30.0 − 24.733)² + 5·(20.0 − 24.733)²
    = 5·0.2844 + 5·27.84 + 5·22.40
    = 252.13
SSW = 14.80 + 10.00 + 10.00
    = 34.80
df_B = 2,  df_W = 12
MSB  = 126.07
MSW  = 2.90
F    = 126.07 / 2.90 = 43.47
p    ≈ 3.2 × 10⁻⁶

F_crit(α = 0.05, df₁ = 2, df₂ = 12) = 3.885. Since 43.47 ≫ 3.885 and p ≪ 0.05, we reject H₀, the data provide extremely strong evidence that at least one fertiliser treatment produces a different mean yield. A post-hoc test (Tukey HSD) would identify which specific treatments differ.

Example 2: No significant difference (fail to reject H₀)

Two groups drawn from the same population, with n = 5 each:

GroupObservationsMean
X50, 51, 49, 52, 5050.40
Y51, 50, 52, 49, 5150.60

The two group means are within 0.2 of each other, well within the noise level of the data. Computing:

SSB = 5·(50.4 − 50.5)² + 5·(50.6 − 50.5)² = 0.10
SSW = 5.20 + 4.80 = 10.00
df_B = 1,  df_W = 8
MSB  = 0.10,  MSW = 1.25
F    = 0.08
p    ≈ 0.79

F_crit(α = 0.05, df₁ = 1, df₂ = 8) = 5.32. Since 0.08 ≪ 5.32 and p ≫ 0.05, we fail to reject H₀, there is no statistically significant evidence that the two groups have different means. (In this particular case, the test would also have low power because the effect size is so small.)

Where It Shows Up

ANOVA is the workhorse of experimental design and appears in nearly every quantitative discipline.

Clinical trials. Phase II and III trials typically compare a new drug against a placebo and sometimes a standard-of-care comparator, three or more arms. ANOVA (or its mixed-model equivalent when patients are nested in clinics) tests whether the arms differ in the primary endpoint (efficacy, biomarker, symptom score). If the omnibus test is significant, planned contrasts or post-hoc tests identify which arms differ.

A/B/n testing in product and marketing. Testing more than two versions of a landing page, ad creative, pricing tier, or feature? ANOVA is the correct framework rather than running many pairwise t-tests (which inflates the false-positive rate). Conversion rate, revenue per user, time on page, and click-through rate are all common metrics.

Agricultural field trials. The historical origin of ANOVA: a researcher compares yield across several fertiliser formulations, irrigation regimes, or seed varieties. Randomised block designs and split-plot designs extend one-way ANOVA to control for nuisance variation like soil fertility gradients.

Manufacturing and quality engineering. Comparing mean output across multiple machines, shifts, suppliers, or production lines. A significant F-statistic flags the source of the variability; the per-group means and variances tell you which line is the problem.

Psychology and the social sciences. Comparing reaction times, test scores, or survey responses across experimental conditions (e.g. four versions of a UI, three levels of incentive, two age groups × two treatment conditions). One-way ANOVA handles the simplest single-factor designs; factorial ANOVA handles multi-factor designs.

Common Mistakes to Avoid

1. Violating the independence assumption. ANOVA assumes observations are independent both within and between groups. Repeated measures (the same subject measured multiple times), matched pairs, clustered data (students nested in classrooms), or time-series autocorrelation all break this assumption. Use a repeated-measures ANOVA, mixed-effects model, or cluster-reliable standard errors instead.

2. Running many pairwise t-tests instead of one ANOVA. The single most common mistake. Each t-test carries a 5% false-positive rate (at α = 0.05); running 10 pairwise tests on 5 groups gives a 40% chance of at least one false positive. ANOVA tests all groups in a single test, keeping the family-wise error rate at α. If ANOVA is significant, follow up with a post-hoc test (Tukey HSD, Bonferroni) to identify differing pairs.

3. Stopping after a significant omnibus F. "Significant" in ANOVA means at least one group differs, not which group. To draw scientific conclusions, follow up with a multiple-comparison procedure. Without a post-hoc test, you cannot say which specific treatments, doses, or variants differ.

4. Treating non-significant as "no effect". Failing to reject H₀ is not the same as proving the null. With a small sample, ANOVA may have low power to detect a real effect. Always report the observed means, the effect size (η² or ω²), and consider whether the study was adequately powered.

5. Ignoring severe heteroscedasticity or non-normality. Standard one-way ANOVA assumes equal variances and approximately normal populations. With severely unequal variances, F is unreliable, use Welch's ANOVA instead. With n < 10 per group and visibly non-normal data, use the non-parametric Kruskal-Wallis test.

Frequently Asked Questions

What does one-way ANOVA test? One-way ANOVA (analysis of variance) tests the null hypothesis that all group means are equal against the alternative that at least one differs. It is an omnibus test, it tells you whether a difference exists across the groups, but not where the difference lies. If the omnibus test is significant, follow up with a post-hoc test (Tukey HSD, Bonferroni, Scheffé) to identify the specific differing pairs.

When should I use ANOVA instead of a t-test? Use ANOVA whenever you have three or more groups to compare. Running multiple pairwise t-tests inflates the false-positive rate: for 3 groups you would run 3 tests, for 5 groups 10 tests, and so on. ANOVA tests all groups in a single omnibus test and keeps the family-wise error rate at α. With exactly 2 groups, ANOVA and the t-test are mathematically equivalent (F = t²), so either works.

What are the assumptions of one-way ANOVA? Three core assumptions: (1) independence of observations within and between groups, (2) approximate normality of the underlying populations (the test is reasonably reliable to mild departures when n is large enough), and (3) homogeneity of variances (homoscedasticity) across groups. When the variance assumption fails, switch to Welch's ANOVA. When normality fails badly with small samples, use the Kruskal-Wallis non-parametric test.

What is a significant F-statistic? An F-statistic is "significant" when it exceeds the F critical value at your chosen significance level α (e.g. F > F_crit at α = 0.05), or equivalently when the p-value is less than α. This means the between-group variation is large enough relative to the within-group variation that the data are unlikely under the assumption that all group means are equal.

What should I do after a significant ANOVA result? A significant omnibus F means at least one group differs, but not which one. Run a post-hoc multiple-comparison test to identify the specific differing pairs while controlling the family-wise error rate: Tukey's HSD (most common, all pairwise comparisons), Bonferroni correction (conservative, works with any set of planned comparisons), or Scheffé's method (very conservative, works for any number of contrasts). The choice depends on whether your comparisons were planned in advance or explored after seeing the data.

How do I handle unequal sample sizes? One-way ANOVA is reasonably reliable to unequal group sizes (called "unbalanced designs") as long as the imbalance is not extreme. When sizes differ substantially and variances also differ, switch to Welch's ANOVA. When planning the experiment, aim for balanced designs (equal n per group) because they maximise statistical power and minimise sensitivity to variance heterogeneity.

What if my p-value is just above 0.05? A borderline p-value is not a definitive "no effect", it is a sign of weak evidence either way. Consider: (1) what was the effect size, and was the study powered to detect it, (2) is the measurement noise large relative to the effect, (3) collecting more data may push the result past the threshold. Never interpret a non-significant result as proof of "no difference", only as "no evidence of a difference in this sample".

**Q:**Can the Anova Calculator be used for professional or commercial purposes?A: Yes, the Anova Calculator provides mathematically correct results that are suitable for professional, commercial, and educational use. For high-stakes applications (medical, legal, financial, regulatory), verify results with a domain expert and a domain-specific statistical package. The formulas used are well-established and validated against reference standards (Fisher 1925, Montgomery, NIST/SEMATECH e-Handbook).

**Q:**For the Anova Calculator, How often are the underlying formulas updated?A: The formulas are based on established mathematical statistics and rarely require updates. When standards change (e.g. revised critical-value tables, new normality corrections, updated guidance on multiple-testing corrections), this calculator is updated to reflect the current authoritative source. For the Anova Calculator, For the Anova Calculator, Each calculator's references section lists the specific sources used.

References

  • Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver & Boyd, Edinburgh.
  • Montgomery, D. C. (2017). Design and Analysis of Experiments, 9th edition. Wiley.
  • Press, W. H., Teukolsky, S. A., Vetterling, W. T. & Flannery, B. P. Numerical Recipes: The Art of Scientific Computing, 3rd edition, §6.4 (incomplete beta function, Lentz continued-fraction method).
  • NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.4.3 "One-Way ANOVA", https://www.itl.nist.gov/div898/handbook/.
  • Welch, B. L. (1951). "On the comparison of several mean values: an alternative approach". Biometrika 38: 330 to 336.
  • Tukey, J. W. (1949). "Comparing individual means in the analysis of variance". Biometrics 5: 99 to 114.