STDEV.S Function

Excel Functions › Statistical

Excel 2010+ Statistical

The Excel STDEV.S function estimates the standard deviation of a sample — how spread out the values are — dividing by n−1 to correct for sampling.


Quick answer:
=STDEV.S({2,4,4,4,5,5,7,9}) sample standard deviation =~ 2.138

Syntax

=STDEV.S(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first number, array, or range representing a sample of the population.
number2, ...OptionalUp to 254 additional numbers, arrays, or ranges.

How to use it

STDEV.S estimates the spread of a larger population from a sample of it. It divides the sum of squared deviations by n−1 (Bessel's correction), which avoids underestimating the true spread.

=STDEV.S({2,4,4,4,5,5,7,9}) // sample spread =~ 2.138
=STDEV.P({2,4,4,4,5,5,7,9}) // population spread = 2

Because it divides by the smaller n−1, STDEV.S returns a slightly larger value than STDEV.P on the same data. STDEV.S is the square root of VAR.S.

Default to STDEV.S: most real-world data is a sample, so STDEV.S is usually the right choice. Reserve STDEV.P for when you genuinely have the entire population.

Try it: interactive demo

Live demo

Pick a STDEV.S example to see the formula and its result.

Result:

Practice workbook

📊
Download the free STDEV.S practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What is the difference between STDEV.S and STDEV.P?
STDEV.S divides by n−1 and is for a sample of a larger population; STDEV.P divides by n and is for the entire population. STDEV.S returns a slightly larger value.
Why divide by n-1 instead of n?
Dividing by n−1 (Bessel's correction) compensates for the fact that a sample tends to underestimate the spread of the population it came from, giving an unbiased estimate.
Is STDEV.S the same as the old STDEV?
Yes. STDEV.S, introduced in Excel 2010, gives identical results to the legacy STDEV function, which remains in the Compatibility category.
Does STDEV.S count text or logical values?
No. In a range, text, logicals, and empty cells are ignored. Use STDEVA if you need text counted as 0 and TRUE/FALSE as 1/0.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: STDEV.P · VAR.S · VAR.P · STDEVA · AVERAGE