How to Add Standard Deviation Bars in Excel

If you just need to add standard deviation bars in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use =STDEV.S(range) for a sample, or =STDEV.P(range) when your data is the whole population.

On this page7
ƒxStandard DeviationLive

n = 6 · mean = 14.67

Sample std. deviation (σ)
4.131

Variance = 17.067

=STDEV.S(A1:A6)
=STDEV.S(A1:A10)
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

Standard deviation measures how spread out your numbers are around their average — small means tightly clustered, large means widely scattered. It is in the same units as the data, so a standard deviation of 4 on test scores literally means "give or take about 4 points". STDEV.S divides by n−1 for a sample; STDEV.P divides by n when you have every member of the group. 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 “add standard deviation bars 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

For the values 12, 15, 9, 21, 17, 14, the mean is 14.67 and =STDEV.S(A1:A6) returns about 4.13. So a typical value sits roughly 4 units either side of the average. Variance — the square of that — is about 17.07. Paste your own list into the tool above and both update instantly. Standard deviation is the workhorse of any risk, quality or performance analysis — investment volatility, process control, test-score spread. The mean tells you the centre; standard deviation tells you how much to trust it. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “add standard deviation bars in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Using STDEV.P on a sample (or STDEV.S on a full population), which biases the spread.
  • Including text or blank cells in the range, which can skew or error the result.
  • Comparing standard deviations of data measured in different units.
  • Confusing standard deviation with the standard error of the mean — they answer different questions.

Frequently asked questions

STDEV.S or STDEV.P?

Use STDEV.S (sample, n−1) when your data is a sample drawn from a larger group — the usual case. Use STDEV.P (population, n) only when you have every single member.

What does a high standard deviation mean?

That values vary a lot around the mean — more risk or inconsistency. A low value means results are predictable and tightly grouped.

Is the old STDEV function still fine?

STDEV is the legacy name for STDEV.S and still works for backward compatibility, but new sheets should prefer the explicit STDEV.S / STDEV.P.

Other ways people ask this

People reach this page typing “how do you add standard deviation bars in excel”, “add standard deviation bars in excel”, “how to add standard deviation in excel” and “how to add standard deviation in excel graph”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “how do you add standard deviation bars in excel”, “add standard deviation bars in excel”, “how to add standard deviation in excel” all point at the one operation explained on this page, which is why they all lead here.