Quick answer: An ANOVA calculator tests whether three or more group means differ more than chance variation inside the groups would explain. Enter 3 to 10 groups of values above and this anova calculator builds the full ANOVA table - sums of squares, degrees of freedom, mean squares, the F statistic and an exact p-value from the F-distribution. Three groups scoring 5, 6, 7, 6 / 8, 9, 7, 8 / 3, 4, 5, 4 give F = 24.00 on 2 and 9 degrees of freedom, with p at about 0.00025: strong evidence the means are not all equal - though ANOVA alone never says which groups differ.
How to use this anova calculator
Step 1 - Set the number of groups. Choose 3 to 10 groups. One-way ANOVA starts where the t-test stops: if you have exactly two groups, the T-Test Calculator is the right tool, and for two groups F is simply t squared.
Step 2 - Paste each group's values. One box per group, values separated by commas, spaces or new lines. Rename the groups if it helps you read the output - the names travel into the results tables and the downloaded summary. Groups do not need equal sizes, but every group needs at least two values.
Step 3 - Read the whole result, not just the p-value. The results panel gives the F statistic as the headline, the full ANOVA table, a row per group with its n, mean, standard deviation and standard error, the effect sizes eta-squared and omega-squared, and a plain-English verdict. A descriptive list of pairwise mean differences follows - with no p-values, for the honest reason given in the post-hoc section below. Save, copy or share the summary when you need the numbers elsewhere; everything is computed on your device.
What ANOVA is - and what it is not
In short: ANOVA - analysis of variance - answers a question about means by comparing two kinds of variance. The variance between group means measures how far apart the groups sit. The variance within groups measures how noisy individual values are around their own group mean. If the groups truly share one population mean, both quantities estimate the same underlying variance and their ratio, F, hovers near 1. If some group means genuinely differ, the between variance inflates while the within variance does not, and F grows.
The method was developed by R. A. Fisher in the 1910s and 1920s for agricultural field trials - comparing crop yields across fertiliser treatments, where plot-to-plot noise is large and replication is expensive. That origin explains the name that confuses every beginner: it is called analysis of variance even though the question is about means, because comparing means fairly requires first understanding the variance around them.
What an anova test is not: not a verdict on which groups differ, not a measure of how large the differences are, and not a probability that your groups are the same or different. It answers one narrow question - how surprising would a spread of means at least this wide be, if all the population means were really equal?
When to use a one way anova calculator - and when not to
Use a one way anova calculator when three conditions hold: one categorical factor splits your observations into three or more groups (dosage level, teaching method, machine, region); the outcome is a number on a continuous scale (score, yield, time, cost); and each observation belongs to exactly one group, independently of the others. Classic fits: exam scores across three course sections, battery life across four brands, plant growth under five light regimes.
Do not use it when the same subjects appear in every group - that is a repeated measures design, and the independence condition fails by construction. Do not use it with two factors at once (brand and size): that is two-way ANOVA, where each factor and their interaction need their own error terms. Do not use it on counts, proportions or yes/no outcomes without thought - those call for chi-square or logistic models; the Chi-Square Calculator covers the categorical case. And with exactly two groups, stay with the t-test: same answer, simpler reading.
How to calculate ANOVA: the formulas, step by step
Learning how to calculate ANOVA is mostly bookkeeping. Suppose there are k groups, group i has ni values, group mean x̄i, and the grand mean of all N values is x̄. Five steps produce the whole table.
Step 1 - Sum of squares between (SSB). SSB = sum over groups of ni x (x̄i - x̄)2. Each group's contribution is weighted by its size: a mean based on 30 values counts for more than one based on 3.
Step 2 - Sum of squares within (SSW). SSW = sum over every value of (value - its group mean)2. This is the noise floor: variation ANOVA attributes to individual differences and measurement error, not to the grouping.
Step 3 - Degrees of freedom. Between: dfB = k - 1. Within: dfW = N - k. Total: dfT = N - 1, and the check dfB + dfW = dfT always holds, as does SSB + SSW = SST.
Step 4 - Mean squares and F. MSB = SSB / dfB and MSW = SSW / dfW. Then F = MSB / MSW. Dividing by degrees of freedom is what makes the two mean squares comparable estimates of variance under the null hypothesis.
Step 5 - The p-value. Under the null hypothesis, F follows the F-distribution on (dfB, dfW) degrees of freedom. The p-value is the area in its upper tail beyond your observed F. This calculator evaluates that tail through the regularised incomplete beta function - the identity p = I(dfW / (dfW + dfB x F), dfW/2, dfB/2) - accurate well beyond the decimals displayed. For the spread of a single list behind these formulas, the Variance Calculator and Standard Deviation Calculator use the same n - 1 convention.
Reading the ANOVA table
The anova table is the standard report format for this test, and every statistics package prints some version of it. It has one row per source of variation, and five columns that answer five different questions.
| Source | SS | df | MS | What it means |
|---|---|---|---|---|
| Between groups | SSB | k - 1 | SSB / dfB | Variation explained by group membership |
| Within groups | SSW | N - k | SSW / dfW | Leftover variation inside the groups (error) |
| Total | SST | N - 1 | - | All variation in the data; SSB + SSW must equal SST |
F and its p-value sit on the Between row, because F is the Between mean square judged against the Within mean square. Two sanity checks are built into the format: the SS column must add up (SSB + SSW = SST), and so must the df column. If a published table fails either check, something was mis-copied. This calculator prints all three rows every time, so the checks are yours to make.
Worked example: three groups, F = 24
The calculator above is pre-filled with an example small enough to check by hand. Group A: 5, 6, 7, 6. Group B: 8, 9, 7, 8. Group C: 3, 4, 5, 4. The group means are 6, 8 and 4, each group has n = 4, and the grand mean of all 12 values is 6.
Between: SSB = 4 x (6 - 6)2 + 4 x (8 - 6)2 + 4 x (4 - 6)2 = 0 + 16 + 16 = 32. With k = 3 groups, dfB = 2, so MSB = 32 / 2 = 16.
Within: each group's values sit 1 unit or 0 units from their mean, giving a within sum of squares of 2 per group, so SSW = 6. With N = 12 values, dfW = 12 - 3 = 9, so MSW = 6 / 9 = 0.6667.
The test: F = 16 / 0.6667 = 24.00 on (2, 9) degrees of freedom. The upper tail of the F-distribution there is p at about 0.00025 - far below 0.05, and below the 5 percent critical value of 4.26 from the table below by a wide margin. Verdict: reject the null hypothesis; the three population means are not all equal. Eta-squared is 32 / 38 = 0.842: in this deliberately tidy teaching example, group membership accounts for about 84 percent of the total variation. Run the pre-filled values and every figure here is reproduced exactly.
Second worked example: four groups, and a quiet one
Four fertiliser blends, five plants each. Blend 1: 12, 14, 13, 15, 14 (mean 13.6). Blend 2: 18, 17, 19, 18, 20 (mean 18.4). Blend 3: 15, 16, 14, 15, 17 (mean 15.4). Blend 4: 11, 12, 13, 12, 11 (mean 11.8). The grand mean is 14.8. The arithmetic gives SSB = 118.80 on dfB = 3 (MSB = 39.60) and SSW = 18.40 on dfW = 16 (MSW = 1.15), so F = 34.43 with p below 0.0001 and eta-squared of 0.866. Again a clear rejection - and again, ANOVA itself stops there. The means suggest Blend 2 leads and Blend 4 trails, but which of the six pairwise gaps are real is a post-hoc question, not an ANOVA answer.
A quiet example. Three groups - 10, 12, 11, 13 / 11, 10, 12, 11 / 12, 11, 10, 12 - have means 11.5, 11.0 and 11.25 around a grand mean of 11.25. Here SSB is only 0.50 against SSW of 9.75, so F = 0.23 on (2, 9) with p at about 0.80. Nothing surprising: spreads like this arise from pure noise most of the time. Note the honest wording - the result does not prove the means are equal; it says these data carry no evidence that they differ. Absence of evidence is not evidence of absence, especially with four values per group.
The F statistic and the F-distribution
Every f statistic calculator is really two calculations: the ratio itself, and the distribution that turns the ratio into a probability. The F-distribution is a family of right-skewed distributions indexed by two degrees of freedom - the numerator df (between) and the denominator df (within). It arises as the ratio of two independent chi-square variables each divided by its degrees of freedom, which is exactly what MSB / MSW is under the null hypothesis.
Three consequences follow. First, F can never be negative, and values below 1 are ordinary noise - the quiet example above produced 0.23. Second, the same F carries different weight on different degrees of freedom: F = 4 is decisive on (3, 60) but unremarkable on (3, 6), because small samples estimate variances shakily and the distribution spreads out to price that in. Third, the distribution's shape is why ANOVA is always an upper-tail test: only large F counts against the null, so there is no one-tailed versus two-tailed choice to make, unlike the t-test. If you already hold an F value and need its p-value, the P-Value Calculator goes the other way; the shape of the related bell curve is covered by the Normal Distribution Calculator.
F critical values table (alpha = 0.05)
Before software, the test ended at a table like this one: compare your F with the critical value for your two degrees of freedom; exceeding it means p is below 0.05. Every entry below was computed from the same F-distribution mathematics that powers the calculator above, so table and tool check each other. The worked example's F of 24.00 on (2, 9) dwarfs the nearby critical values of 4.26 (dfW = 9 sits between the 5 and 10 rows; interpolating is unnecessary when the gap is this wide).
| df within | df between = 1 | df between = 2 | df between = 3 | df between = 4 |
|---|---|---|---|---|
| 5 | 6.61 | 5.79 | 5.41 | 5.19 |
| 10 | 4.96 | 4.10 | 3.71 | 3.48 |
| 15 | 4.54 | 3.68 | 3.29 | 3.06 |
| 20 | 4.35 | 3.49 | 3.10 | 2.87 |
| 30 | 4.17 | 3.32 | 2.92 | 2.69 |
| 60 | 4.00 | 3.15 | 2.76 | 2.53 |
| 120 | 3.92 | 3.07 | 2.68 | 2.45 |
Read across for your between df and down for your within df. Two patterns matter: critical values fall as the within df grows (more data, steadier error estimate), and they fall as the between df grows (the null distribution concentrates). Between rows, the next lower row is the conservative choice. For an exact p-value at any F and any degrees of freedom, the calculator above replaces the table entirely.
After a significant F: post-hoc tests and Tukey HSD
A significant F is a beginning, not an ending. It licenses the follow-up question - which means differ from which? - and that question must be asked with a procedure that controls the family-wise error rate across all the comparisons at once. The standard choice for all pairwise comparisons is Tukey HSD (honestly significant difference), which compares each pairwise gap with a critical value built from the studentised range distribution and the within mean square. Alternatives include Bonferroni-adjusted t-tests (simple, conservative), Scheffe's method (valid for any contrast, most conservative) and Dunnett's test (every group against one control).
Plain statement of limits: this calculator does not run Tukey HSD or any other post-hoc test. The pairwise differences in the results panel are descriptive only - the raw gaps between group means, printed so you can see the shape of the result, with no p-values and no significance flags attached. Drawing pairwise conclusions from them without a post-hoc correction repeats exactly the multiple-testing error ANOVA exists to prevent. Run the follow-up in R with TukeyHSD, in Python with statsmodels, or in any full statistics package, and report those adjusted p-values.
Assumptions: normality, equal variances, independence
The assumptions deserve plain words, because the p-value is only as good as they are. Normality applies to the values within each group (equivalently, to the residuals). It matters most when samples are small; with larger groups the central limit theorem steadies the group means even when the raw data are skewed. One extreme outlier in a small group can move F more than the effect you are testing for - look at your data, not just the table.
Equal variances (homoscedasticity) matters because MSW pools every group's variance into one error estimate. The danger case is unequal variances combined with unequal group sizes: a small group with a large variance gets under-weighted in the pool, the standard errors shrink, and significance is manufactured; the mirror-image design hides real effects. The results panel prints every group's SD precisely so this can be eyeballed - a largest-to-smallest SD ratio beyond about 2 deserves caution, a Welch ANOVA, or a transformation. Formal checks exist (Levene's test is the common one); this calculator does not run them.
Independence has no statistical workaround. Clustered, paired or time-ordered observations treated as independent understate the error term, and no summary on this page can detect that from the numbers alone - it is a property of how the data were collected. If observations influence each other, the design needs a different model: repeated measures, a mixed model, or aggregation to one value per independent unit. Planning a study? The Sample Size Calculator covers the how-many question before you collect anything.
Effect size: eta-squared and omega-squared
Significance answers "is this spread surprising under the null?" Effect size answers the more useful question: "how much of the outcome does the grouping explain?" Eta-squared is eta2 = SSB / SST, the share of total variation sitting between groups. The worked example's 0.842 and the fertiliser example's 0.866 are enormous by real-world standards - teaching examples are built tidy. Cohen's rough guideposts call 0.01 small, 0.06 medium and 0.14 large, but the right benchmark is your field's typical effects and the practical cost of the differences, not a universal ladder.
Eta-squared is biased upward, especially with small samples and many groups, because SSB always grows when groups are added. Omega-squared corrects for that: omega2 = (SSB - dfB x MSW) / (SST + MSW). It can dip slightly negative when F is below 1, which simply reads as "no detectable share". This calculator reports both, side by side, so the optimistic and corrected views are both visible. Always report an effect size next to F and p: a significant F with eta-squared of 0.01 and a significant F with eta-squared of 0.40 are different findings wearing the same p-value costume.
ANOVA in Excel, Google Sheets, R and Python
Every serious package runs the same one-way model. In Excel, enable the Analysis ToolPak (File, Options, Add-ins), then Data, Data Analysis, ANOVA: Single Factor; arrange each group in its own column and select the block. Google Sheets has no built-in ANOVA menu - the XLMiner Analysis ToolPak add-on provides one, or build the table by hand from group means, sizes and sums of squares using the formulas above. In R: fit = aov(values ~ group, data = d); summary(fit) prints the ANOVA table, and TukeyHSD(fit) runs the post-hoc follow-up this calculator omits. In Python: scipy.stats.f_oneway(a, b, c) returns F and p directly, and statsmodels adds the full table and Tukey HSD. Figures should agree with this page to the last decimal when fed the same raw values - the worked examples above are safe cross-checks.
Common mistakes
Reading a significant F as "all groups differ". It means at least one mean differs from at least one other. Two of your five groups could be identical twins and the F would still fire on the other three.
Running pairwise t-tests instead of, or straight after, ANOVA without correction. Six uncorrected tests at 5 percent carry roughly a 26 percent family-wise false-alarm rate. The omnibus test first, then an adjusted post-hoc procedure - that ordering is the entire point of the method.
Feeding repeated measures data into a one-way calculator. Same subjects in every group violates independence by design. The p-value that comes out is precise, confident and wrong.
Reporting p without the means. An ANOVA result reported as "F(2, 9) = 24.00, p = 0.00025" with no group means or effect size tells the reader almost nothing usable. Report the means, the SDs, F with both degrees of freedom, the exact p, and eta-squared or omega-squared.
Treating a non-significant result as proof of equality. With four values per group, even a real difference is easy to miss. "No evidence of a difference" and "evidence of no difference" are different claims; the second needs an equivalence test or a much larger sample.
Letting one outlier run the analysis. Sums of squares square every deviation, so a single mistyped 700 among values near 7 can dominate SSW or SSB. Scan the pasted values before trusting the table.
Honest limits: what this calculator cannot do
Plainly stated: this tool runs one-way ANOVA only - one factor, independent groups, 3 to 10 groups. It does not run two-way or factorial ANOVA, repeated measures ANOVA, ANCOVA, Welch ANOVA for unequal variances, the Kruskal-Wallis non-parametric alternative, or any post-hoc test including Tukey HSD. It does not test normality or equal variances for you, does not detect outliers, and cannot know whether your observations were collected independently - the assumption no arithmetic can rescue.
It also cannot judge whether a statistically significant difference matters. That judgement lives in your subject area: the size of the mean gaps in their original units, the effect size, and what a difference of that size is worth. Finally: this is a calculator, not a substitute for statistical advice. For homework, a quick check of published figures, or a first look at pilot data, it is the whole job. For a clinical decision, a regulatory submission, a publication or anything someone's health, money or livelihood rides on, have the analysis reviewed by a statistician who can see the data and the design. What this page promises: the textbook one-way ANOVA formulas, an F-distribution p-value computed at full precision through the regularised incomplete beta function, worked examples whose every figure you can verify by hand - in your browser, free, with nothing uploaded.
Sources and References
- NIST/SEMATECH e-Handbook of Statistical Methods - One-Way ANOVA (3.2.3.1) - the US National Institute of Standards and Technology reference for the one-way ANOVA model, its sums of squares and its F test.
- NIST/SEMATECH e-Handbook of Statistical Methods - Are the Means Equal? (7.4.3) - the NIST treatment of comparing group means, including the test statistic and the equal-variance question behind the pooled error term.
- Wikipedia - Analysis of variance - the standard overview of ANOVA: the partitioning of sums of squares, degrees of freedom, the F test and effect sizes including eta-squared and omega-squared.
- Wikipedia - One-way analysis of variance - the one-way model specifically: its assumptions, the F statistic on between and within degrees of freedom, and its relationship to the t-test.
- Wikipedia - F-test - the F test of equality of variances and means, including the ANOVA F statistic and how it is read against the F-distribution.
- Wikipedia - F-distribution - the distribution itself: its definition as a ratio of chi-square variables, its two degrees of freedom, and its cumulative distribution through the regularised incomplete beta function - the identity this calculator uses.
- Wikipedia - Tukey's range test - the Tukey HSD post-hoc procedure this calculator does not run, documented here so readers can follow up a significant F with the correct method.
All seven sources were verified live (HTTP 200 via curl) in November 2026. No substitutions were needed: every source listed above is the source originally selected for this page, including the two NIST/SEMATECH e-Handbook sections, which responded with HTTP 200.