How to calculate Standard Deviation in Google Sheets (Sample & Population)

To calculate Standard Deviation in Google Sheets, use the =STDEV.S for sample standard deviation or the =STDEV.P for population standard deviation. Enter the range of cells that contain the data to be analyzed in the parentheses and the standard deviation will be calculated. You can also add a third argument to the formula to specify the method of calculation, which can be either “sample” or “population”. This will ensure that the correct standard deviation is calculated for the given data.


Standard deviation is one of the most common ways to measure the in a dataset.

There are two different types of standard deviations you can calculate, depending on the type of data you’re working with.

1. Population standard deviation

You should calculate the population standard deviation when the dataset you’re working with represents an entire population, i.e. every value that you’re interested in.

The formula to calculate a population standard deviation, denoted as σ, is:

σ = √Σ(xi – μ)2 / N

where:

  • Σ: A symbol that means “sum”
  • xi: The ith value in a dataset
  • μ: The population mean
  • N: The population size

2. Sample standard deviation

You should calculate the sample standard deviation when the dataset you’re working with represents a a sample taken from a larger population of interest.

The formula to calculate a sample standard deviation, denoted as s, is:

s = √Σ(xi – x̄)2 / (n – 1)

where:

  • Σ: A symbol that means “sum”
  • xi: The ith value in a dataset
  • : The sample mean
  • n: The sample size

The following examples show how to calculate the sample and population standard deviation in Google Sheets.

Example 1: Calculating Sample Standard Deviation in Google Sheets

Suppose a biologist wants to summarize the standard deviation of the weight of a particular species of turtles so she collects a of 20 turtles from the population.

The following screenshot shows how to use the STDEV.S() function to calculate the sample standard deviation:

The sample standard deviation turns out to be 11.91.

Note that STDEV() will also return the sample standard deviation.

Example 2: Calculating Population Standard Deviation in Google Sheets

Suppose a basketball coach wants to summarize the standard deviation of points scored by the 12 players on his team.

Since he is only interested in the points scored by his players and not any other players on any other team, he can calculate the population standard deviation.

The following screenshot shows how to use the STDEV.P() function to calculate the population standard deviation:

The population standard deviation turns out to be 7.331.

The following tutorials offer additional information about standard deviation:

The following tutorials explain how to calculate other measures of spread in Google Sheets:

x