Standard Deviation Calculator with Steps

Paste your data, choose sample or population, and get the standard deviation, variance, mean, sum of squares, standard error and coefficient of variation — with every step shown in a table.

Grades 9–12FreeNo sign-up

Try:

Tip: paste a column straight from a spreadsheet. Entries that aren’t numbers are skipped and reported.

How to use the standard deviation calculator

  1. Type or paste your numbers, separated by commas, spaces, semicolons or new lines.
  2. Choose Sample if your data is only part of a bigger group, or Population if you have every member of the group.
  3. Read the standard deviation at the top, then follow the steps and the deviation table underneath. The number line shows your data with the mean and a shaded band one standard deviation either side of it.

What is standard deviation?

Standard deviation measures how spread out a data set is. Roughly, it is the typical distance between a value and the mean. A small standard deviation means the values are bunched close to the mean; a large one means they are scattered widely. Two classes can both average 75% on a test, but if one class has a standard deviation of 4 and the other 15, the second class has a much wider mix of high and low scores.

The formulas: σ and s

PopulationSample
Symbolσ (sigma)s
Mean symbolμ (mu)x̄ (x-bar)
Varianceσ² = Σ(x − μ)² ÷ Ns² = Σ(x − x̄)² ÷ (n − 1)
Standard deviationσ = √σ²s = √s²

The symbol Σ (capital sigma) means “add them all up”. Both formulas follow the same five steps:

  1. Find the mean.
  2. Subtract the mean from each value to get the deviations.
  3. Square each deviation (this removes the minus signs).
  4. Add the squares — the sum of squares — and divide by N or by n − 1. That gives the variance.
  5. Take the square root to get back to the original units.

Why divide by n − 1 for a sample?

A sample is usually less spread out than the population it came from, because it is unlikely to include the most extreme members. Dividing by n − 1 instead of n makes the answer slightly bigger to correct for that. This is called Bessel’s correction. If your teacher or textbook does not say which to use, a list of measurements from an experiment or a survey is almost always a sample.

Worked example

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)

Mean: 40 ÷ 8 = 5.

Deviations: −3, −1, −1, −1, 0, 0, 2, 4.

Squares: 9, 1, 1, 1, 0, 0, 4, 16 → sum of squares = 32.

Population: variance = 32 ÷ 8 = 4, so σ = √4 = 2.

Sample: variance = 32 ÷ 7 ≈ 4.571, so s = √4.571 ≈ 2.138.

The other numbers in the results

The 68–95–99.7 rule

For bell-shaped (normal) data, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. To see exactly how many standard deviations a single value is from the mean, use the z-score calculator. To get the mean and median of the same data, use the mean, median and mode calculator.

Frequently asked questions

What is the difference between sample and population standard deviation?

Population standard deviation (σ) divides the sum of squared deviations by N and is used when you have data for every member of the group. Sample standard deviation (s) divides by n − 1 and is used when the data is only a sample of a larger group.

How do you calculate standard deviation step by step?

Find the mean, subtract it from each value, square each result, add the squares, divide by N (population) or n − 1 (sample) to get the variance, then take the square root.

Why do we divide by n − 1 for a sample?

A sample tends to underestimate the spread of the full population. Dividing by n − 1 instead of n, known as Bessel’s correction, makes the estimate slightly larger and more accurate on average.

Can standard deviation be negative or zero?

It can never be negative because it is the square root of an average of squares. It is zero only when every value in the data set is exactly the same.

What is the difference between variance and standard deviation?

Variance is the average squared deviation from the mean. Standard deviation is the square root of the variance, which puts it back in the same units as the data.

What is a good or low standard deviation?

It depends on the data. A standard deviation is small or large only compared with the mean and the context. The coefficient of variation, standard deviation divided by the mean, helps you compare.