Home · Statistics · Inference & Tests · F-statistic calculator
F-statistic calculator
The F-statistic as a ratio of mean squares: the between-group mean square divided by the within-group mean square, the core statistic of ANOVA.
What this calculator does
The F-statistic as a ratio of mean squares: the between-group mean square divided by the within-group mean square, the core statistic of ANOVA. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
F compares two variance estimates: MSB reflects group-mean differences plus noise, MSW reflects noise alone.
Under the null hypothesis of equal group means, F follows the F distribution on (df 1, df 2) and hovers near 1.
The degrees of freedom do not enter the ratio itself, but they determine its null distribution — use them with the critical-value or p-value calculator.
Worked example
With the example inputs this page opens with (mean square between (msb) 135, mean square within (msw) 30, degrees of freedom 1 (between) 3, degrees of freedom 2 (within) 36), the result is 4.5000. Change any figure and the result updates with the same formula.
Quick reference
| Mean square between (MSB) | Result |
|---|---|
| 67.5 | 2.2500 |
| 108 | 3.6000 |
| 135 | 4.5000 |
| 168.75 | 5.6250 |
| 202.5 | 6.7500 |
| 270 | 9.0000 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
What does an F of 4.5 mean?
The between-group variance estimate is 4.5 times the within-group estimate. On (3, 36) degrees of freedom that is well beyond null behaviour (p ≈ 0.009), so the group means are not all equal — though F alone does not say which groups differ.
Can F be less than 1?
Yes. If the group means happen to sit closer together than noise alone would predict, MSB falls below MSW and F drops under 1. It is never negative, since it is a ratio of sums of squares.
How does the F-statistic calculator work?
The F-statistic as a ratio of mean squares: the between-group mean square divided by the within-group mean square, the core statistic of ANOVA. Mean square between · Mean square within · df 1 · df 2 → F-statistic. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the F-statistic calculator need?
Mean square between · Mean square within · df 1 · df 2 → F-statistic. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.