CONFIDENCE.T function
Returns the margin of error for a mean using Student's t-distribution, the right choice for small samples whose standard deviation is estimated.
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
CONFIDENCE.T(alpha, standard_dev, size)| Argument | What it means | |
|---|---|---|
alpha | Required | The significance level, 1 minus the confidence level (0.05 for 95%). |
standard_dev | Required | The sample standard deviation, usually from STDEV.S. |
size | Required | The sample size, 2 or more. |
Returns: A positive number: the ± margin of error around the sample mean.
How CONFIDENCE.T works
CONFIDENCE.T does the same job as CONFIDENCE.NORM, producing the ± margin that turns a sample average into a confidence interval, but it uses the t-distribution. That distribution has fatter tails, which builds in extra caution for the fact that with a small sample even the standard deviation is only an estimate.
The formula is t × s ÷ √n, where t comes from T.INV.2T with n − 1 degrees of freedom. With 15 observations t is about 2.145 instead of 1.96, so the margin is roughly 9% wider than the normal version. As the sample grows the two functions converge, so CONFIDENCE.T is a safe default whenever the standard deviation comes from the same data.
Examples
1Average call length from 15 calls
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Input | Value | ||
| 2 | Alpha | 0.05 | 1.3845 | |
| 3 | Sample std dev (min) | 2.5 | ||
| 4 | Calls sampled | 15 |
Result: 1.3845
The margin is 1.3845 minutes (formatted to 4 decimal places). CONFIDENCE.NORM with the same inputs would give 1.2652; the t version is wider because 15 calls is a small sample.
2Margin straight from the data
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Week | Deliveries | ||
| 2 | 1 | 42 | 2.0478 | |
| 3 | 2 | 38 | ||
| 4 | 3 | 45 | ||
| 5 | 4 | 40 | ||
| 6 | 5 | 44 | ||
| 7 | 6 | 39 | ||
| 8 | 7 | 41 | ||
| 9 | 8 | 43 |
Result: 2.0478
The eight weeks average 41.5 deliveries with a sample standard deviation of 2.4495. The 95% margin is 2.0478, so the true weekly average is likely between about 39.5 and 43.5.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | size is 1, so there are no degrees of freedom. | You need at least two observations. |
#NUM! | alpha is outside 0–1 or standard_dev is 0 or negative. | Check the inputs. |
Tips
- Use STDEV.S (sample), not STDEV.P, for the standard deviation argument.
- The interval assumes the data are roughly bell-shaped; with very skewed data and tiny samples treat it as a rough guide.
Google Sheets
CONFIDENCE.T also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
CONFIDENCE.T 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 |
|---|---|
| Danish | KONFIDENST |
| Dutch | VERTROUWELIJKHEID.T |
| Finnish | LUOTTAMUSVÄLI.T |
| French | INTERVALLE.CONFIANCE.STUDENT |
| German | KONFIDENZ.T |
| Hungarian | MEGBÍZHATÓSÁG.T |
| Italian | CONFIDENZA.T |
| Norwegian (Bokmål) | KONFIDENS.T |
| Polish | UFNOŚĆ.T |
| Portuguese (Brazil) | INT.CONFIANÇA.T |
| Portuguese (Portugal) | INT.CONFIANÇA.T |
| Russian | ДОВЕРИТ.СТЬЮДЕНТ |
| Spanish | INTERVALO.CONFIANZA.T |
| Swedish | KONFIDENS.T |
| Turkish | GÜVENİLİRLİK.T |