STDEV Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel STDEV function estimates the standard deviation of a population from a sample (dividing by n−1). It is a legacy name — Microsoft now recommends STDEV.S, which is identical.


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

Syntax

=STDEV(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first value or range of the sample.
number2, ...OptionalUp to 254 more values or ranges. Text and logical values in references are ignored.

How to use it

STDEV treats your data as a sample drawn from a larger population, so it divides by n−1 (Bessel's correction). Use it when the numbers are a subset, not the whole group.

=STDEV({2,4,4,4,5,5,7,9}) // sample s ≈ 2.138

If your data is the entire population, use STDEVP (divide by n) instead. The two answers differ — sample standard deviation is always the larger of the pair.

Use the modern name: =STDEV.S(...) is the supported replacement and returns the same value. The .S makes the “sample” intent explicit (vs. STDEV.P for a population).

Try it: interactive demo

Live demo

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

Result:

Practice workbook

📊
Download the free STDEV 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

Is STDEV the same as STDEV.S?
Yes — STDEV.S (Excel 2010+) is the sample standard deviation (divides by n−1) and returns identical results. STDEV is kept for backward compatibility.
What is the difference between STDEV and STDEVP?
STDEV (sample) divides by n−1; STDEVP (population) divides by n. Use STDEV when your data is a sample, STDEVP when it is the entire population.
Does STDEV ignore text and logical values?
In a referenced range, yes — text and TRUE/FALSE are skipped. To include logical values and text-numbers, use STDEVA.
Should I switch to STDEV.S?
For new work, yes — it is the supported name and clarifies the sample-versus-population choice. Existing STDEV formulas keep working.

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.S · STDEV.P · STDEVP · VAR · VARP