What ANOVA checks
ANOVA — analysis of variance — checks whether three or more groups really differ, or whether their averages are just wobbling by chance. You test three fertilisers on crop yield, four teaching methods on exam scores, or five website designs on conversion. Running a t-test on every pair would inflate the false-positive rate; ANOVA tests all the groups at once, in a single calculation.
The F-statistic is the heart of it. It compares the variation between the group averages with the variation inside the groups. If the groups are genuinely different, the between-group variation dwarfs the within-group variation and F is large. If the groups are the same, the two variations are similar and F sits near 1. An F near 1 means nothing is going on; an F of 4 or 5 usually means something is.
This calculator takes your F-statistic and its two degrees of freedom, and returns the p-value, the critical value at 0.05 and a yes-or-no verdict. It runs entirely in your browser, so nothing is uploaded and nothing is stored.
How the ANOVA p-value is worked out
The p-value is the area under the F-distribution beyond your statistic. That area comes from the regularised incomplete beta function: with x set to (df1 × F) ÷ (df1 × F + df2), the p-value is 1 − I_x(df1 ÷ 2, df2 ÷ 2). The calculator works this out with the Numerical Recipes continued-fraction method, accurate to far more digits than a p-value needs.
The critical value is found the other way round: it is the F whose p-value is exactly 0.05. The calculator finds it by bisection, narrowing a bracket sixty times until the value settles. With 2 and 12 degrees of freedom the critical value is 3.89; with 3 and 20 it is 3.10; with 1 and 30 it is 4.17. If your F is bigger than the critical value, the result is significant at 0.05.
ANOVA has two degrees of freedom because it compares two variances. The first, df1, is the number of groups minus one; the second, df2, is the total number of observations minus the number of groups. Both shape the curve, so both must be right — a wrong df2 alone can flip the verdict.
The two degrees of freedom, explained
This is the input people get wrong most often, because ANOVA is the only common test with two of them. The first counts the groups: with 3 groups, df1 is 2; with 4 groups, df1 is 3; with 5 groups, df1 is 4. It is always the number of groups minus one, because once you know the grand average and all but one group average, the last one is fixed.
The second counts the observations left over after the groups are fitted. With 15 observations spread across 3 groups, df2 is 15 − 3 = 12. With 24 observations across 4 groups, df2 is 20. The more observations you have inside the groups, the larger df2 is, and the smaller the critical value becomes — more data means a smaller F can count as evidence.
A sense check helps. With df1 = 2 and df2 = 12, the critical value is 3.89. With the same df1 but df2 = 60, it falls to 3.15, because sixty observations pin the within-group variation down far more firmly. If your F is 4.0, it is significant in the first case and in the second — but an F of 3.5 would be significant only with the larger sample. Sample size buys sensitivity, and df2 is where that shows up.
A worked example: F = 4.0 with 2 and 12 degrees of freedom
Take the default numbers on this page: an F-statistic of 4.0 with df1 = 2 and df2 = 12. The p-value is 1 − I_x(1, 6) with x = (2 × 4) ÷ (2 × 4 + 12) = 8 ÷ 20 = 0.4, which works out to 0.05. The critical value at 0.05 is 3.89. Since 4.0 is above 3.89 and the p-value is below 0.05, the result is significant — at least one group differs from the rest.
A second example shows a null result. An F of 1.0 with the same degrees of freedom gives a p-value of 0.40, against the same critical value of 3.89. An F of 1 means the between-group variation is exactly the size of the within-group variation, which is what you expect when the groups are identical. A p-value of 0.40 means differences this big happen 40% of the time by chance.
A third example uses more groups and more data. An F of 5.5 with df1 = 3 and df2 = 20 gives a p-value of 0.01 and a critical value of 3.10, so it is clearly significant. The three cases together — 0.40, 0.05, 0.01 — show the scale: F near 1 is noise, F just over the critical value is borderline, and F well above it is a real difference between the groups.
Where ANOVA does real work
In agriculture, ANOVA compares fertilisers, seed varieties and irrigation levels across field plots. Three fertilisers are tried on fifteen plots, the yields are compared, and a significant F means at least one fertiliser genuinely beats the others. The farmer then runs a follow-up test to find which one — ANOVA says a difference exists, not which pair causes it.
In medicine, ANOVA compares several doses or several treatments at once. Four doses of a drug are tested on separate groups, and a significant F means the dose matters. Without ANOVA the researcher would run six pairwise t-tests, and the chance of a false positive across six tests would climb well above 5%. ANOVA keeps the error rate at 5% for the whole experiment.
In business and education, ANOVA compares teaching methods, store layouts, ad designs or pricing tiers. A company tests four website designs and a significant F means the design affects conversion; a school tests three teaching methods and a significant F means the method affects scores. A average calculator gives you the group means; ANOVA tells you whether their gaps mean anything.
ANOVA vs t-test vs chi-square: what is the difference?
ANOVA and the t-test both compare averages, and the choice is simple: two groups means a t-test, three or more means ANOVA. With two groups, ANOVA and the t-test give the same verdict — in fact, F equals t squared in that case. The reason to switch at three groups is error control: every extra t-test adds another chance of a false positive, and ANOVA holds the overall rate at 5%.
The chi-square test is a different tool entirely. It works on counts in categories — how many people chose each option — while ANOVA works on means of measured numbers. If your data is counts, use chi-square; if it is measurements split into three or more groups, use ANOVA. The two statistics live on different scales and cannot be compared with each other.
The p-value is not a test at all. It is the output every test shares: the probability of data this extreme if the null were true. An ANOVA p-value of 0.05 and a t-test p-value of 0.05 mean the same thing in plain language, but they come from different curves. A variance calculator shows the spread that ANOVA splits into between-group and within-group parts, and a probability calculator handles the everyday chances behind the p-value.
Common ANOVA mistakes
The first mistake is running ANOVA and stopping there. A significant F only says at least one group differs — it does not say which one. The follow-up is a post-hoc test, such as Tukey's HSD, that compares the pairs while keeping the error rate in check. Reporting a significant ANOVA without the follow-up is like announcing a winner without naming them.
The second mistake is the wrong degrees of freedom. The first is groups minus one, the second is observations minus groups. Swapping them, or using the total sample size for df2 without subtracting the groups, shifts the whole curve and can flip the verdict. Count the groups, count the observations, and apply both rules before you type anything.
The third mistake is ignoring the assumptions. ANOVA assumes the groups have roughly equal variances and the data is roughly normal within each group. If one group is far more spread out than the others, the F-statistic is unreliable — the fix is a Welch ANOVA or a transformation. A quick look at the spread in each group, with a standard deviation calculator, catches this before it matters.
The fourth mistake is reading a significant result as a big effect. ANOVA says the groups differ more than chance explains; it does not say by how much. A huge sample can make a trivial difference significant. Report the group means and the size of the gaps alongside the p-value, so readers can judge whether the difference matters in practice.
How to use this ANOVA calculator
Type your F-statistic into the first box — the number from your ANOVA table or your software output. Then type the two degrees of freedom: df1 is the number of groups minus one, and df2 is the total observations minus the number of groups. The p-value, the critical value at 0.05 and the verdict update live.
Read the verdict with the p-value beside it. If F is above the critical value, the p-value is below 0.05 and the answer is Yes. If it is below, the answer is No. Remember that Yes only means at least one group differs — run a post-hoc test to find which pair is responsible before you act on it.
Everything runs in your browser. No account, no upload, no data sent anywhere. Pair it with the percentage calculator when your groups are shares rather than means, and remember the fine print: this calculator takes an F-statistic you already have. Working one out from raw data needs the group means, spreads and sizes first.