F Distribution Calculator

P(X <= F)0.9351
PDF at F0.0811
P(X > F) - the ANOVA p-value0.0649
Mean1.1111
Mode0.5455
How this was calculated
  1. The F distribution compares two variances: with 5 numerator and 20 denominator degrees of freedom it is the null distribution of the ANOVA F statistic.
  2. The CDF bends through the incomplete beta function at x = d1 F / (d1 F + d2) = 0.3846, giving P(X <= 2.5) = 0.9351.
  3. The upper tail P(X > 2.5) = 0.0649 is the p-value an ANOVA table reports for this F - small tails are the evidence against equal group means.
  4. The distribution's mean is df2 / (df2 - 2) = 1.1111 and its mode sits at 0.5455 - the hump below 1 is why an F near 1 means 'nothing to see here'.

This F distribution calculator turns an F statistic and its two degrees of freedom into a cumulative probability and a p-value. For example, with 5 numerator and 20 denominator degrees of freedom, P(X <= 2.5) = 0.9351, so an ANOVA that produces F = 2.5 reports a p-value of 0.0649. The same logic works at the edges of a test: the 5% critical value for (5, 20) is about 2.71, and the calculator returns 0.9499 there, just under the 0.95 line. An F of exactly 1 is already past the median when the degrees of freedom are 3 and 30, where the CDF is 0.5936. The distribution's mean depends only on the denominator degrees of freedom: with 20 denominator df it is 1.1111, whatever the numerator df.

The method behind these numbers is the standard one for F probabilities: the cumulative distribution of the F distribution evaluated at your statistic and degrees of freedom. That is what statistical software and published F tables use, so the calculator's output lines up with the p-values and critical values you see elsewhere. This page does not just hand you a number. It shows the formula, step-by-step workings, worked examples and sources, so you can follow how each result is produced and check it against your own data or a textbook table.

Worked examples

5 and 20 degrees of freedom, F = 2.5

(5 · 20 · 2.5)

P(X <= F)0.9351
PDF at F0.0811
P(X > F) - the ANOVA p-value0.0649
Mean1.1111
Mode0.5455

Near the 5% critical value 2.71 for (5, 20)

(5 · 20 · 2.71)

P(X <= F)0.9499
PDF at F0.0615
P(X > F) - the ANOVA p-value0.0501
Mean1.1111
Mode0.5455

3 and 30 degrees of freedom at F = 1

(3 · 30 · 1)

P(X <= F)0.5936
PDF at F0.4408
P(X > F) - the ANOVA p-value0.4064
Mean1.0714
Mode0.3125

How the F distribution CDF is calculated

The F distribution calculator turns a value of F into a cumulative probability by converting it to a beta probability first. For an F statistic with d1 numerator degrees of freedom and d2 denominator degrees of freedom, the transformation is x = d1 F / (d1 F + d2). That rescaled value x always falls between 0 and 1, which is exactly the range the incomplete beta function works on. The CDF of F is then the regularized incomplete beta function evaluated at x, with parameters d1/2 and d2/2. In short, P(X <= F) = I_x(d1/2, d2/2). Every probability the tool reports comes from this one step, so the answer is a smooth, continuous curve rather than a table lookup between printed rows.

A worked example makes the process concrete. Take F with 5 and 20 degrees of freedom and ask for the probability at F = 2.5. First compute x = (5 x 2.5) / (5 x 2.5 + 20) = 12.5 / 32.5, about 0.3846. Evaluating the incomplete beta function there with parameters 2.5 and 10 gives 0.9351, so P(X <= 2.5) = 0.9351. Because the upper tail is the complement, the probability of exceeding 2.5 is 1 - 0.9351 = 0.0649. That is why an ANOVA producing F = 2.5 on 5 and 20 degrees of freedom reports a p-value of 0.0649.

The same calculation explains the critical values people look up in tables. The 5% critical value for (5, 20) is about 2.71. Running 2.71 through the incomplete beta form returns 0.9499, just under the 0.95 line, which is what a 5% upper tail means. Small differences in rounding of the critical value move the result by a few ten-thousandths, so a calculator that carries full precision will land on either side of 0.95 depending on how many digits of 2.71 are used.

Probabilities near F = 1 are worth checking too, since intuition often treats 1 as a neutral midpoint. With 3 and 30 degrees of freedom, the CDF at F = 1 is 0.5936, so an F of exactly 1 is already past the median. The distribution is not centered on 1 in the sense of equal area on each side. Its mean with 20 denominator degrees of freedom is 1.1111, whatever the numerator df, which sits above 1 and reflects the right skew of the curve.

