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
Syntax
CONFIDENCE(alpha, standard_dev, size)| Argument | What it means | |
|---|---|---|
alpha | Required | The significance level: 0.05 for a 95% confidence interval, 0.01 for 99%. |
standard_dev | Required | The population standard deviation (assumed known), > 0. |
size | Required | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Alpha | Std dev | Sample size | |
| 2 | 0.05 | 2.5 | 50 | 0.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
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Mean (min) | Std dev | n | Alpha | |
| 2 | 42 | 12 | 36 | 0.01 | 47.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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | KONFIDENSINTERVAL |
| Dutch | BETROUWBAARHEID |
| Finnish | LUOTTAMUSVÄLI |
| French | INTERVALLE.CONFIANCE |
| German | KONFIDENZ |
| Hungarian | MEGBÍZHATÓSÁG |
| Italian | CONFIDENZA |
| Norwegian (Bokmål) | KONFIDENS |
| Polish | UFNOŚĆ |
| Portuguese (Brazil) | INT.CONFIANÇA |
| Portuguese (Portugal) | INT.CONFIANÇA |
| Russian | ДОВЕРИТ |
| Spanish | INTERVALO.CONFIANZA |
| Swedish | KONFIDENS |
| Turkish | GÜVENİRLİK |