โ† All guides

How to Calculate Standard Deviation (Step by Step)

Updated June 2026

Statistics Calculator

Mean, median, mode & std dev.

Open the free tool โ†’

Standard deviation tells you how spread out a set of numbers is. A small value means they're clustered near the average; a large one means they're scattered.

The steps

  1. Find the mean (average) of your numbers.
  2. Subtract the mean from each number and square the result.
  3. Find the average of those squared differences โ€” that's the variance.
  4. Take the square root of the variance.

Worked example

Numbers: 4, 8, 6, 5, 3. Mean = 26 รท 5 = 5.2.

Squared differences: (4โˆ’5.2)ยฒ=1.44, (8โˆ’5.2)ยฒ=7.84, (6โˆ’5.2)ยฒ=0.64, (5โˆ’5.2)ยฒ=0.04, (3โˆ’5.2)ยฒ=4.84. Sum = 14.8. Variance = 14.8 รท 5 = 2.96. Standard deviation = โˆš2.96 โ‰ˆ 1.72.

Population vs sample

If your numbers are the entire group, divide by the count (n) โ€” that's population standard deviation. If they're a sample used to estimate a bigger group, divide by (n โˆ’ 1) instead. The sample version is slightly larger to account for the uncertainty.

Statistics Calculator

Mean, median, mode & std dev.

Open the free tool โ†’

Frequently asked questions

When do I use n โˆ’ 1?

Use n โˆ’ 1 (sample) when your data is a subset you're using to estimate a larger population. Use n (population) when you have every value.

What's the difference between variance and standard deviation?

Variance is the average squared difference from the mean; standard deviation is its square root, which puts it back in the original units.

More guides