STDEV Excel Function

There are two ways to “stdev excel function”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above with a tool to test it; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: use =STDEV.S(range) for a sample and =STDEV.P(range) for a whole population — it measures how far values typically sit from the mean.

On this page8

Syntax

=STDEV.S(number1, [number2], ...)

Arguments

Argumentrequired / optionalDescription
number1requiredThe first number or range.
number2, ...optionalFurther values or ranges. Text and blanks are ignored.

Related functions

VARAVERAGESTANDARDIZE
ƒ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

Standard deviation summarises spread in the same units as the data. Excel splits it in two, and choosing wrongly is the classic error: STDEV.S divides by n-1 and is correct when your data is a sample of something larger; STDEV.P divides by n and is correct only when you hold every member of the population. The difference shrinks as the dataset grows but is material on small ones. The legacy STDEV matches STDEV.S. Because it is the square root of the variance, the two always agree — STDEV is simply the one in readable units. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “stdev excel function” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. 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 turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

Twelve monthly delivery times in B2:B13, treated as a sample of ongoing performance: =STDEV.S(B2:B13) might return 1.8 days against a mean of 4.2. Control limits then follow directly: =AVERAGE(B2:B13)+2*STDEV.S(B2:B13) marks the upper bound of normal variation. Standard deviation is what turns "the average is 4.2 days" into a statement about reliability, which is the part decisions actually rest on. 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

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. 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. Here is the takeaway for “stdev excel function”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Using STDEV.P on sample data, which understates the spread — the n-1 divisor in STDEV.S exists to correct exactly that.
  • Interpreting the standard deviation without the mean; the same 1.8 means something very different against a mean of 4 than against a mean of 400.
  • Applying it to strongly skewed data, where the standard deviation implies a symmetry the data does not have.

Frequently asked questions

What is the difference between STDEV.S and STDEV.P?

STDEV.S divides by n-1 and is for samples; STDEV.P divides by n and is only correct when the data covers the entire population.

Which should I use?

Almost always STDEV.S. Real datasets are nearly always samples of an ongoing process rather than a closed population.

How does it relate to variance?

It is the square root of the variance, which puts it back in the original units and makes it directly comparable to the mean.