Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

T.INV.2T in Google Sheets: How to Use It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The T.INV.2T function in Google Sheets returns the two-tailed inverse of the Student's t-distribution. In plain terms, you give it a probability and degrees of freedom, and it gives you the positive t-value such that the total area in both tails beyond ±t equals that probability. This is exactly what you need for two-tailed confidence intervals and two-tailed hypothesis tests when the population standard deviation is unknown and the sample is small. The function is built in, so nothing needs to be installed. All you need is a spreadsheet and a probability between 0 and 1 plus a positive degrees-of-freedom number.

What You'll Need

  • A Google account and access to Google Sheets (desktop browser or the mobile app).
  • A probability value (often called alpha, the total tail area) between 0 and 1, such as 0.05.
  • The degrees of freedom for your test or interval, usually sample size minus 1 for a one-sample t-test.
  • Optional: your sample data already in the sheet if you want to compute the confidence interval or test statistic in the same sheet.

Step-by-Step

  1. Open your Google Sheet and click the cell where you want the result to appear.
  2. Type the formula starting with an equals sign: =T.INV.2T(. The function name is not case-sensitive, but keep the periods exactly as shown.
  3. Enter the probability first. For a 95% two-tailed interval, the total tail area is 0.05, so type 0.05. Do not enter 0.95 here; the function expects the tail probability, not the confidence level.
  4. Type a comma, then enter the degrees of freedom. For a sample of 20 observations in a one-sample test, that is 19, so type 19.
  5. Close the parenthesis and press Enter. The formula should look like =T.INV.2T(0.05, 19).
  6. Read the result. It is the positive critical t-value. For a two-tailed test you compare your calculated t-statistic to this value and to its negative, or equivalently compare the absolute value of your t-statistic to this result.
  7. To build a confidence interval, multiply the returned t-value by the standard error of your mean (sample standard deviation divided by the square root of the sample size), then add and subtract that margin from the sample mean.
  8. If you prefer to reference cells, put the probability in one cell and the degrees of freedom in another, then use =T.INV.2T(A1, B1). This makes it easy to change alpha or sample size without editing the formula.
  9. Press Enter after each change. Google Sheets recalculates automatically. If you see a red error triangle, hover over it to read the message.

Menu labels and function behavior can differ slightly by version, device, or region, but T.INV.2T has been stable in Google Sheets for years. On the mobile app, you can type the same formula into the formula bar; the function picker may list it under Statistical functions.

Common Mistakes

  • Passing the confidence level (0.95) instead of the tail probability (0.05). T.INV.2T expects the total area in both tails, so 0.95 returns a negative t-value far out in the distribution and is almost never what you want.
  • Using the wrong degrees of freedom. For a one-sample t-test, df = n − 1. For a two-sample test, the df depends on whether you assume equal variances; do not guess.
  • Forgetting that the result is the positive critical value. For a two-tailed test you reject the null when your t-statistic is greater than the returned value or less than its negative.
  • Typing a comma as a decimal separator in locales that use a different argument separator. In some regions, Google Sheets uses semicolons between arguments; check the formula syntax if you get a parse error.
  • Assuming T.INV.2T works like T.INV. T.INV returns the one-tailed inverse, so for a two-tailed test at alpha 0.05 you would pass 0.025 to T.INV, not 0.05.
  • Entering a probability of 0 or 1, or a degrees of freedom of 0 or less. These produce errors because the inverse is undefined at those boundaries.

Tips

  • Use cell references for alpha and df so you can reuse the sheet for different samples without retyping formulas.
  • Label the result clearly, for example "Critical t (two-tailed)", so you do not confuse it with a p-value later.
  • For a quick check, T.INV.2T(0.05, 10) returns about 2.228. If you get a very different number, recheck the argument order.
  • Remember that T.INV.2T is the inverse of the two-tailed probability. If you already have a t-statistic and want a p-value, use T.DIST.2T instead.
  • Keep your alpha and df in separate, clearly labeled cells at the top of the sheet. This makes formulas easier to audit and prevents the common 0.95-versus-0.05 mix-up.
  • If you are building a confidence interval, compute the standard error in its own cell first, then multiply by the t-value. Breaking the calculation into steps reduces errors and makes the sheet easier to check.

Troubleshooting

If you see a #NUM! error, the probability is outside the range 0 to 1 or the degrees of freedom is zero or negative. Check both arguments. If you see a #VALUE! error, one argument is text or a blank cell; make sure both cells contain numbers. If the formula returns a negative number, you likely passed a probability greater than 0.5, which puts the inverse in the lower tail; for typical two-tailed work, alpha is small (0.10, 0.05, 0.01) and the result is positive. If the result looks plausible but your conclusion is wrong, confirm whether your test is one-tailed or two-tailed and whether you should be using T.INV instead. If the formula will not parse, check your locale's argument separator; some regions use semicolons. If you copied the formula from another sheet and it broke, verify that the referenced cells came along and that the function name was not altered by autocorrect. Finally, if you are on the mobile app and the function picker does not show T.INV.2T, type it manually; it is supported even when not listed in the picker.

Frequently Asked Questions

What does the "2T" in T.INV.2T mean?

It stands for two-tailed. The function returns the t-value such that the combined area in both tails equals the probability you supply.

Should I enter 0.05 or 0.95 for a 95% confidence interval?

Enter 0.05. That is the total tail area outside the 95% interval. Entering 0.95 gives the inverse for a probability of 0.95, which is not the critical value for a 95% interval.

How is T.INV.2T different from T.INV?

T.INV returns the one-tailed inverse. For a two-tailed test at alpha 0.05, T.INV.2T(0.05, df) equals T.INV(0.025, df) in absolute value, because the two-tailed function splits the probability across both tails.

Can I use T.INV.2T for large samples?

Yes, the function works for any positive degrees of freedom. For very large samples the t-distribution approaches the normal distribution, so the result will be close to the z critical value.

Why do I get a negative t-value?

A negative result means the probability you entered is greater than 0.5, placing the inverse in the lower tail. For standard two-tailed tests with small alpha, the result is positive.

Does T.INV.2T work in Excel too?

Excel has the same function under the same name in modern versions, so formulas often transfer. Older Excel versions used TINV, which is equivalent to T.INV.2T.