F.TEST in Google Sheets: Compare Sample Variances Carefully
Use F.TEST in Google Sheets with two numeric samples, audit the variance ratio and understand the two-sided p-value, ignored cells and model assumptions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: For sample A 6, 8, 10, 12, 14 and sample B 8, 9, 10, 11, 12, =F.TEST(A2:A6,B2:B6) has an independently calculated expected p-value of 0.208 under the two-sided equality-of-variances interpretation described below.
Syntax and documented sample handling
=F.TEST(range1, range2)
Both sample ranges are required. There are no optional tail or test-type arguments. Google’s FTEST reference explicitly permits both FTEST and F.TEST and says nonnumeric cells in either range are ignored.
The function concerns variances, not the equality of sample means. It receives the raw samples and returns a probability associated with the variance comparison. Google’s example uses different sample lengths, so equal range lengths are not a documented requirement.
Worked example: two small synthetic samples
Enter this table in A1:B6:
| Row | A: Sample A | B: Sample B |
|---|---|---|
| 1 | Sample A | Sample B |
| 2 | 6 | 8 |
| 3 | 8 | 9 |
| 4 | 10 | 10 |
| 5 | 12 | 11 |
| 6 | 14 | 12 |
In D2 enter:
=F.TEST(A2:A6,B2:B6)
Expected result: 0.208. Both sample means are 10, but the spreads differ. The example is intentionally small and easy to audit; it is not evidence that five observations provide adequate power for a real study.
Use separate descriptive checks:
=VAR.S(A2:A6)
=VAR.S(B2:B6)
=COUNT(A2:A6)
=COUNT(B2:B6)
Expected results are 10, 2.5, 5 and 5. The sample-variance ratio is 4, with 4 and 4 degrees of freedom.
How the two-sided expectation was established
Google’s prose calls this an equality-of-variances test but does not spell out a two-tail formula. Its published numerical example, 0.8600520777, matches an independent calculation using twice the smaller F tail for the supplied unequal-length samples. That supports the two-sided interpretation used here; it is a documentation-and-mathematics crosscheck, not a native execution claim.
For the original five-row samples, an explicit mathematical check is:
=2*MIN(F.DIST(4,4,4,TRUE),F.DIST.RT(4,4,4))
Expected result: 2 × 0.104 = 0.208. The left-tail probability is 0.896 and the right-tail probability is 0.104. NIST’s variance-test reference distinguishes this two-sided alternative from directional alternatives.
Do not double the F.TEST result again. Also do not treat 0.208 as the probability that the population variances are equal. Under the test model, it is a tail-based measure of how extreme the observed ratio is under equal population variances.
Advanced application: audit invariance and interpretation
Multiply every observation in both samples by 10. The new sample variances are 1000 and 250, but their ratio remains 4, so the independently expected p-value remains 0.208. A common change of measurement units should not change this variance-ratio test.
Adding the same constant to every value in one sample also leaves that sample’s variance unchanged. For example, changing sample B to 108, 109, 110, 111, 112 changes its mean to 110 but leaves its variance at 2.5. The expected variance-test result stays 0.208 even though the means are very different.
This demonstrates why F.TEST cannot answer whether two groups have the same average. Select a test based on the scientific or operational question, rather than on the convenience of an available function.
Missing values and assumptions
Because nonnumeric cells are ignored, an imported number stored as text can alter the usable sample count. Audit the numeric count in each group; do not replace missing observations with zero unless zero is a genuine observed value.
An exact classical F variance test assumes independent observations from normal populations. It can be sensitive to departures from that model. A numerical output does not establish independence, normality or a representative sample. Review the data-generating process and distribution shape before using the p-value for a consequential conclusion.
A result above a chosen significance threshold is insufficient evidence to reject equality under that test; it is not proof that the variances match. Report the sample sizes and variance ratio beside the p-value.
Errors and troubleshooting
Each group needs enough numeric observations for a sample variance, and a usable positive denominator variance. All-identical observations, missing data and source errors deserve investigation. The reviewed Google page does not enumerate native error tokens for every undersized or zero-variance case, so no unverified error mapping is asserted.
Keep the raw samples separate, confirm the intended ranges and distinguish an independent-samples variance test from a paired analysis. The ignored-cell rule does not supply a general error-value or Boolean coercion specification.
Availability and verification
Google explicitly documents F.TEST and FTEST together. Original introduction date, first supported version and last functioning numbered release were not established for rolling Sheets. No Excel execution or name similarity was used to establish the two-sided expectation.
NOT_TESTED_IN_GOOGLE_SHEETS. The individual FTEST page, its numeric example, the F distribution references and NIST definition were inspected on October 17, 2026. Sample variances and p-values were independently calculated; native execution and screenshots are not claimed.