Statistical function

STDEV.P function

Returns the standard deviation of an entire population, a measure of how spread out every value is around the average.

Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later

Excel 2010 and laterWorks in Google Sheets

Syntax

STDEV.P(number1, [number2], ...)
ArgumentWhat it means
number1RequiredA number, reference or range representing the whole population.
number2, ...OptionalUp to 254 more values.

Returns: The population standard deviation σ, in the same units as the data.

How STDEV.P works

The standard deviation tells you how far values typically sit from the average. A small value means everything is close to the mean; a large one means values are scattered. STDEV.P is the version for a population: you have data for every member of the group you are describing, for example all six people in a team, every branch of a company, or every month of a completed year.

It divides by n (the number of values). Its sibling STDEV.S divides by n − 1, which corrects the bias you get when estimating a larger population from a sample. If your data is a sample (a survey, a test batch, a few weeks of a longer period) use STDEV.S. With large data sets the difference is small; with small ones it matters. Text, logical values and empty cells in ranges are ignored. The older STDEVP is the same function.

Examples

1Spread of salaries in a whole team

D2fx=STDEV.P(B2:B7)
ABCD
1EmployeeMonthly pay
2Ana3200211.40
3Ben3450
4Chloe2980
5Dev3600
6Eva3100
7Finn3370

Result: 211.40

These six people are the entire team, so STDEV.P applies: 211.397467 (shown to 2 decimals). Pay typically differs from the team average (3,283.33) by about 200.

2Sample vs population on the same data

D2fx=STDEV.S(B2:B7)-STDEV.P(B2:B7)
ABCD
1EmployeeMonthly pay
2Ana320020.18
3Ben3450
4Chloe2980
5Dev3600
6Eva3100
7Finn3370

Result: 20.18

STDEV.S gives 231.57, about 20.18 more (shown to 2 decimals). Dividing by n − 1 instead of n always makes the sample version a little larger.

3A perfectly consistent process

D2fx=STDEV.P(B2:B4)
ABCD
1BatchWeight (g)
212500
32250
43250

Result: 0

All values are equal, so there is no spread at all: 0.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!There are no numbers in the arguments.Check the range for real numbers.
#VALUE!A typed argument is text that is not a number.Use references.

Tips

  • Ask yourself: "Is this every case, or a selection?" Every case → STDEV.P; a selection → STDEV.S.
  • Standard deviation = SQRT(VAR.P(range)).
  • Coefficient of variation (spread relative to size): =STDEV.P(r)/AVERAGE(r).

Questions

When should I use STDEV.P instead of STDEV.S?

Use STDEV.P when your data includes every member of the group you are describing. Use STDEV.S when it is a sample from a larger group, which is the more common case.

Is STDEVP different from STDEV.P?

No. STDEVP is the older name kept for compatibility.

Google Sheets

STDEV.P also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

STDEV.P in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechSMODCH.P
DanishSTDAFV.P
FinnishKESKIHAJONTA.P
FrenchECARTYPE.PEARSON
GermanSTABW.N
HungarianSZÓR.S
ItalianDEV.ST.P
Norwegian (Bokmål)STDAV.P
PolishODCH.STAND.POPUL
Portuguese (Brazil)DESVPAD.P
Portuguese (Portugal)DESVPAD.P
RussianСТАНДОТКЛОН.Г
SpanishDESVEST.P
SwedishSTDAV.P
TurkishSTDSAPMA.P