We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
F-Test Calculator
If this tool helped you, you can buy us a coffee ☕
Enter the variance and sample size of two datasets to quickly calculate the F-statistic and p-value, and determine if the variances are significantly different.
Both samples require at least 2 valid numbers.
Enter at least 2 numbers per sample. F-statistic = Sample 1 Variance ÷ Sample 2 Variance. Supports comma, space, newline, or semicolon as separators; non-numeric content will be ignored.
Enter two sets of sample data to see F-test results

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.
Do you want to know if the machining precision of two machines is consistent, or compare the stability of a new and old process? The F-test can answer whether the population variances behind two sets of data are equal. It is also the foundation for Analysis of Variance (ANOVA) and significance testing in regression models. We use the F-statistic to quantify the difference—if the p-value is less than 0.05, it is generally considered that the two variances are indeed different, and you need to review your assumptions or processes.
The core idea of the F-test is: if two population variances are equal, the ratio of their two sample variances should be close to 1. We calculate:
F = S₁² / S₂²
Where S₁² is the variance of the first sample (sample variance, which is the sum of squared deviations from the mean divided by n-1), and S₂² is the variance of the second sample. Generally, we place the larger variance in the numerator so that F ≥ 1. Then, we look up the F-distribution table or directly calculate the p-value. The smaller the p-value, the more it indicates that the difference between the two variances is not due to random fluctuation. Note that we use the sample variance (unbiased estimate) here, not the population variance.
We have a batch of data: Machine A packaged 10 bags of potato chips with a sample variance of 0.35g²; Machine B packaged 12 bags with a sample variance of 0.18g². We want to test if the precision of the two machines is consistent (α=0.05).
Since the p-value 0.153 > 0.05, we do not have enough evidence to say the precision of the two machines is different. Although the F-value of 1.944 is greater than 1, random fluctuation could easily cause this difference.
If the two sample variances differ greatly: for example, Machine A has a variance of 4.0 (n₁=5) and Machine B has a variance of 0.05 (n₂=6), the calculation yields F=80, df₁=4, df₂=5, and a p-value of almost 0. This strongly indicates that the variances are unequal, and you need to investigate why Machine A fluctuates so much. Conversely, if the two variances are exactly equal (e.g., both are 1.0), F=1 and the p-value is close to 0.5, naturally you cannot reject the hypothesis that the variances are equal.
Note: The F-test is sensitive to normality; results may be unreliable when the sample is small or severely skewed.
1. What is the difference between an F-test and a t-test?
An F-test compares whether two variances are equal, while a t-test compares whether two means are equal. An F-test is often used to check for homogeneity of variances before performing a t-test.
2. My p-value shows 0.000, is it really 0?
No, it is extremely small (e.g., < 0.0001). Our tool displays three decimal places, so when it is extremely small, it shows 0.000, which can practically be understood as < 0.001.
3. Can I input standard deviation instead of variance?
We recommend squaring it first and then entering the variance. If a future version of the tool adds standard deviation input, we will note it. Currently, it only accepts variance.
4. Why is my calculated F-value less than 1?
Our tool automatically uses the larger variance as the numerator, so it displays F ≥ 1. If you see an F-value less than 1 elsewhere, the numerator and denominator are reversed; simply swap the degrees of freedom.
5. Can this calculator handle two-tailed tests?
It defaults to a two-tailed test, meaning it tests "whether variances are unequal." If you need a one-tailed test (e.g., only caring if the first is larger), please divide the p-value by 2.
Now you can try your own numbers in the calculator above.