Standard Deviation Calculator

Spread of a data set — sample or population — with the full working table.

Calculate

Type your numbers and press Calculate — the answer appears with the full step-by-step working.

Separate numbers with commas or spaces.
Answer
σ = 3.4503277967
Mean 16.7142857143 · Variance 11.9047619048 · n = 7
Value− MeanSquared
12-4.714285714322.2244897959
15-1.71428571432.9387755102
181.28571428571.6530612245
15-1.71428571432.9387755102
203.285714285710.7959183673
15-1.71428571432.9387755102
225.285714285727.9387755102

Step-by-step working

  1. Mean: (12 + 15 + 18 + 15 + 20 + 15 + 22) ÷ 7 = 16.7142857143
  2. Subtract the mean from each value and square it — squared differences add up to 71.4285714286
  3. Sample variance = 71.4285714286 ÷ 6 = 11.9047619048
  4. Standard deviation = √variance = 3.4503277967

Try a worked example — it loads straight into the calculator:

Formula

s = √( Σ(x − x̄)² ÷ (n − 1) ) · σ = √( Σ(x − x̄)² ÷ n )

Worked examples

Test scores (sample)

  1. Mean: (12 + 15 + 18 + 15 + 20 + 15 + 22) ÷ 7 = 16.7142857143
  2. Subtract the mean from each value and square it — squared differences add up to 71.4285714286
  3. Sample variance = 71.4285714286 ÷ 6 = 11.9047619048
  4. Standard deviation = √variance = 3.4503277967

Answer: σ = 3.4503277967 — Mean 16.7142857143 · Variance 11.9047619048 · n = 7

Daily temperatures (population)

  1. Mean: (28 + 30 + 31 + 29 + 33 + 30 + 27) ÷ 7 = 29.7142857143
  2. Subtract the mean from each value and square it — squared differences add up to 23.4285714286
  3. Population variance = 23.4285714286 ÷ 7 = 3.3469387755
  4. Standard deviation = √variance = 1.8294640678

Answer: σ = 1.8294640678 — Mean 29.7142857143 · Variance 3.3469387755 · n = 7

About this calculator

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values huddle close to the average; a large one means they scatter widely. It is the standard language of spread in science, finance, quality control and exam analysis.

The one decision that matters is sample versus population: if your numbers are the whole group, divide by n; if they are a sample standing in for a bigger group, divide by n − 1 (Bessel's correction), which gives a slightly larger, fairer estimate. The working table shows every squared difference so you can check each line.

How to use it

  1. Paste or type your numbers, separated by commas.
  2. Choose sample or population.
  3. Calculate — mean, variance and standard deviation appear with the full table.

Frequently asked questions

Sample or population — which do I pick?

Population when your data is the entire group you care about (every student in this class). Sample when it is a subset used to estimate a bigger group (30 voters surveyed to predict an election). When unsure, sample is the safer default.

What does a standard deviation of 0 mean?

Every value is identical — there is no spread at all.