F.TEST returns the two-tailed probability that two samples come from populations with equal variances. A small result suggests the variances differ, while a large result gives no evidence of a difference.
=F.TEST(array1, array2)What does F.TEST do?
F.TEST is Excel's built-in statistical function for comparing the spread of two data sets. It calculates the two-tailed probability (p-value) of an F-test, which asks whether the variances of the two underlying populations are equal. You give it two ranges of numbers, and it returns a single probability between 0 and 1.
Variance matters because many everyday decisions depend on consistency, not just averages. Two suppliers might have the same mean delivery time, but one could be far more erratic. F.TEST helps you judge whether an observed difference in spread is real or just random noise, using the same logic as a formal hypothesis test.
A typical office situation: you have monthly sales figures for two regions and want to know whether one region's performance is genuinely more variable. Instead of eyeballing the numbers, F.TEST gives you a probability you can compare with a significance level such as 0.05. It is quick, requires no add-ins, and works in every modern version of Excel.
When to use F.TEST
- Checking whether two machines or suppliers produce equally consistent output.
- Comparing the volatility of sales, costs, or wait times between two branches.
- Deciding whether a before-and-after process change altered variability.
- Testing the equal-variance assumption before a two-sample t-test.
- Comparing measurement error between two instruments or two labs.
- Screening two groups of student scores for differences in spread.
F.TEST syntax
=F.TEST(array1, array2)| Argument | Required? | What to enter |
|---|---|---|
array1 | Required | The first range or array of numeric values. Text, logical values, and empty cells are ignored. Example: B2:B10. |
array2 | Required | The second range or array of numeric values. Must contain at least two numeric values. Example: C2:C10. |
What it returns: A decimal probability between 0 and 1: the two-tailed p-value for the null hypothesis that the two populations have equal variances. A value below your significance level (commonly 0.05) is evidence that the variances differ.
F.TEST examples
1 Example 1: Two small samples of test scores
You have five scores from each of two classes and want to know whether their spread differs. The formula =F.TEST(B2:B6,C2:C6) compares the two ranges. F.TEST computes the ratio of the sample variances and converts it to a two-tailed probability. Here it returns about 0.2963626885, a large p-value, so there is no evidence that the two classes have different variances.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Class A | Class B | |||
| 2 | S1 | 78 | 82 | 0.2963626885 | ||
| 3 | S2 | 85 | 79 | |||
| 4 | S3 | 92 | 88 | |||
| 5 | S4 | 70 | 75 | |||
| 6 | S5 | 88 | 84 | |||
| 7 |
2 Example 2: Delivery times for two couriers
A logistics team records delivery times in minutes for two couriers. They want to know whether one courier is less consistent. =F.TEST(B2:B9,C2:C9) compares the two columns of times. The result is about 0.2110831109, well below 0.05, so the team has strong evidence that the variances differ and can investigate the less consistent courier.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Run | Courier X | Courier Y | |||
| 2 | 1 | 32 | 45 | 0.2110831109 | ||
| 3 | 2 | 28 | 50 | |||
| 4 | 3 | 35 | 42 | |||
| 5 | 4 | 30 | 55 | |||
| 6 | 5 | 33 | 48 | |||
| 7 | 6 | 29 | 52 | |||
| 8 | 7 | 31 | 47 | |||
| 9 | 8 | 34 | 49 | |||
| 10 |
3 Example 3: Monthly sales variability by region
A sales manager has six months of revenue for two regions and wants to know whether one region's sales are more volatile. =F.TEST(B2:B7,C2:C7) compares the two sets of monthly figures. It returns about 0.2914952199, so the difference in spread is not statistically convincing at the usual 0.05 level.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Month | North sales | South sales | |||
| 2 | 2024-01 | 12000 | 15000 | 0.2914952199 | ||
| 3 | 2024-02 | 13500 | 14200 | |||
| 4 | 2024-03 | 11800 | 15800 | |||
| 5 | 2024-04 | 14200 | 14900 | |||
| 6 | 2024-05 | 12500 | 15300 | |||
| 7 | 2024-06 | 13000 | 14600 | |||
| 8 |
4 Example 4: Quality control on two production lines
A factory measures the fill weight of eight bottles from each of two lines. The quality team wants to know whether the lines have equal variability. =F.TEST(B2:B9,C2:C9) returns about 0.04986723057, far below 0.05, so the lines differ significantly in consistency and the less stable line needs attention.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Bottle | Line 1 (g) | Line 2 (g) | |||
| 2 | 1 | 500 | 502 | 0.04986723057 | ||
| 3 | 2 | 501 | 498 | |||
| 4 | 3 | 499 | 505 | |||
| 5 | 4 | 500 | 497 | |||
| 6 | 5 | 502 | 503 | |||
| 7 | 6 | 498 | 499 | |||
| 8 | 7 | 501 | 504 | |||
| 9 | 8 | 499 | 500 | |||
| 10 |
5 Example 5: Before and after a process change
A support team records daily call volumes before and after a new routing system. They want to know whether variability changed. =F.TEST(B2:B9,C2:C9) compares the two periods. It returns about 0.8813779059, below 0.05, so there is evidence that the spread of call volumes changed after the new system.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Day | Before | After | |||
| 2 | Mon | 120 | 135 | 0.8813779059 | ||
| 3 | Tue | 130 | 128 | |||
| 4 | Wed | 125 | 140 | |||
| 5 | Thu | 118 | 132 | |||
| 6 | Fri | 122 | 138 | |||
| 7 | Mon | 128 | 130 | |||
| 8 | Tue | 121 | 136 | |||
| 9 | Wed | 127 | 134 | |||
| 10 |
Common F.TEST errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #DIV/0! | One or both arrays contain fewer than two numeric values, so a variance cannot be calculated. | Make sure each range has at least two numbers; remove text or blank cells from the ranges. |
| #VALUE! | An argument is text that cannot be interpreted as numbers, or a range reference is invalid. | Pass numeric ranges or arrays only; check that the references point to cells containing numbers. |
| #N/A | The two arrays have different numbers of data points and Excel cannot pair them for the test. | Use ranges of equal size, or ensure both ranges contain the same count of numeric values. |
| #NAME? | The function name is misspelled, for example =FTEST( without the dot in newer Excel, or the formula contains unquoted text. | Use the exact name F.TEST (or FTEST in older files) and enclose any text criteria in double quotes. |
Tips for using F.TEST
- Compare the returned p-value with your chosen significance level, usually 0.05: below it, variances likely differ.
- F.TEST is two-tailed; if you need a one-tailed test, halve the result when the larger variance is in the direction you predicted.
- Clean your ranges first: text, blanks, and logical values are ignored, which can silently change the sample size.
- Use
=VAR.S(range1)/VAR.S(range2)alongside F.TEST to see which group is more variable. - F.TEST assumes independent samples from roughly normal populations; with very small samples, interpret cautiously.
- For a full analysis, pair F.TEST with a two-sample t-test that does not assume equal variances.
Frequently asked questions
What does the F.TEST p-value mean?
It is the probability of seeing variances at least as different as yours if the two populations actually had equal variances. A small value (for example below 0.05) is evidence that the variances differ.
Is F.TEST the same as FTEST?
Yes. FTEST is the older name; F.TEST is the modern name introduced with Excel 2010. Both perform the same two-tailed F-test and return the same probability.
Can F.TEST handle text or blank cells in the ranges?
Yes, it ignores them. Only numeric values are used, so the effective sample size may be smaller than the range size.
Should I use F.TEST before a t-test?
It can help you decide whether to assume equal variances, but modern practice often uses Welch's t-test, which does not require that assumption. F.TEST is still useful for comparing consistency directly.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. F.TEST reference