Statistical function

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)
ArgumentWhat it means
alphaRequiredThe significance level, 1 minus the confidence level (0.05 for 95%).
standard_devRequiredThe sample standard deviation, usually from STDEV.S.
sizeRequiredThe 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

D2fx=CONFIDENCE.T(B2, B3, B4)
ABCD
1InputValue
2Alpha0.051.3845
3Sample std dev (min)2.5
4Calls sampled15

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

D2fx=CONFIDENCE.T(0.05, STDEV.S(B2:B9), COUNT(B2:B9))
ABCD
1WeekDeliveries
21422.0478
3238
4345
5440
6544
7639
8741
9843

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.

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

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DanishKONFIDENST
DutchVERTROUWELIJKHEID.T
FinnishLUOTTAMUSVÄLI.T
FrenchINTERVALLE.CONFIANCE.STUDENT
GermanKONFIDENZ.T
HungarianMEGBÍZHATÓSÁG.T
ItalianCONFIDENZA.T
Norwegian (Bokmål)KONFIDENS.T
PolishUFNOŚĆ.T
Portuguese (Brazil)INT.CONFIANÇA.T
Portuguese (Portugal)INT.CONFIANÇA.T
RussianДОВЕРИТ.СТЬЮДЕНТ
SpanishINTERVALO.CONFIANZA.T
SwedishKONFIDENS.T
TurkishGÜVENİLİRLİK.T