Standard Deviation Calculator

Sample and population standard deviation, variance and mean.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Standard deviation measures how spread out a data set is — the typical distance of each value from the mean. A small value means the numbers cluster tightly; a large one means they are widely scattered. Paste your numbers, choose sample or population, and this calculator returns the standard deviation, variance, and mean.

How it works

The calculator follows the textbook steps:

  1. Mean = sum of values ÷ count (n).
  2. For each value, compute (value − mean)² and sum them — the sum of squared differences.
  3. Variance = that sum ÷ n for a population, or ÷ (n − 1) for a sample.
  4. Standard deviation = √variance.

Sample mode requires at least two values (because it divides by n − 1); population mode needs at least one.

Example

For the data set 10, 12, 23, 23, 16, 23, 21, 16 (n = 8):

  • Mean = 144 ÷ 8 = 18
  • Sum of squared differences = 64 + 36 + 25 + 25 + 4 + 25 + 9 + 4 = 192
  • Sample variance = 192 ÷ 7 ≈ 27.43, sample SD ≈ 5.24
  • Population variance = 192 ÷ 8 = 24, population SD ≈ 4.90
MeasureSample (n − 1)Population (n)
Variance27.4324.00
Std deviation5.244.90
Mean1818

Everything is computed in your browser, so nothing you enter is uploaded.

Ad placeholder (rectangle)