Home Calculators F-Test Calculator
Statistical Variance Test

F-Test Calculator

Compare two sample variances and calculate the F-statistic, degrees of freedom, critical F-value, p-value, and hypothesis test decision. Enter your sample data below to perform an F-test instantly.

Instant Result P-Value Included No Data Stored Mobile Friendly

Enter Sample Data

Use sample variances and sample sizes.

1 Sample One
2 Sample Two
Statistics Guide

What Is an F-Test?

An F-test is a statistical hypothesis test based on the F-distribution. One common use is comparing the variances of two independent populations to determine whether the difference between their sample variances is statistically significant.

The test calculates a ratio between two sample variances. If the resulting F-statistic falls far enough into the appropriate tail of the F-distribution, the null hypothesis can be rejected at the selected significance level.

What Does This Calculator Test?

This calculator performs a two-sample variance F-test. The default null hypothesis assumes that the two population variances are equal: H₀: σ₁² = σ₂²

You can select a two-tailed test when checking whether the variances are different in either direction, or a one-tailed test when your hypothesis specifically predicts that one variance is larger or smaller than the other.

Calculation Process

How the F-Test Calculator Works

01

Enter Both Samples

Provide the sample variance and sample size for each of the two groups you want to compare.

02

Choose Your Test

Select the significance level and choose a two-tailed, right-tailed, or left-tailed alternative hypothesis.

03

Review the Result

The calculator returns the F-statistic, degrees of freedom, critical values, p-value, and statistical decision.

Example: If Sample 1 has a variance of 25 and Sample 2 has a variance of 10, then the F-statistic is 25 ÷ 10 = 2.5. The F-distribution is then used with the corresponding numerator and denominator degrees of freedom to determine statistical significance.
F-Test Formula

F-Test Formula and Degrees of Freedom

F-Statistic Formula

For two sample variances, the basic F-statistic is: F = s₁² / s₂²

Here, s₁² is the variance of Sample 1 and s₂² is the variance of Sample 2.

Degrees of Freedom

The numerator and denominator degrees of freedom are: df₁ = n₁ − 1 and df₂ = n₂ − 1 .

The two degrees of freedom determine the shape of the F-distribution used to calculate the critical values and p-value.

Test Types

Two-Tailed vs One-Tailed F-Test

Test Alternative Hypothesis Rejection Region Typical Use
Two-Tailed σ₁² ≠ σ₂² Both tails Testing whether variances differ
Right-Tailed σ₁² > σ₂² Upper tail Testing whether Sample 1 variance is larger
Left-Tailed σ₁² < σ₂² Lower tail Testing whether Sample 1 variance is smaller
Understanding Results

How to Interpret Your F-Test Result

The p-value provides a convenient way to interpret the test. Compare the calculated p-value with your chosen significance level, usually written as α.

If the p-value is less than or equal to alpha, the calculator reports that the null hypothesis should be rejected. This means the observed variance difference is statistically significant under the assumptions of the selected test.

If the p-value is greater than alpha, the calculator reports that there is not enough evidence to reject the null hypothesis. This does not prove that the population variances are identical; it only means the sample does not provide sufficient evidence of a difference at that significance level.

Important: The classical F-test for variances assumes independent observations and normally distributed populations. Strong departures from normality can affect the test.
Common Questions

F-Test Calculator FAQs

An F-statistic is a ratio that follows an F-distribution under the null hypothesis. In a two-sample variance test, it is obtained by dividing one sample variance by the other.
Divide Sample 1's variance by Sample 2's variance. For example, if the variances are 20 and 10, the F-statistic is 20 ÷ 10 = 2.
df1 is the numerator degrees of freedom and df2 is the denominator degrees of freedom. For a two-sample variance test, they are calculated as n1 − 1 and n2 − 1.
A small p-value indicates that the observed F-statistic would be relatively unusual under the null hypothesis. If the p-value is less than or equal to your significance level, the null hypothesis is rejected.
A significance level of 0.05 is commonly used, although 0.10, 0.025, and 0.01 are also possible. The correct alpha level should be selected according to the requirements of your analysis before interpreting the test.
Yes. When Sample 1's variance is smaller than Sample 2's variance, the ratio s1² ÷ s2² is less than 1. This calculator supports values both above and below 1.
Not exactly. ANOVA also uses an F-statistic and the F-distribution, but its F-ratio compares variation between groups with variation within groups. This calculator specifically compares two sample variances.
No. The statistical calculations in this page are performed inside your browser using JavaScript. The values entered into the calculator do not need to be sent to a database.