Skip to content
FiftyCalc Free calculators for all 50 states

F-Statistic Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the standard deviation and size of two samples to test whether their variances differ.

Result

Sample figures

F statistic (s₁² ÷ s₂²)—

Numerator degrees of freedom (n₁ − 1) —

  • Denominator degrees of freedom (n₂ − 1)—
  • Right-tailed p-value P(F ≥ f)—
  • Two-tailed p-value—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

F-Statistic Calculator

Sample 1 standard deviation (s₁): enter 0 or more. Prefilled example: 6.2.

Sample 1 size (n₁): enter 2 or more. Prefilled example: 21.

Sample 2 standard deviation (s₂): enter 0 or more. Prefilled example: 4.5.

Sample 2 size (n₂): enter 2 or more. Prefilled example: 25.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Sample 1 standard deviation (s₁): enter 0 or more.
  2. Sample 1 size (n₁): enter 2 or more.
  3. Sample 2 standard deviation (s₂): enter 0 or more.
  4. Sample 2 size (n₂): enter 2 or more.
  5. Read the result: F statistic (s₁² ÷ s₂²); the panel also shows Numerator degrees of freedom (n₁ − 1), Denominator degrees of freedom (n₂ − 1), Right-tailed p-value P(F ≥ f) and Two-tailed p-value.

How this calculator works

F = s₁² ÷ s₂², the ratio of the two sample variances, with n₁ − 1 and n₂ − 1 degrees of freedom. Under the null hypothesis of equal variances, F follows Snedecor's F distribution.

P(F ≥ f) = I(d₂ ÷ (d₂ + d₁ f); d₂/2, d₁/2), the regularized incomplete beta function. The two-tailed p-value doubles the smaller tail.

The F-test for variances assumes both samples come from normal distributions; it is sensitive to non-normal data.

The formula

  1. F=s12s22
Symbols used in the formula
SymbolMeaning
s1Sample 1 standard deviation (s₁)
s2Sample 2 standard deviation (s₂)
FF statistic (s₁² ÷ s₂²)

Worked example

Sample 1 standard deviation (s₁)6.2
Sample 1 size (n₁)21
Sample 2 standard deviation (s₂)4.5
Sample 2 size (n₂)25
Numerator degrees of freedom (n₁ − 1)20
Denominator degrees of freedom (n₂ − 1)24
Right-tailed p-value P(F ≥ f)0.0675
Two-tailed p-value0.135
  1. F=6.224.52=1.89827

F statistic (s₁² ÷ s₂²) 1.8983

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What does an F statistic of 1 mean?

The two sample variances are equal, the value expected when the null hypothesis holds.

Is the F statistic used in ANOVA the same?

It follows the same F distribution, but in ANOVA it is the ratio of the between-group to the within-group mean square.

Questions answered

Related calculators