Excel function

STDEV.Pfunction

Returns the standard deviation of an entire population.

All versions
=STDEV.P(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Shrink the range to one row. Even a single number gives 0 (STDEV.S would return an error). Try breaking it on purpose to see the errors.

Result

5.4787342448

range
B2:D6Drag the corner dots on the table

The cells to calculate. Cells that are not numbers are ignored.

What is the STDEV.P function?

=STDEV.P(number1, [number2], ...)

STDEV.P treats the data as the whole population and returns its standard deviation. Use it when every member is included, such as every student in a class.

It divides the sum of squared deviations by the count (n) and takes the square root. For a sample, use STDEV.S, which divides by n-1.

Arguments

number1, number2, ...
The population values. Text and blank cells are ignored.

STDEV.P examples

  1. Example 1. All scores

    =STDEV.P(B2:D6)

    If these are every student's scores, STDEV.P is correct.

  2. Example 2. Compared with a sample

    =STDEV.S(B2:D6)

    STDEV.S divides by n-1, so it is a little larger.

  3. Example 3. Coefficient of variation

    =STDEV.P(A2:A20)/AVERAGE(A2:A20)

    Spread as a ratio of the mean.

Common mistakes

FAQ

Is it the same as STDEVP?
STDEVP is the older compatibility name for the same calculation.
Variance?
VAR.P is the matching variance; the standard deviation is its square root.