How it’s calculated
The F-test compares the variances of two populations. The test statistic is the ratio of the two sample variances; the further it is from 1, the stronger the evidence that the population variances differ. Under the null hypothesis that the variances are equal, and for normally distributed data, the ratio follows an F distribution with N₁ − 1 and N₂ − 1 degrees of freedom.
Here F(α; df₁, df₂) is the upper critical value, the point with probability α above it, which is how the NIST Handbook defines it. The F distribution is not symmetric, so the two-sided p-value doubles the smaller tail, the usual convention; it agrees with the two critical values.
Example (NIST/SEMATECH e-Handbook 1.3.5.9, ceramic strength): batch 1 has N = 240 and s = 65.54909; batch 2 has N = 240 and s = 61.85425. Then F = 65.54909² ÷ 61.85425² = 1.123037 with 239 and 239 degrees of freedom. At α = 0.05 (two-sided) the critical values are 0.7756 and 1.2894. F lies between them, so there is not enough evidence to reject equal variances.
The F-test is sensitive to non-normal data. If your data are skewed or have outliers, a less sensitive test (for example Levene’s test) is safer.
Frequently asked questions
Do I need equal sample sizes?
No. The two sample sizes only set the two degrees of freedom.
Does it matter which sample is sample 1?
For the two-sided test the conclusion does not change if you swap them (F becomes 1/F and the degrees of freedom swap). For a one-sided test it matters, because the alternative says which variance is larger.
How do I use this before a t-test?
Some courses check equal variances with an F-test before choosing a pooled t-test. Many statisticians now prefer Welch’s t-test, which does not assume equal variances, and avoid this two-step approach.
What does it mean to “fail to reject”?
It means the data do not give enough evidence that the variances differ. It does not prove they are equal, especially with small samples.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.9 F-Test for Equality of Two Variances — NIST
- Introductory Statistics 2e, §13.4 Test of Two Variances — OpenStax
- NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.7.3 Upper Critical Values of the F Distribution — NIST
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator