Compatibility function

TDIST function

Returns the Student's t-distribution tail probability (one- or two-tailed) for a t statistic. Replaced by T.DIST.2T and T.DIST.RT.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. TDIST still works, but for new workbooks use T.DIST.2T.

Syntax

TDIST(x, deg_freedom, tails)
ArgumentWhat it means
xRequiredThe t value. Must be 0 or more — negative values return #NUM!.
deg_freedomRequiredDegrees of freedom, 1 or more. Decimals are truncated.
tailsRequired1 for a one-tailed probability (right tail), 2 for two-tailed. Any other value returns #NUM!.

Returns: The tail probability (p-value).

How TDIST works

TDIST turns a t statistic into a p-value. The t-distribution looks like a slightly flatter bell curve and is used instead of the normal distribution when the standard deviation is estimated from a small sample, as in t-tests and regression coefficients.

Its argument list is unusual. tails must be 1 or 2: with 1 you get the area to the right of x; with 2 you get the area in both tails beyond ±x (twice as much). And x cannot be negative — TDIST returns #NUM! for -2.1 — so you normally pass ABS(t). Both quirks surprise people moving from other software.

Compatibility note: TDIST is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends T.DIST.2T. Split the job between two clearer functions: TDIST(x, df, 2) becomes T.DIST.2T(x, df) and TDIST(x, df, 1) becomes T.DIST.RT(x, df). The new T.DIST is left-tailed and accepts negative x.

Examples

1Two-tailed p-value

C2fx=TDIST(A2, B2, 2)
ABC
1tdf
21.96600.054645

Result: 0.054645

With 60 degrees of freedom, the probability of |t| ≥ 1.96 is 0.054645 (formatted to 6 decimals) — slightly above 0.05 because the t-distribution has fatter tails than the normal.

2One-tailed p-value from a negative t

C2fx=TDIST(ABS(A2), B2, 1)
ABC
1t statisticdf
2-1.96600.027322

Result: 0.027322

TDIST rejects negative values, so wrap the statistic in ABS. One tail is half the two-tailed value: 0.027322 (formatted to 6 decimals).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!x is negative, tails is not 1 or 2, or deg_freedom < 1.Use ABS(x) and tails = 1 or 2.
#VALUE!Non-numeric argument.Check the inputs.

Tips

  • TDIST(x, df, 2) = T.DIST.2T(x, df); TDIST(x, df, 1) = T.DIST.RT(x, df) = 1 - T.DIST(x, df, TRUE).
  • If you have the raw data, TTEST / T.TEST skips the statistic and returns the p-value directly.

Questions

Why does TDIST return #NUM! for my negative t value?

TDIST only accepts x ≥ 0. Use ABS(t) — the distribution is symmetric, so the tail probability is the same.

What replaces TDIST?

T.DIST.2T for two-tailed and T.DIST.RT for one-tailed (right) probabilities, both available since Excel 2010.

Google Sheets

TDIST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

TDIST in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishTFORDELING
DutchT.VERD
FinnishTJAKAUMA
FrenchLOI.STUDENT
GermanTVERT
HungarianT.ELOSZLÁS
ItalianDISTRIB.T
Norwegian (Bokmål)TFORDELING
PolishROZKŁAD.T
Portuguese (Brazil)DISTT
Portuguese (Portugal)DISTT
RussianСТЬЮДРАСП
SpanishDISTR.T
SwedishTFÖRD
TurkishTDAĞ