F-Test Calculator (Two-Sample Variance Test)
Compare two sample variances and test whether the underlying population variances are equal. We automatically put the larger variance on top.
1. Sample data
You can enter either the sample variance (s²) or the sample standard deviation (s). If you fill both for a sample, we will use the variance.
Sample 1
Sample 2
2. Test setup
Two-tailed is the default for testing equality of variances.
3. Results
F statistic
—
df₁
—
df₂
—
p-value
—
How the F-test works
The classical F-test for two variances tests:
- H₀: σ₁² = σ₂²
- H₁: σ₁² ≠ σ₂² (two-tailed) or σ₁² > σ₂² / σ₁² < σ₂² (one-tailed)
The test statistic is the ratio of sample variances:
F = s₁² / s₂²To make the test stable, we put the larger sample variance in the numerator so F ≥ 1. The sampling distribution of F under H₀ is the F distribution with df₁ = n₁ − 1 and df₂ = n₂ − 1.
Interpreting the p-value
If the p-value is small (e.g. < 0.05), we reject H₀ and conclude the variances are significantly different. If the p-value is large, the data do not provide evidence that the variances differ.
Note: The F-test assumes both samples come from normal populations. If this is not the case, consider alternative robust tests.