F-Test Calculator (Two Variances)

F-test for equal variances: F = s₁² ÷ s₂² from summary values or two data lists, with degrees of freedom, p-value, critical values and a decision.

%

Results

F statistic (s₁² ÷ s₂²)
1.123037
p-value
0.3704
Two-sided: twice the smaller of the two tail areas, capped at 1.
At α = 5%
Do not reject the null hypothesis of equal variances
Numerator degrees of freedom (N₁ − 1)
239
Denominator degrees of freedom (N₂ − 1)
239
Lower critical value (α/2 = 2.5%)
0.7756
Upper critical value (α/2 = 2.5%)
1.2894
Reject when F is below the lower or above the upper critical value.
Variance of sample 1
4,296.68
Variance of sample 2
3,825.95

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.

F = s₁² ÷ s₂² df₁ = N₁ − 1, df₂ = N₂ − 1 two-sided: reject if F < F(1 − α/2; df₁, df₂) or F > F(α/2; df₁, df₂) upper one-sided (σ₁² > σ₂²): reject if F > F(α; df₁, df₂) lower one-sided (σ₁² < σ₂²): reject if F < F(1 − α; df₁, df₂) two-sided p-value = 2 × the smaller of P(F′ ≤ F) and P(F′ ≥ F), capped at 1

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

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