Calculating a Confidence Interval in Excel

This guide treats “calculating a confidence interval in excel” the way busy spreadsheet users actually want it: answer first, a live tool to prove it on your own data, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

Exact answer

In Excel: use =CONFIDENCE.NORM(0.05, sd, n) — it returns the margin of error (the ± half-width) of a confidence interval around a mean, at a confidence level of 1 − alpha: alpha 0.05 gives 95 %, alpha 0.01 gives 99 %.

On this page8

Syntax

=CONFIDENCE.NORM(alpha, standard_dev, size)

Arguments

Argumentrequired / optionalDescription
alpharequiredSignificance level — 0.05 for 95 % confidence.
standard_devrequiredThe population or sample standard deviation.
sizerequiredThe sample size.

Related functions

STDEVNORM.DIST and NORM.INVAVERAGE
ƒxStandard DeviationLive

n = 6 · mean = 14.67

Sample std. deviation (σ)
4.131

Variance = 17.067

=STDEV.S(A1:A6)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

CONFIDENCE returns the half-width of a confidence interval: the ± figure you place around a sample mean. The alpha argument is a significance level, not a confidence level, so 95 % confidence means passing 0.05 — the most common mistake with this function by a wide margin. CONFIDENCE.T uses the t-distribution and is the correct choice for small samples where the population deviation is unknown, which describes most real survey and test data. The result shrinks with the square root of the sample size, which is why quadrupling a sample only halves the error. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “calculating a confidence interval in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A survey of 400 people with a mean of 7.2 and a deviation of 1.8: =CONFIDENCE.NORM(0.05, 1.8, 400) returns about 0.18, so the interval is 7.2 ± 0.18. Reporting it: ="7.2 ± " & ROUND(CONFIDENCE.NORM(0.05,1.8,400),2). For a sample of 25, =CONFIDENCE.T(0.05, 1.8, 25) is the honest choice and returns a noticeably wider figure. CONFIDENCE is what turns a sample mean into an honest claim, and the alpha-versus-confidence confusion is what makes it so often wrong. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Treat “calculating a confidence interval in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

Common mistakes

  • Passing 0.95 instead of 0.05, which produces a nonsensically small margin.
  • Using CONFIDENCE.NORM on a small sample where the t-distribution is correct and gives a wider, honest interval.
  • Reporting a mean without an interval at all, which implies a precision the sample does not support.

Frequently asked questions

What alpha do I use for 95 % confidence?

0.05. Alpha is the significance level, which is 1 minus the confidence level.

CONFIDENCE.NORM or CONFIDENCE.T?

T for small samples with an unknown population deviation — which is most real data. NORM for large samples.

How do I halve my margin of error?

Quadruple the sample size. The margin shrinks with the square root of n.