Ultimate Calculator
Math

Standard Deviation Calculator

Calculate sample and population standard deviation and variance from a list of numbers.

Sample standard deviation

2.138089935

Variance
4.571428571
Mean
5
Count
8
Population std dev
2
Standard error of the mean
0.755928946
  1. Mean: 40 ÷ 8 = 5
  2. Square each distance from the mean and add them: 32
  3. Divide by n − 1 = 7: variance = 4.571428571
  4. Take the square root: 2.138089935

The formula

s = √( Σ(x − mean)² ÷ (n − 1) )

Standard deviation measures how spread out values are around their mean. A small value means the data clusters tightly, and a large one means it is scattered. Use the sample formula (dividing by n − 1) when your numbers are a sample of something bigger, and the population formula when you have every value.

How to use this calculator

  1. Enter your numbers.
  2. Choose your data is.
  3. Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.

Worked example

Using Your numbers: 2, 4, 4, 4, 5, 5, 7, 9; Your data is: A sample of a larger group.

  1. Mean: 40 ÷ 8 = 5
  2. Square each distance from the mean and add them: 32
  3. Divide by n − 1 = 7: variance = 4.571428571
  4. Take the square root: 2.138089935

Sample standard deviation: 2.138089935

Common questions

Why does the sample formula divide by n − 1?

A sample tends to underestimate the spread of the full population. Dividing by n − 1 instead of n corrects that bias. It is called Bessel’s correction.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean. Standard deviation is its square root, which puts the answer back in the original units.