The formula
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
- Enter your numbers.
- Choose your data is.
- 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.
- Mean: 40 ÷ 8 = 5
- Square each distance from the mean and add them: 32
- Divide by n − 1 = 7: variance = 4.571428571
- 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.