STDEVSTDEVPStandard DeviationVarianceStatistical Functions

Standard Deviation in Excel: STDEV vs STDEVP

Standard deviation Excel formulas are not all the same. See when to use STDEV vs STDEVP, how the n-1 divisor works, and how to read the result correctly.

Introduction

Excel ships seven functions that all claim to measure spread, and picking the wrong one silently changes your answer. This guide separates the two that matter most — STDEV for a sample and STDEVP for a full population — shows exactly why the divisor differs, and walks through a worked comparison where two datasets share the same average but not the same consistency.

Prerequisites

  • Comfort with the AVERAGE function
  • Data arranged in a single contiguous range
  • No statistics background required — the divisors are explained from scratch

1What Standard Deviation Actually Measures

Standard deviation is the typical distance between a data point and the mean of its dataset. Because it is expressed in the same units as the raw data, it is far easier to interpret than variance, whose units are squared. A standard deviation of 2 on a set of test scores means scores typically sit about 2 points away from the class average — a sentence you can say out loud, which is not true of a variance of 4.

Example

=AVERAGE(A2:A9)
Result: 5

For the values 2, 4, 4, 4, 5, 5, 7 and 9 the mean is 5. Every standard deviation calculation starts by measuring each value's distance from this number, so AVERAGE is always the first step even though it never appears in the final formula.

Standard deviation is never negative, and it is 0 only when every value is identical.

It is sensitive to outliers: one extreme value can move it more than the other nine combined.

2STDEV vs STDEVP: Choosing the Divisor

STDEV is the sample standard deviation and divides the sum of squared deviations by n-1. STDEVP is the population standard deviation and divides by n. Both are computed from the same eight numbers here, and both are correct — they simply describe different things.

Example

=STDEV(A2:A9) and =STDEVP(A2:A9)
Result: 2.138089935 and 2

The eight values have a mean of 5 and a total squared deviation of 32. STDEVP divides by 8, giving a variance of 4 and a standard deviation of exactly 2. STDEV divides by 7, giving a variance of 4.571428571 and a standard deviation of 2.138089935. Population standard deviation is always the smaller of the two on identical data.

Excel's modern names are STDEV.S and STDEV.P; STDEV and STDEVP are the legacy aliases and return identical results.

The gulf between the two narrows fast as n grows: on 8 points STDEV is about 7% larger, on 1,000 points only about 0.05% larger.

3Why the n-1 Divisor Exists

A sample stands in for a population you could not measure, and its mean is only an estimate of the true mean. Measuring spread around an estimated centre understates the real spread, so dividing by n-1 (Bessel's correction) removes that bias. It is not a fudge factor — it is what makes the sample standard deviation an unbiased estimator. Variance behaves the same way, which is why VAR and VARP exist as a matching pair.

Example

=VAR(A2:A9) and =VARP(A2:A9)
Result: 4.571428571 and 4

Same 32 total squared deviation, two denominators. The standard deviation is just the square root of these numbers: SQRT(4.571428571) = 2.138089935 and SQRT(4) = 2. Once you see that relationship you never need to guess which variance function pairs with which standard deviation function.

SQRT(VAR(range)) always equals STDEV(range) — a quick way to check that your formula references the whole range and nothing extra.

The correction only inflates the estimate when the sample is genuinely a subset of a larger group. For a census, it is unnecessary.

4A Worked Comparison: Two Datasets, One Average

The clearest way to see why the choice matters is to compare two production lines that both average 10.05 millimetres. Their means are identical, so an AVERAGE-based report would declare them equally good. Their standard deviations are not identical, and that is the number that predicts how many units will fall outside tolerance.

Example

=STDEV(C2:C9)
Result: 0.3251

Line A reads 10.1, 10.2, 9.9, 10.0, 10.3, 9.8, 10.1, 10.0 and gives STDEV 0.1604 (STDEVP 0.15). Line B reads 10.0, 10.5, 9.5, 10.2, 9.8, 10.1, 9.9, 10.4 and gives STDEV 0.3251 (STDEVP 0.3041). Both average 10.05, but line B varies about twice as much — and both lines are samples from a longer production run, which is exactly the case where STDEV is the right choice.

Ask whether your range holds every member of the group. All of them — use STDEVP. A selection from a larger group — use STDEV.

When in doubt in day-to-day reporting, STDEV is the safer default because it never understates uncertainty.

Standard deviation only makes sense next to the mean. Reporting spread without the average tells the reader nothing.

5Google Sheets and the Dotted Aliases

Google Sheets implements the whole family with the same names and the same divisors, so a workbook can move between the two apps without changing a digit. Google's own function list maps STDEV.S to STDEV and STDEV.P to STDEVP, mirroring how modern Excel treats its legacy names.

Example

=STDEV.S(A2:A9)
Result: 2.138089935

Excel's STDEV.S and Google Sheets' STDEV.S both return 2.138089935 on the eight-value range — bit-for-bit the same result as the legacy STDEV. The dotted names exist for clarity, not for different maths.

STDEV and STDEVP ignore text, logical values and empty cells inside a range. STDEVA and STDEVPA count text as 0 — reach for those only when a blank cell genuinely means zero.

Numbers typed directly into the formula are always counted, but text sitting inside a referenced range is always ignored. That asymmetry surprises people who build ranges with stray labels.

Both functions need at least two numeric values. A single-value range or a text-only range returns #DIV/0! in Excel.

Functions Used

Related Guides

Summary

Standard deviation in Excel comes down to one decision: does your range contain every member of the group, or a selection from it? Full population means STDEVP and a divisor of n; a sample means STDEV and a divisor of n-1. The numbers differ by roughly 7% on eight data points and by almost nothing on a thousand, but the reasoning behind the choice never changes. Variance functions follow the identical split, and both Excel and Google Sheets expose the same names.

Next Steps

  • Recompute one of your existing reports with the other divisor to see how much the answer actually moves
  • Pair STDEV with AVERAGE plus a ±1 standard deviation band to describe a normal range instead of a bare average
  • Try STDEVA on a range containing text placeholders and confirm for yourself what the text-as-zero rule does to the result