One practical note: the incomplete beta function is the engine behind every number on this page, including tail probabilities and critical values. Enter the degrees of freedom and the F value, and the f distribution calculator applies the transformation and returns the cumulative probability directly, with no interpolation between table entries.

For (5, 20) at F = 2.5: x = 12.5 / 32.5 = 0.3846, and the incomplete beta function gives P(X <= 2.5) = 0.9351, so the upper-tail p-value is 0.0649.

The F test and ANOVA

An F test compares two variances by dividing one by the other, and the resulting ratio is what the F distribution describes. In an ANOVA, that ratio contrasts the variability explained by group differences with the variability left over within the groups. When the groups really differ, the between-group variance grows relative to the within-group variance, and the F ratio climbs. When they do not, the ratio tends to hover near 1. An f distribution calculator turns that single ratio, plus the two degrees of freedom, into a probability, which is the number most readers actually want.

For F with 5 numerator and 20 denominator degrees of freedom, P(X <= 2.5) = 0.9351. An ANOVA that produces F = 2.5 therefore reports a p-value of 0.0649, the area to the right of 2.5. Read that against the 5% critical value for (5, 20), which is about 2.71: the calculator returns 0.9499 there, just under the 0.95 line. So F = 2.5 sits below the cutoff, and the result is not significant at the 5% level. The gap is small — 0.0649 is close to 0.05 — but the decision rule is fixed, and the observed statistic did not reach the critical value.

It is worth seeing how modest the raw ratio can be. At F = 1 with 3 and 30 degrees of freedom the CDF is 0.5936, so an F of exactly 1 is already past the median. A ratio of 1 means the two variance estimates are identical, yet more than half of F distributions put their typical draw below that point. The mean of the F distribution with 20 denominator degrees of freedom is 1.1111, whatever the numerator df, which reinforces the same idea: values near 1 are ordinary, not evidence of a real effect.

Put together, the logic runs in one direction. You compute the variance ratio, look up the upper-tail area for your two degrees of freedom, and compare that area with your chosen significance level — or equivalently, compare F itself with the critical value for that level. The (5, 20) example shows both routes agreeing: p = 0.0649 exceeds 0.05, and F = 2.5 falls short of 2.71. Keeping the degrees of freedom straight matters because the critical value and the p-value both shift when either df changes, even for the same F.

  • F = 2.5 with (5, 20) df: P(X <= 2.5) = 0.9351, so p = 0.0649.
  • 5% critical value for (5, 20) is about 2.71; the CDF there is 0.9499, just under 0.95.
  • F = 1 with (3, 30) df has CDF 0.5936 — already past the median.
  • Mean F with 20 denominator df is 1.1111, regardless of numerator df.
At (5, 20) degrees of freedom, F = 2.5 gives p = 0.0649 while the 5% critical value is about 2.71 — close, but not significant at the 5% level.

Why the distribution humps below 1

The F distribution is right-skewed, and the skew is easy to see once you compare its mode with its mean. For F with 5 and 20 degrees of freedom, the mode sits at 0.5455, while the mean is 1.1111. The most likely single value is therefore near one-half, but the long right tail pulls the average up to just above 1. A good f distribution calculator shows this shape directly: the peak is left of 1, and the curve trails off slowly to the right. Reading an F statistic without that picture in mind can lead you to misjudge how ordinary a value near 1 really is.

The mean of the F distribution with 20 denominator degrees of freedom is 1.1111, whatever the numerator df. That number is a useful reference point, but it is not the center of the bulk of the probability. Because the tail stretches far to the right, most of the area lies below the mean. A value of F equal to 1 can look like a neutral, middle-of-the-road result, yet the cumulative probability tells a different story. With 3 and 30 degrees of freedom, the CDF at F = 1 is 0.5936, so an F of exactly 1 is already past the median. More than half of the distribution's probability falls below 1 in that case.

This matters most when you read p-values near the middle of the scale. Take F with 5 and 20 degrees of freedom. The probability that X is at most 2.5 is 0.9351, so an ANOVA producing F = 2.5 reports a p-value of 0.0649. That result is close to the conventional 0.05 line but does not cross it, and the skew is part of why the number lands where it does. The 5% critical value for (5, 20) is about 2.71, and the calculator returns 0.9499 there, just under the 0.95 line. Small changes in F around that region move the cumulative probability in ways the eye does not predict from the shape alone.

