A sample mean is an estimate — a confidence interval puts a margin around it. CONFIDENCE gives the ± margin of error so you can report “the average is 50, give or take 3.”
mean − margin to mean + margin.
The example
Sample mean 50, stdev 8, n = 40, at 95% confidence.
| A | B | |
|---|---|---|
| 1 | Mean | 50 |
| 2 | Std dev | 8 |
| 3 | n | 40 |
| 4 | Margin (±) | 2.48 |
The formula
The margin of error, then the interval bounds:
How it works
CONFIDENCE returns the half-width of the interval:
- The first argument is alpha — 1 minus the confidence level. For 95% confidence, alpha =
0.05; for 99%,0.01. - Pass the standard deviation and the sample size n.
- The result is the margin of error. Build the interval as
mean ± margin. - Bigger samples shrink the margin (it scales with 1/√n), so quadrupling n halves the margin.
Small samples? CONFIDENCE (and its 365 sibling CONFIDENCE.NORM) assume a normal distribution and a known/large-sample standard deviation. For small samples using the sample standard deviation, the t-based CONFIDENCE.T is more accurate.
Try it: interactive demo
Set the mean, stdev, n, and confidence.
Variations
99% confidence
Lower alpha, wider interval:
Interval bounds
Mean ± margin:
t-based (small sample)
More accurate for small n:
Pitfalls & errors
Alpha is not the confidence level. Enter 0.05 for 95%, not 0.95. Mixing these up gives a nonsensically tiny or huge margin.
Normal vs t. CONFIDENCE/CONFIDENCE.NORM use the normal distribution; for small samples with an estimated stdev, CONFIDENCE.T is the right tool.
n must be ≥ 1. A zero or blank sample size errors. And remember the margin shrinks only with the square root of n.
Practice workbook
Frequently asked questions
How do I calculate a confidence interval in Excel?
What value do I use for alpha?
When should I use CONFIDENCE.T instead?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class