Direct comparison
F-Test vs T-Test: Variances or Means?
F-test vs t-test: the F-test compares two variances, the t-test compares two means. See hypotheses, statistics, df and why F is not a gate for the t-test.
Written and maintained by CASRAI Editorial Board
Last updated
How do F-test (two variances) and t-test (two means) compare side by side?
The table below compares F-test (two variances) and t-test (two means) across 11 dimensions, from the question each test answers to when to pick each.
Side-by-side comparison
| Dimension | F-test (two variances) | t-test (two means) |
|---|---|---|
| The question each test answers | Are the variances of two populations equal? NIST gives the purpose as 'Test if variances from two populations are equal'. Use it when the amount of spread, not the average, is what you need to know, such as whether a new process is less variable than an old one. | Are the means of two populations equal? NIST gives the purpose as 'Test if two population means are equal'. A common application is testing whether a new process or treatment is superior to a current one. |
| Null hypothesis | H0: σ1² = σ2². The alternative is lower one-tailed (σ1² < σ2²), upper one-tailed (σ1² > σ2²) or two-tailed (σ1² ≠ σ2²). NIST says the choice of direction is determined by the problem, for instance interest only in whether a new process is less variable. | H0: μ1 = μ2 against Ha: μ1 ≠ μ2 for the unpaired test as NIST defines it. NIST also notes that the null can be stated as a difference equal to a threshold constant, μ1 − μ2 = d0, when a new treatment should be adopted only if it exceeds the current one by some margin. |
| Test statistic | F = s1²/s2², the ratio of the two sample variances. NIST: the more this ratio deviates from 1, the stronger the evidence for unequal population variances. The statistic compares variances, so sample means do not enter it. | Unequal-variance form: T = (Ȳ1 − Ȳ2) / √(s1²/N1 + s2²/N2). Equal-variance form: T = (Ȳ1 − Ȳ2) / (sp·√(1/N1 + 1/N2)), where sp² = [(N1−1)s1² + (N2−1)s2²] / (N1+N2−2). The statistic is built from a difference of sample means. |
| Degrees of freedom | N1 − 1 and N2 − 1: one pair of degrees of freedom, one per sample, for the numerator and denominator variances. The F distribution with these degrees of freedom supplies the critical values. | One value rather than a pair. With the equal-variance formula and similar sample sizes the simpler N1 + N2 − 2 applies; for unequal variances or sample sizes NIST points to the Welch-Satterthwaite degrees of freedom, which it describes as robust to unequal sample sizes and/or unequal variances. |
| Rejection rule (two-tailed) | Reject H0 if F < F(1−α/2, N1−1, N2−1) or F > F(α/2, N1−1, N2−1). NIST follows the convention that F(α) is the upper critical value and warns that some texts and software label the tails the opposite way, so check your software's convention before reading a table. | Reject H0 when the absolute value of T exceeds the critical value of the t distribution at the chosen significance level, with the degrees of freedom above. The rule is symmetric around zero for a two-sided alternative. |
| Does it matter that the other test exists? | The variance question is separate from the mean question. A result on spread says nothing about whether the averages differ. NIST lists Bartlett's and Levene's tests as related techniques for comparing variances. | NIST notes that assuming equal variances gives somewhat simpler formulas, 'although with computers this is no longer a significant issue'. Software can therefore fit the unequal-variance form without an extra decision about spread. |
| Using the F-test as a gate before a t-test | The two-stage routine (variance test first, then choose pooled or Welch t) is common but it is not what NIST's t-test page recommends. Wikipedia's F-test article cautions that preliminary Levene, Bartlett or Brown-Forsythe checks before testing means can inflate the experiment-wise Type I error. | A parallel finding for normality pretesting: Rochon, Gondan and Kieser (2012) showed that a preliminary Shapiro-Wilk test changes the conditional Type I error of the follow-up t-test or Mann-Whitney test, although the overall error stayed acceptable in their simulations. That study concerns normality tests, not F-tests, so treat it as an illustration of the pretest-then-test pattern only. |
| Sensitivity to non-normality | Wikipedia's F-test article states that the F-test is sensitive to non-normality. Because the two-variance F-test is also the form most often used as a screening step, the sensitivity matters for any decision built on it. | NIST's t-test page does not list assumptions for this test, so this page makes no claim about them. Check the assumptions given by your methods source or software documentation for your design. |
| The other F: ANOVA and regression | Wikipedia lists three common F-tests: equality of two variances, one-way ANOVA ('perhaps the best-known F-test') and regression model fit or nested-model comparison. The F in ANOVA and regression compares explained and unexplained variation to test means or coefficients, so it is a different question from the two-variance F-test. | Relation to F: with two groups, the one-way ANOVA F statistic equals the square of the pooled-variance t statistic (F = t²), so both tests give the same conclusion for a two-group comparison. For more than two groups the t-test is no longer the tool and ANOVA is. |
| Paired data | No paired form. The two-variance F-test compares two sample variances from two populations. | Paired data are handled by calculating the difference Xi − Yi for each pair, as NIST describes; the formulas for paired data are somewhat simpler than for unpaired data. Unpaired samples may have equal or unequal sizes. |
| When to pick each | Pick the F-test when the quantity of interest is variability: process consistency, measurement precision between two batches, or a one-sided claim that one population is more variable. Report the direction (one- or two-tailed) before looking at the data. | Pick the t-test when the quantity of interest is a mean difference between two groups or conditions. For ANOVA or regression questions use the F-test in its ANOVA or regression form, not the two-variance form, and see the linked CASRAI pages for those. |
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.9 F-Test for Equality of Two Variances (https://www.itl.nist.gov/div898/handbook/eda/section3/eda359.htm)
- Wikipedia, F-test (https://en.wikipedia.org/wiki/F-test)
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.3 Two-Sample t-Test for Equal Means (https://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm)
- Rochon J, Gondan M, Kieser M (2012) BMC Med Res Methodol 12:81 (https://doi.org/10.1186/1471-2288-12-81)
Ask CASRAI · full access
Ask about F-Test vs T-Test: Variances or Means?
Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.
An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.
Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.
Works on this site and inside Claude, Cursor and the AI tools you already use.
Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.
Common questions
Common questions about F-test (two variances) vs t-test (two means)
What is the difference between an F-test and a t-test?
+
The two-variance F-test tests whether two populations have equal variances, using F = s1²/s2². The two-sample t-test tests whether two populations have equal means, using a statistic built from the difference of sample means (NIST e-Handbook, sections 1.3.5.9 and 1.3.5.3). One compares spread, the other compares averages.
Should I run an F-test before a t-test?
+
Not as an automatic gate. NIST says the Welch-Satterthwaite degrees of freedom are robust to unequal sample sizes and/or unequal variances, so software can run the unequal-variance t-test directly. Wikipedia's F-test article warns that preliminary variance tests before testing means can inflate the experiment-wise Type I error, and the F-test is itself sensitive to non-normality.
Is the t-test or the F-test used when comparing two means?
+
The two-sample t-test is the direct test of two means. The one-way ANOVA F-test also tests means and, with two groups, its F statistic equals the square of the pooled t statistic (F = t²), so the two agree in the two-group case.
When is the F-test the right choice for two groups?
+
When the research question is about variability itself, for example whether a new process is less variable than the old one. NIST notes the one-tailed version suits this directional question, and the direction should follow from the problem, not from the data.
Are the 'f test and t test' and 'F-test vs t-test' the same thing?
+
Yes: these are spelling variants of the same comparison. The common confusion is that F also names the ANOVA and regression statistic, a different use of the F distribution that tests means or model terms rather than comparing two variances.
What does NIST say about equal-variance versus unequal-variance t-tests?
+
NIST gives both forms of the statistic and says assuming equal variances yields somewhat simpler formulas, although with computers this is no longer a significant issue. It describes the Welch-Satterthwaite degrees of freedom as robust to unequal sample sizes and/or unequal variances.
Data: Two-variance F-test and two-sample t-test: hypothesis, statistic and degrees of freedom side by side
Side-by-side compilation of the null hypothesis, test statistic and degrees of freedom for the two-variance F-test and the two-sample t-test (unequal- and equal-variance forms), compiled from the NIST/SEMATECH e-Handbook sections on each test.
| Test | Question tested | Null hypothesis | Test statistic | Degrees of freedom |
|---|---|---|---|---|
| F-test for equality of two variances | Are two population variances equal? | σ1² = σ2² | F = s1²/s2² | N1 − 1 and N2 − 1 |
| Two-sample t-test, unequal variances | Are two population means equal? | μ1 = μ2 | T = (Ȳ1 − Ȳ2)/√(s1²/N1 + s2²/N2) | Welch-Satterthwaite |
| Two-sample t-test, equal variances | Are two population means equal? | μ1 = μ2 | T = (Ȳ1 − Ȳ2)/(sp·√(1/N1 + 1/N2)) | N1 + N2 − 2 (with similar sample sizes) |
Sources
- NIST/SEMATECH e-Handbook 1.3.5.9 F-Test for Equality of Two Variances (accessed 2026-11-16)
- NIST/SEMATECH e-Handbook 1.3.5.3 Two-Sample t-Test for Equal Means (accessed 2026-11-16)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







