Calculateus

F-Test (Variance Ratio) Calculator

Calculate the F-statistic to compare the variances of two samples.

Result

F-Statistic
1.7143
Degrees of Freedom
14, 11

By convention, put the larger variance in the numerator for a one-tailed test - compare this F-statistic against an F-distribution critical value table at your chosen significance level.

About the F-Test Calculator

The F-Test (Variance Ratio) Calculator compares the variances of two samples by dividing one sample variance by the other, producing the F-statistic used to test whether the two underlying populations have equal spread. It is also the same variance-ratio logic that underlies ANOVA.

How It Works

Enter the variance and sample size for each of two samples. The calculator divides sample 1's variance by sample 2's variance to get the F-statistic and reports the degrees of freedom for each sample (sample size minus 1). Both sample sizes must exceed 1 and sample 2's variance must be positive.

F = Variance1 / Variance2; df1 = n1 - 1, df2 = n2 - 1

Formula & Methodology

Divide the first sample's variance by the second sample's variance to get the F-statistic. Compute degrees of freedom for each sample by subtracting 1 from each sample size. To interpret the result, compare the F-statistic against a critical value from an F-distribution table at the chosen significance level and with these degrees of freedom; by convention the larger variance is placed in the numerator for a one-tailed comparison.

Examples

Comparing two lab batches

With sample 1 variance of 24 and n1 of 15, and sample 2 variance of 14 and n2 of 12, the F-statistic is 24/14, approximately 1.7143, with degrees of freedom 14 and 11.

Near-equal variances

If two samples both have variances close together, such as 18 and 17, the F-statistic comes out near 1.06, suggesting little evidence of a meaningful difference in variability between the two groups.

Advantages

  • Gives a direct, easily computed ratio for comparing the spread of two samples before deciding whether to pool variances in a t-test
  • Reports degrees of freedom alongside the F-statistic, which is exactly what is needed to look up a critical value or p-value
  • Reflects the same variance-decomposition logic used in ANOVA, making it a useful bridge to understanding multi-group comparisons

Common Mistakes

  • Interpreting the raw F-statistic value as automatically significant without comparing it to a critical value from an F-distribution table at a chosen significance level
  • Placing the smaller variance in the numerator inconsistently across comparisons, which changes whether you are running a one-tailed test in the intended direction
  • Assuming the F-test result is trustworthy when the underlying data is far from normally distributed, since the F-test for variances is sensitive to non-normality

Edge Cases to Watch For

  • Sample 2's variance must be strictly positive, and both sample sizes must be greater than 1, or the calculator returns an error.
  • An F-statistic near 1 suggests the two variances are similar, while a value far from 1 in either direction suggests a meaningful difference in spread, but the calculator itself does not compute a p-value or critical value.
  • Swapping which sample is variance 1 versus variance 2 inverts the F-statistic (it becomes its reciprocal), so consistency in which sample goes first matters when comparing results across analyses.

Common Use Cases

  • Analysts deciding whether to use a pooled or unpooled variance assumption before running a two-sample t-test
  • Quality control teams comparing the variability of two production batches or two measurement instruments
  • Students learning the connection between two-sample variance tests and the broader ANOVA framework
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What does the F-test check?

It tests whether two samples come from populations with equal variances, by comparing the ratio of their sample variances - an F-statistic far from 1 suggests the variances are meaningfully different. It's also the basis for ANOVA, which extends this variance-comparison idea to more than two groups.

Conclusion

The F-test variance ratio calculator gives a straightforward statistic and its degrees of freedom for comparing two sample variances. Because it stops short of a p-value, pair the reported F-statistic and degrees of freedom with an F-distribution table or software lookup to reach a formal conclusion.