Statistical function

T.INV.2T function

Returns the two-tailed inverse of Student's t-distribution: the critical t value for confidence intervals and two-sided tests.

Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later

Excel 2010 and laterWorks in Google Sheets

Syntax

T.INV.2T(probability, deg_freedom)
ArgumentWhat it means
probabilityRequiredThe total probability in both tails, e.g. 0.05 for a 95% interval.
deg_freedomRequiredDegrees of freedom, at least 1.

Returns: A positive t value such that the area beyond ± that value is probability.

How T.INV.2T works

To build a 95% confidence interval for an average from a small sample, you need the critical t value that leaves 5% split between the two tails. T.INV.2T returns it directly: T.INV.2T(0.05, df). Multiply it by the standard error of the mean and you have the margin of error. The fewer data points, the larger the critical value, reflecting greater uncertainty.

A confidence interval is a range built so that, if you repeated the sampling many times, 95% of such ranges would contain the true average. T.INV.2T is the same as the older TINV. CONFIDENCE.T packages the whole margin-of-error calculation into one function.

Examples

1Critical value for a 95% interval with 10 values

D2fx=T.INV.2T(B2, B3)
ABCD
1ItemValue
2Alpha0.052.2622
3Degrees of freedom9

Result: 2.2622

2.262157 (shown to 4 decimals), noticeably larger than the normal value 1.96 because only 10 observations are available.

2Margin of error for average fill volume

D2fx=T.INV.2T(0.05, COUNT(A2:B6)-1)*STDEV.S(A2:B6)/SQRT(COUNT(A2:B6))
ABCD
1Sample (ml)
248.252.31.0224
351.550.1
449.849.4
550.651
647.948.8

Result: 1.0224

The sample mean is 49.96 ml; the margin of error is 1.022402 (shown to 4 decimals). So the 95% confidence interval for the true average is roughly 48.94 to 50.98 ml. =CONFIDENCE.T(0.05, STDEV.S(A2:B6), 10) gives the same margin.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!probability is 0 or less, above 1, or deg_freedom < 1.Use 0 < probability ≤ 1 and df ≥ 1.
#VALUE!An argument is text.Use numbers.

Tips

  • For a 99% interval use probability 0.01; for 90% use 0.10.
  • Do not confuse it with T.INV: T.INV.2T(0.05, df) = T.INV(0.975, df).

Google Sheets

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

T.INV.2T 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
FinnishT.KÄÄNT.2S
FrenchLOI.STUDENT.INVERSE.BILATERALE
GermanT.INV.2S
HungarianT.INVERZ.2SZ
ItalianINV.T.2T
PolishROZKŁ.T.ODWR.DS
Portuguese (Brazil)INV.T.BC
Portuguese (Portugal)INV.T.2C
RussianСТЬЮДЕНТ.ОБР.2Х
SpanishINV.T.2C
TurkishT.TERS.2K