Smart Systems for Home

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

Google Sheets CONFIDENCE.T Function: 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 CONFIDENCE.T function in Google Sheets returns the margin of error for a confidence interval for a population mean, using a Student's t-distribution. In plain terms, it tells you how far above and below your sample mean the true population mean is likely to sit, at a confidence level you choose (commonly 95%). You need three inputs: the significance level (alpha), the sample standard deviation, and the sample size. For example, =CONFIDENCE.T(0.05, 2.3, 30) returns the half-width of a 95% confidence interval when the sample standard deviation is 2.3 and n is 30. The full interval is your sample mean plus or minus that result. This guide walks through the syntax, a worked example, common mistakes, and troubleshooting.

What You'll Need

  • A Google account with access to Google Sheets (any modern browser or the Sheets mobile app).
  • A dataset with a numeric sample: at least two values, and ideally 30 or more for the t-distribution to behave well.
  • The sample mean and sample standard deviation of your data. You can compute these with AVERAGE and STDEV.S in Sheets.
  • Your chosen confidence level expressed as alpha: for 95% confidence, alpha = 0.05; for 90%, alpha = 0.10; for 99%, alpha = 0.01.

Step-by-Step

  1. Open your spreadsheet. In Google Sheets, click the cell where you want the margin of error to appear. A blank cell away from your raw data is easiest to read.
  2. Type the formula prefix. Enter =CONFIDENCE.T( to start the function. As you type, Sheets shows a tooltip with the argument order: alpha, standard_deviation, size.
  3. Enter alpha. Type your significance level. For a 95% confidence interval, use 0.05. Do not enter 95 or 0.95 here; alpha is 1 minus the confidence level. Press comma to move to the next argument.
  4. Enter the sample standard deviation. This must be the standard deviation of your sample, calculated with STDEV.S (not STDEV.P, which is for a population). You can type a number such as 2.3, or reference a cell that holds =STDEV.S(A2:A31).
  5. Enter the sample size. Type the count of observations, such as 30, or reference a cell with =COUNT(A2:A31). The size must be an integer greater than 1.
  6. Close the parenthesis and press Enter. The cell now shows the margin of error, for example 0.859. This is the half-width of the interval, not the full interval.
  7. Build the confidence interval. In two adjacent cells, calculate the lower and upper bounds: =AVERAGE(A2:A31)-C1 and =AVERAGE(A2:A31)+C1, where C1 holds the CONFIDENCE.T result. Format both as numbers with the same decimal places as your data.
  8. Label and verify. Add a text label such as "95% CI lower" and "95% CI upper". Check that the interval is centered on the sample mean and that the margin of error is positive. If it is negative, you likely swapped alpha and the standard deviation.

Common Mistakes

  • Using 95 instead of 0.05 for alpha. Alpha is a proportion between 0 and 1. Entering 95 returns an error or a nonsensical result.
  • Passing the population standard deviation. CONFIDENCE.T expects the sample standard deviation from STDEV.S. Using STDEV.P underestimates the margin of error.
  • Confusing CONFIDENCE.T with CONFIDENCE.NORM. The .T version uses the t-distribution and is appropriate when the population standard deviation is unknown, which is the usual case. CONFIDENCE.NORM assumes you know it.
  • Treating the result as the full interval width. The function returns the half-width. You must add and subtract it from the mean to get the interval.
  • Using a sample size of 1 or a non-integer. The size argument must be an integer greater than 1. Sheets returns a #NUM! error otherwise.
  • Referencing text or blank cells. If your standard deviation or size cell contains text, the formula returns #VALUE!. Use COUNT and STDEV.S on numeric ranges to avoid this.

Tips

  • Keep alpha, standard deviation, and size in separate labeled cells, then reference them in the formula. This makes it easy to change the confidence level without editing the formula.
  • Use the same decimal precision for the mean, margin of error, and bounds so the interval reads cleanly.
  • For a quick check, a 95% interval is roughly the mean plus or minus two standard errors (standard deviation divided by the square root of n). CONFIDENCE.T gives the exact t-based value.
  • If you need a one-tailed margin, halve alpha and double the result only if your textbook or reporting standard calls for it; otherwise stick with the standard two-tailed interval.
  • Document the confidence level next to the result. A reader who sees only 0.859 cannot tell whether it is a 90%, 95%, or 99% interval.

Troubleshooting

  • #NUM! error: Check that alpha is greater than 0 and less than 1, standard_deviation is greater than 0, and size is an integer greater than 1. Any violation returns #NUM!.
  • #VALUE! error: One of the arguments is text or a blank cell. Confirm each referenced cell contains a number. Use ISNUMBER to test.
  • Result looks too small or too large: Verify you used STDEV.S, not STDEV.P, and that alpha matches your intended confidence level. A 99% interval (alpha 0.01) is wider than a 95% interval (alpha 0.05).
  • Formula not recognized: Ensure you typed CONFIDENCE.T with a period, not CONFIDENCE_T or CONFIDENCE. Sheets accepts the period form; the underscore form is not valid.
  • Interval does not contain the mean: Recheck the addition and subtraction. The lower bound must be mean minus margin and the upper bound mean plus margin.
  • Mobile app behaves differently: The Sheets mobile app supports CONFIDENCE.T, but the formula tooltip may not appear. Type the full formula manually and use the same argument order.

Frequently Asked Questions

What is the difference between CONFIDENCE.T and CONFIDENCE.NORM?

CONFIDENCE.T uses the Student's t-distribution and is the right choice when the population standard deviation is unknown and estimated from the sample. CONFIDENCE.NORM uses the normal distribution and assumes the population standard deviation is known. For small samples, the t version gives a wider, more accurate margin.

Can I use CONFIDENCE.T for proportions or percentages?

No. CONFIDENCE.T is for a mean of numeric data. For a proportion, use a different method, such as the normal approximation formula with the sample proportion and size, or a dedicated proportion confidence interval calculation.

What sample size do I need for CONFIDENCE.T to be reliable?

The t-distribution works for any sample size greater than 1, but the interval becomes very wide with small samples. As a rule of thumb, 30 or more observations give a reasonably stable interval; below that, interpret the result cautiously and check for outliers.

Why does my result differ from Excel's CONFIDENCE.T?

Both use the same t-distribution and should match when given identical inputs. Differences usually come from using STDEV.P instead of STDEV.S, or from a different alpha value. Compare the exact cell values, not rounded displays.

Does CONFIDENCE.T work in Google Sheets on mobile?

Yes. The function is available in the Sheets mobile app for iOS and Android. Type the formula manually; the argument tooltip may be less detailed than on desktop.

Can I get a one-sided confidence interval with CONFIDENCE.T?

The function returns a two-sided margin. For a one-sided bound, use alpha doubled (for example, 0.10 for a 95% one-sided interval) and treat the result as the distance from the mean to the single bound. Confirm the convention your reporting standard requires before using it.