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)| Argument | What it means | |
|---|---|---|
probability | Required | The total probability in both tails, e.g. 0.05 for a 95% interval. |
deg_freedom | Required | Degrees 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Value | ||
| 2 | Alpha | 0.05 | 2.2622 | |
| 3 | Degrees of freedom | 9 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Sample (ml) | |||
| 2 | 48.2 | 52.3 | 1.0224 | |
| 3 | 51.5 | 50.1 | ||
| 4 | 49.8 | 49.4 | ||
| 5 | 50.6 | 51 | ||
| 6 | 47.9 | 48.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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Finnish | T.KÄÄNT.2S |
| French | LOI.STUDENT.INVERSE.BILATERALE |
| German | T.INV.2S |
| Hungarian | T.INVERZ.2SZ |
| Italian | INV.T.2T |
| Polish | ROZKŁ.T.ODWR.DS |
| Portuguese (Brazil) | INV.T.BC |
| Portuguese (Portugal) | INV.T.2C |
| Russian | СТЬЮДЕНТ.ОБР.2Х |
| Spanish | INV.T.2C |
| Turkish | T.TERS.2K |