The practical lesson is to treat F values near 1 with care. They are not automatically unremarkable, and they are not automatically evidence of a real effect. Their meaning depends on the degrees of freedom and on where they fall relative to the median and the critical value. Checking the cumulative probability, rather than eyeballing the statistic, keeps your reading honest. The mode below 1 and the mean above 1 are two summaries of the same lopsided curve, and neither one alone tells you what a given F value means for your test.

When you enter your numerator and denominator degrees of freedom, the tool computes the cumulative probability and the p-value for your F statistic, so you can see exactly where your result sits on the skewed curve instead of guessing from the mean.

For (5, 20), the mode is 0.5455 but the mean is 1.1111 - most of the probability sits below the mean, so an F near 1 is farther along the curve than it looks.

Choosing degrees of freedom

The two degrees of freedom you enter into an f distribution calculator are not arbitrary settings — they come from the structure of your data. The numerator degrees of freedom equal the number of groups minus 1. If you are comparing 6 groups, the numerator df is 5. The denominator degrees of freedom equal the total number of observations minus the number of groups. With 6 groups and 26 observations in total, the denominator df is 20. Those are the two numbers that define the curve the calculator uses.

Getting them right matters because the curve shifts with both values. Consider the pair (5, 20). For F with 5 and 20 degrees of freedom, P(X <= 2.5) = 0.9351, so an ANOVA producing F = 2.5 reports a p-value of 0.0649. The same F statistic evaluated against a different pair of degrees of freedom would land at a different point on a different curve, so the degrees of freedom are part of the result, not a side note.

The critical values show the same sensitivity. The 5% critical value for (5, 20) is about 2.71 — the calculator returns 0.9499 there, just under the 0.95 line. That is the threshold you compare your F against when testing at the 5% level with those degrees of freedom. Change either number and the threshold moves, which is why the group count and the total observation count both have to be counted carefully before you run the test.

A small example makes the denominator df concrete. At F = 1 with 3 and 30 degrees of freedom the CDF is 0.5936 — an F of exactly 1 is already past the median. Here the numerator df of 3 means 4 groups, and the denominator df of 30 means 34 observations in total. An F of 1 looks unremarkable, yet more than half of this distribution sits below it. The median of an F distribution is not 1, and it is not fixed across curves.

The mean is another reminder that these curves are not symmetric. The mean of the F distribution with 20 denominator degrees of freedom is 1.1111, whatever the numerator df. That value stays the same as the numerator df changes, while the shape of the curve around it does not. Before you enter anything, count your groups for the numerator, count all observations and subtract the group count for the denominator, and check the pair against your study design.

Numerator df = groups − 1. Denominator df = observations − groups. For 4 groups and 34 observations, enter (3, 30).

FAQs

What is the F distribution used for?

The F distribution is used to test whether two variances differ. Its most famous use is as the null distribution of the ANOVA F statistic, which compares variance between groups to variance within groups. When the null hypothesis holds, the F statistic follows an F distribution with the corresponding degrees of freedom.

What p-value does F = 2.5 give with 5 and 20 df?

With 5 and 20 degrees of freedom, F = 2.5 gives a p-value of 0.0649. That is the upper tail area above the cumulative probability of 0.9351. Because 0.0649 is greater than 0.05, the result is not quite significant at the 5% level.

What is the 5% critical value for F(5, 20)?

The 5% critical value for F with 5 and 20 degrees of freedom is about 2.71. The calculator places the cumulative distribution at that point at 0.9499, leaving roughly 0.05 in the upper tail. An F statistic above this value would fall in the 5% rejection region.

Is an F statistic of 1 evidence of an effect?

No. An F statistic of 1 is not evidence of an effect. At 3 and 30 degrees of freedom, an F of 1 sits at the 0.5936 quantile, which is unremarkable under the null hypothesis. A value near the center of the distribution is exactly what you expect when there is no real effect.

Can F be negative?

No, F cannot be negative. F is a ratio of variances scaled positive, so it lives on the range from zero to infinity. Because variances are nonnegative and the ratio is formed from them, the F statistic never takes a value below zero.

How is F related to chi-square?

F is the ratio of two chi-square variables, each divided by its degrees of freedom. If you take one chi-square variable divided by its df and divide that by a second chi-square variable divided by its df, the result follows an F distribution with those two degrees of freedom.

Sources

Related calculators

Chi-Square Test Calculator (2x2)
The chi-square test of independence for a 2x2 contingency table: statistic, p-value at 1 degree of freedom, and the phi effect size.
Variance Calculator
Sample and population variance for up to eight values, with both standard deviations and the full sum-of-squares workings.
Student's t Distribution Calculator
Cumulative probability, density, tails and variance for Student's t distribution at any degrees of freedom.