Compatibility function

CONFIDENCE function

Returns the margin of error for a population mean using the normal distribution. Replaced by CONFIDENCE.NORM.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. CONFIDENCE still works, but for new workbooks use CONFIDENCE.NORM.

Syntax

CONFIDENCE(alpha, standard_dev, size)
ArgumentWhat it means
alphaRequiredThe significance level: 0.05 for a 95% confidence interval, 0.01 for 99%.
standard_devRequiredThe population standard deviation (assumed known), > 0.
sizeRequiredThe sample size, 1 or more. Decimals are truncated.

Returns: The half-width of the confidence interval (margin of error).

How CONFIDENCE works

CONFIDENCE calculates the "plus or minus" part of a confidence interval for an average. If 50 bags of coffee weigh 498 g on average and the margin is 0.69 g, you can say with 95% confidence that the true average lies between 497.31 g and 498.69 g. The formula is z × σ / √n, where z comes from the normal distribution.

It assumes the population standard deviation is known (or the sample is large). For small samples with an estimated standard deviation, the t-based CONFIDENCE.T gives a wider, more honest margin. Note that you pass alpha, not the confidence level: 95% confidence means alpha = 0.05.

Compatibility note: CONFIDENCE is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends CONFIDENCE.NORM. The arguments are identical — rename to CONFIDENCE.NORM(alpha, standard_dev, size). Consider CONFIDENCE.T for small samples.

Examples

195% margin of error

D2fx=CONFIDENCE(A2, B2, C2)
ABCD
1AlphaStd devSample size
20.052.5500.692952

Result: 0.692952

1.959964 × 2.5 / √50 = 0.692952 (formatted to 6 decimals). Add and subtract it from the sample mean to get the interval.

299% interval for delivery times

E2fx=A2+CONFIDENCE(D2, B2, C2)
ABCDE
1Mean (min)Std devnAlpha
24212360.0147.15

Result: 47.15

For 99% confidence z is 2.5758, so the margin is 2.5758 × 12 / 6 = 5.15 minutes. The upper limit is 47.15 (formatted to 2 decimals); =A2-CONFIDENCE(D2,B2,C2) gives the lower limit.

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

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!alpha ≤ 0 or ≥ 1, standard_dev ≤ 0, or size < 1.Check the inputs.
#VALUE!Non-numeric argument.Check the inputs.

Tips

  • Pass alpha (0.05), not the confidence level (0.95) — passing 0.95 gives a tiny, wrong margin.
  • To halve the margin of error you need four times the sample size, because n is under a square root.

Questions

Should I still use CONFIDENCE?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use CONFIDENCE.NORM, which gives the same result and makes the intent clearer to the next person who reads the formula.

Will CONFIDENCE stop working?

There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.

Google Sheets

CONFIDENCE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

CONFIDENCE 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
DanishKONFIDENSINTERVAL
DutchBETROUWBAARHEID
FinnishLUOTTAMUSVÄLI
FrenchINTERVALLE.CONFIANCE
GermanKONFIDENZ
HungarianMEGBÍZHATÓSÁG
ItalianCONFIDENZA
Norwegian (Bokmål)KONFIDENS
PolishUFNOŚĆ
Portuguese (Brazil)INT.CONFIANÇA
Portuguese (Portugal)INT.CONFIANÇA
RussianДОВЕРИТ
SpanishINTERVALO.CONFIANZA
SwedishKONFIDENS
TurkishGÜVENİRLİK