Enter the mean square between groups and the mean square within groups into the calculator to determine the f ratio.

F Ratio Calculator

Choose the tab that matches the values you already have.
Raw Data
ANOVA Table
Mean Squares
Copy result

F Ratio Formula

F = MS_between / MS_within = (SS_between / df_between) / (SS_within / df_within)
  • F: F ratio (test statistic)
  • MSbetween: mean square between groups
  • MSwithin: mean square within groups (error)
  • SSbetween: sum of squared deviations of group means from the grand mean, weighted by group size
  • SSwithin: sum of squared deviations of each observation from its own group mean
  • dfbetween: k − 1, where k is the number of groups
  • dfwithin: N − k, where N is the total observations

The F ratio assumes independent samples, approximately normal group distributions, and roughly equal group variances. F is always non-negative. A value near 1 suggests the group means do not differ more than expected from random variation.

Reference Tables

Critical F values for the right tail at α = 0.05. Use dfbetween across the top and dfwithin down the side.

dfwithin \ dfbetween 1 2 3 4 5
56.615.795.415.195.05
104.964.103.713.483.33
154.543.683.293.062.90
204.353.493.102.872.71
304.173.322.922.692.53
604.003.152.762.532.37
1203.923.072.682.452.29

How to interpret the F ratio you get:

F value What it suggests
F < 1Group means vary less than within-group noise. Never significant.
F ≈ 1Consistent with the null hypothesis of equal means.
F > FcriticalReject H₀. At least one group mean differs.
p ≤ αStatistically significant at the chosen α level.

Worked Example

Three groups, each with three observations: (7, 8, 9), (5, 7, 6), (10, 9, 11).

  • Group means: 8, 6, 10. Grand mean: 8.
  • SSbetween = 3(8−8)² + 3(6−8)² + 3(10−8)² = 24
  • SSwithin = 2 + 2 + 2 = 6
  • dfbetween = 2, dfwithin = 6
  • MSbetween = 12, MSwithin = 1
  • F = 12 / 1 = 12.0, p ≈ 0.008

At α = 0.05, Fcritical(2, 6) ≈ 5.14. Since 12.0 > 5.14, reject H₀.

FAQ

Can F be negative? No. Both mean squares are sums of squared values divided by positive degrees of freedom.

Why is the test one-tailed? Only large F values indicate that group means differ more than within-group variability. Small F values support the null.

What if my variances are unequal? Standard ANOVA assumes equal variances. For unequal variances, use Welch’s ANOVA instead.

F ratio vs. F statistic? Same thing. “Ratio” emphasizes the construction; “statistic” emphasizes its use in hypothesis testing.

f ratio formula