F-Test Calculator
This F-test calculator compares the variances of two samples and tells you whether the difference between them is statistically significant. Enter the standard deviation and sample size for each group and the calculator returns the F-statistic and p-value. Researchers use this test before running an independent t-test to check whether the two groups meet the equal variance assumption.
Two-Variance F-Test
Test whether two population variances are equal
Results
F(15, 20) = 2.9388
p = 0.0259 < α = 0.05
Created by William Davis
Last updated: July 29, 2026
The F test is a hypothesis test used to determine whether two independent populations have equal variances, based on the ratio of their sample variances. The question comes up across a range of practical contexts: verifying the equal-variance assumption before running a pooled two-sample t-test, or comparing the variability between two groups in research, clinical studies, or quality control work. This F test calculator returns the F statistic, p-value, critical value, and a decision on the null hypothesis from either summary data or raw data, giving a complete result without manual computation.
What Is an F Test for Equality of Variances?
The F test for equality of variances is a hypothesis test used to compare two population variances, determining whether the variability in one group is statistically the same as in another. It is also referred to as the two-sample F test, the variance ratio test, and the F test for homogeneity of variance. All of these names describe the same procedure: using the ratio of two sample variances to assess whether the underlying population variances are equal.
The null hypothesis for this test states that the two population variances are equal (H₀: σ₁² = σ₂²). The alternative hypothesis states that they differ, for a two-tailed test, or that one is greater than the other for a directional test. When the F statistic is close to 1, the two sample variances are similar, which is consistent with the null hypothesis of equal variances. When the F statistic departs substantially from 1, it suggests a meaningful difference between the two population variances.
The test statistic follows the F distribution, which is right-skewed and defined only for positive values. Because sample variance is always non-negative and the F statistic is a ratio of two variances, a negative F statistic is not mathematically possible.
This variance test should not be confused with the ANOVA F test. The ANOVA F test compares the means of two or more groups by measuring the ratio of between-group variation to within-group variation. The F test for equality of variances is specifically designed to compare two population variances, and that distinction matters when selecting the right procedure for a given analysis.
Using the F Test Calculator: Inputs and Options
This F test calculator accepts both summary statistics and raw data, making it suitable for homework problems, research verification, and applied work alike.
Alternative Hypothesis
Select the alternative hypothesis that matches the research question. The two-tailed option (σ₁² ≠ σ₂²) tests for a difference in either direction and is the standard choice when checking whether the equal-variance assumption is met. The right-tailed option (σ₁² > σ₂²) is used when the specific claim is that the first population has greater variance, and the left-tailed option (σ₁² < σ₂²) applies when the claim is the opposite. When there is no prior directional expectation, use the two-tailed test.
Significance Level
Enter the significance level (α) before running the calculation. A value of 0.05 is standard in most academic and research contexts, corresponding to a 95% confidence threshold. A stricter value of 0.01 is appropriate when the consequences of a false positive are more serious.
Data Input
The calculator supports two input types. The summary data option requires the sample standard deviation and sample size for each group. Enter the sample standard deviation for each group along with n₁ and n₂, and the calculator handles the rest. The raw data option accepts individual observations for both samples, pasted directly from Excel, Google Sheets, or any comma-, space-, or line-break-delimited source. The two samples do not need to contain the same number of observations.
Calculator Output
After clicking calculate, the calculator returns the F statistic along with the numerator degrees of freedom and denominator degrees of freedom, the p-value, the critical value or values depending on the tail selection, and a clear decision stating whether to reject or fail to reject the null hypothesis.
F Test Formula and Degrees of Freedom
The F Test Statistic Formula
The F test formula is straightforward: the F test statistic is the ratio of the two sample variances.
F = s₁² / s₂²
In this formula, s₁² is the variance of Sample 1 and s₂² is the variance of Sample 2. Sample 1 is always placed in the numerator and Sample 2 in the denominator. This means an F statistic below 1 is entirely valid and does not need correcting. For directional tests in particular, moving the larger variance into the numerator to force an F value above 1 changes the direction of the hypothesis and produces an incorrect result. The formula should be applied as stated, with samples in the positions originally assigned.
Degrees of Freedom
The degrees of freedom determine the shape of the F distribution used to find the critical value and p-value. They are calculated as follows:
df₁ (numerator): df₁ = n₁ − 1
df₂ (denominator): df₂ = n₂ − 1
Where n₁ and n₂ are the sizes of Sample 1 and Sample 2 respectively. The df₁, df₂ pair is reported alongside the F statistic, for example F(21, 19) = 1.48, to fully identify the result.
Reading the F Critical Value
To find the F critical value manually, locate the F distribution table that corresponds to the chosen significance level. Find the column matching df₁ and the row matching df₂, then read the value at their intersection. If the calculated F statistic exceeds this critical value, the null hypothesis is rejected. An F critical value calculator can be used in place of a printed table to obtain exact values for any combination of degrees of freedom and significance level.
Interpreting the P-Value
The p-value in an F test for equal variances represents the probability of obtaining an F statistic as extreme as the one calculated, assuming the null hypothesis of equal population variances is true. A p-value at or below the significance level supports rejecting H₀. A p-value above it means the data do not provide sufficient evidence to conclude that the two-sample variance test has detected a real difference in population variance.
F Test Assumptions and When to Use Alternative Tests
Before using the F test for equality of variances, three core assumptions must be met. Applying the test when these conditions are violated can produce misleading results.
Independence
The independence assumption requires that the two samples are independent of each other, and that observations within each sample are also independent. This means the measurement of one observation should have no influence on any other. The test is not appropriate for paired or repeated-measures data.
Normality
The normality assumption requires that both populations are approximately normally distributed. This is the most important assumption to assess carefully, because the F test for equality of variances is particularly sensitive to departures from normality. Skewed distributions or heavy-tailed data can produce inflated Type I error rates, causing the test to reject H₀ more often than the significance level would suggest. When the normality assumption is in doubt, a different procedure should be used.
Continuous Scale
The variable being tested should be measured on a continuous numerical scale. The homogeneity of variance test is not designed for categorical or ordinal data.
When to Use Alternative Tests
If the normality assumption cannot be reasonably justified, F test vs. Levene's test is a common decision point in practice. Levene's test is generally more robust when data are skewed or contain outliers, because it is based on absolute deviations from the group mean rather than squared deviations. The Brown-Forsythe test goes a step further by using deviations from the group median instead of the mean, making it even more resistant to the influence of outliers. Either approach is preferable to the classical variance ratio test when normality is in question.
Small Sample Sizes
When sample sizes are very small, the F test has limited power to detect real differences in variance. Even when all assumptions are met, results should be interpreted cautiously and supported by subject-matter knowledge rather than the p-value alone.
How to Perform an F Test Step by Step
The standard approach to F test hypothesis testing follows six steps. This structure is used across US statistics courses and research reporting, and applying it consistently helps produce a clear, reproducible result.
Step 1: State the Null and Alternative Hypotheses
Define H₀ and H₁ before looking at any data. The null hypothesis is always H₀: σ₁² = σ₂². The alternative depends on the research question: two-tailed (σ₁² ≠ σ₂²) for a general difference, right-tailed (σ₁² > σ₂²) or left-tailed (σ₁² < σ₂²) for a directional claim.
Step 2: Set the Significance Level
State α before running the test. The most common choices are 0.05 and 0.01.
Step 3: Calculate the F Statistic and Degrees of Freedom
Apply the formula F = s₁² / s₂². Then compute df₁ = n₁ − 1 and df₂ = n₂ − 1.
Step 4: Find the P-Value and Critical Value
Using df₁ and df₂, locate the critical value in the F distribution table or with an F statistic calculator. Calculate or obtain the p-value from the F distribution at the observed F value.
Step 5: Make the Statistical Decision
To reject H₀: p ≤ α, or the F statistic exceeds the critical value. To fail to reject H₀: p > α, or the F statistic falls within the non-rejection region.
Step 6: State the Conclusion
Write the conclusion in plain language, tied to the original research question. This is also where APA reporting format applies: report as F(df₁, df₂) = [value], p = [value].
Example 1: Summary Data
A researcher wants to verify the equal-variance assumption before running a pooled t-test comparing patient wait times across two outpatient scheduling systems.
| System 1 | System 2 | |
|---|---|---|
| Sample size | n₁ = 22 | n₂ = 20 |
| Sample SD | s₁ = 8.4 min | s₂ = 6.9 min |
Test at α = 0.05, two-tailed. This worked example uses summary statistics, the type entered when using the calculator's summary statistics input mode.
Step 1: H₀: σ₁² = σ₂²; H₁: σ₁² ≠ σ₂²
Step 2: α = 0.05
Step 3: F = 8.4² / 6.9² = 70.56 / 47.61 = 1.482; df₁ = 21, df₂ = 19
Step 4: Critical value ≈ 2.493; p-value ≈ 0.393
Step 5: Since 1.482 < 2.493 and p (0.393) > 0.05, fail to reject H₀.
Step 6: At the 0.05 significance level, there is insufficient evidence to conclude that the two population variances differ. The equal-variance assumption is supported, and the pooled t-test is appropriate.
APA format: F(21, 19) = 1.48, p = .393
Example 2: Raw Data
A quality engineer is comparing the consistency of two production lines by testing whether their output variances differ. This example uses raw observations, the type entered when using the calculator's raw data input mode.
Line A (Sample 1): 24, 31, 27, 35, 28, 33 (n₁ = 6)
Line B (Sample 2): 29, 30, 28, 31, 29, 30 (n₂ = 6)
Test at α = 0.05, two-tailed.
Step 1: H₀: σ₁² = σ₂²; H₁: σ₁² ≠ σ₂²
Step 2: α = 0.05
Step 3: Calculate sample variances from the raw observations. Line A: mean = 29.67, s₁² = 16.67. Line B: mean = 29.50, s₂² = 1.10. F = 16.67 / 1.10 = 15.15; df₁ = 5, df₂ = 5
Step 4: Critical value ≈ 7.15; p-value < 0.01
Step 5: Since 15.15 > 7.15 and p < 0.05, reject H₀.
Step 6: At the 0.05 significance level, there is sufficient evidence to conclude that the two production lines differ significantly in variance. Line A shows substantially more variability than Line B.
APA format: F(5, 5) = 15.15, p < .01
Using the F Test to Verify the Equal-Variance Assumption
Many two-sample procedures require the assumption that the two populations have equal variances before they can be applied correctly. The F test for two variances is one of the most direct ways to assess whether that assumption holds.
Why the Equal-Variance Assumption Matters
The pooled two-sample t-test calculates a combined estimate of variance across both groups and uses it to test whether the population means differ. That pooling step is only valid if the two population variances are reasonably equal. Running a pooled t-test when the variances differ substantially can produce inaccurate standard errors and unreliable p-values. Running this F test first gives a clear, evidence-based answer on whether the pooled approach is justified.
Decision Rule for a Two-Tailed F Test
When the goal is checking the equal-variance assumption, always use a two-tailed test. The logic of how to interpret F statistic results in this context follows directly from the p-value:
The F test statistics reported by the calculator, including the F value, degrees of freedom, and p-value, are all that is needed to apply this decision rule.
Failing to reject H₀ does not prove that the variances are exactly equal. It means only that the test did not detect a statistically significant difference between them at the chosen significance level. A non-significant result with a very small sample, for instance, may reflect limited test power rather than true variance equality. This matters when deciding between Welch's t-test and the pooled t-test in borderline cases: if the sample sizes are small or the variances look visibly different despite a non-significant F test, Welch's t-test is the safer default.
Scope of This Section
This interpretation applies specifically to two-tailed F tests. A directional F test, right-tailed or left-tailed, is used when the research question involves a specific claim about which group has greater variance. That is a different inferential goal from checking whether the equal-variance assumption is met, and the two should not be confused.
F Test vs T-Test: Key Differences
Understanding the distinction between the F test and the t-test helps in selecting the right procedure for a given research question. The two tests are related but address fundamentally different hypotheses.
What Each Test Measures
The t-test compares the means of two populations. The F test for equality of variances compares their variances. These are separate questions, and conflating them leads to applying the wrong method. A researcher interested in whether two groups differ in average outcome needs a t-test. A researcher interested in whether those two groups differ in consistency or spread needs the F test.
Scope of the Hypothesis
The t-test evaluates a single mean or a single regression coefficient in isolation. In a regression context, the F test evaluates the joint significance of multiple coefficients simultaneously, testing whether a set of predictors collectively contributes explanatory power to the model. This makes the F test a broader, model-level tool in regression analysis, while the t-test operates at the level of individual parameters.
Underlying Distributions
The t-statistic follows the Student's t-distribution under the null hypothesis. The F statistic follows the F-distribution. These distributions have different shapes and critical value tables, and they are not interchangeable. One practical connection between the two: when testing a single restriction in a regression model, the square of the t-statistic equals the F statistic, t² = F. This relationship holds only in the one-restriction case.
Tail Direction
The t-test can be applied as a one-tailed or two-tailed test depending on the research question. The F test, by construction, always produces a positive statistic because it is a ratio of squared values. For the variance equality test specifically, the two-tailed version is standard when checking assumptions, with directional versions reserved for cases where the research question specifies which group is expected to have greater variance.
Choosing Between Them in Practice
Knowing when to use the F test versus the t-test comes down to the inferential goal. To compare variability between two groups, use the F test calculator. To compare average outcomes, use the appropriate t-test. In many analyses, both are used in sequence: the F test runs first to assess the equal-variance assumption, and the result determines which form of the t-test is appropriate.
Frequently Asked Questions
Can an F statistic be negative?
No. The F statistic is the ratio of two sample variances, and variance is a squared quantity. Because squared values are always non-negative, both the numerator and denominator of the F statistic are always positive, making a negative result mathematically impossible.
Is the F test the same as the ANOVA F test?
No. This calculator performs the F test for equality of two variances, which tests whether two independent populations have the same variance using the ratio of their sample variances. The ANOVA F test is a different procedure that compares the means of two or more groups by examining the ratio of between-group variation to within-group variation. The two tests share the same underlying distribution but answer different research questions.
What does a large F statistic mean?
A larger F statistic indicates a greater difference between the two sample variances. Whether that difference is statistically significant depends on the degrees of freedom and the chosen significance level. To determine significance, compare the F statistic to the critical value for the test or check whether the p-value falls at or below α.
Is the F distribution symmetric?
No. The F distribution is right-skewed, with a longer tail extending to the right. Its exact shape changes depending on the numerator and denominator degrees of freedom. As both degrees of freedom increase, the distribution becomes less skewed and more concentrated around 1.
When should Levene's test be used instead of the F test?
When the normality assumption cannot reasonably be met, Levene's test or the Brown-Forsythe test is the more appropriate choice. Both procedures are less sensitive to non-normality than the classical F test for equality of variances. Levene's test works well for moderately skewed data, while the Brown-Forsythe test is more resistant to outliers because it uses deviations from the group median rather than the mean.
Which t-test should be used after running the F test?
If the F test result supports equal variances, meaning H₀ is not rejected, the pooled two-sample t-test is appropriate. If the F test result indicates that the variances differ significantly, meaning H₀ is rejected, Welch's t-test is the standard choice because it adjusts the degrees of freedom to account for unequal variances and does not rely on the pooled variance estimate.