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.
Syntax
| Argument | Description | |
|---|---|---|
number1 | Required | The first number, array, or range representing a sample of the population. |
number2, ... | Optional | Up 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.
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
Pick a STDEV.S example to see the formula and its result.
Practice workbook
Frequently asked questions
What is the difference between STDEV.S and STDEV.P?
Why divide by n-1 instead of n?
Is STDEV.S the same as the old STDEV?
Does STDEV.S count text or logical values?
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