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], ...)| Argument | What it means | |
|---|---|---|
number1 | Required | A number, reference or range representing the whole population. |
number2, ... | Optional | Up 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Monthly pay | ||
| 2 | Ana | 3200 | 211.40 | |
| 3 | Ben | 3450 | ||
| 4 | Chloe | 2980 | ||
| 5 | Dev | 3600 | ||
| 6 | Eva | 3100 | ||
| 7 | Finn | 3370 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Monthly pay | ||
| 2 | Ana | 3200 | 20.18 | |
| 3 | Ben | 3450 | ||
| 4 | Chloe | 2980 | ||
| 5 | Dev | 3600 | ||
| 6 | Eva | 3100 | ||
| 7 | Finn | 3370 |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Batch | Weight (g) | ||
| 2 | 1 | 250 | 0 | |
| 3 | 2 | 250 | ||
| 4 | 3 | 250 |
Result: 0
All values are equal, so there is no spread at all: 0.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Czech | SMODCH.P |
| Danish | STDAFV.P |
| Finnish | KESKIHAJONTA.P |
| French | ECARTYPE.PEARSON |
| German | STABW.N |
| Hungarian | SZÓR.S |
| Italian | DEV.ST.P |
| Norwegian (Bokmål) | STDAV.P |
| Polish | ODCH.STAND.POPUL |
| Portuguese (Brazil) | DESVPAD.P |
| Portuguese (Portugal) | DESVPAD.P |
| Russian | СТАНДОТКЛОН.Г |
| Spanish | DESVEST.P |
| Swedish | STDAV.P |
| Turkish | STDSAPMA.P |