Standard Deviation Calculator

Sample and population standard deviation with steps

Calculate the standard deviation and variance of a data set - sample or population - with the mean, standard error, coefficient of variation and a step-by-step table.
Share
Try an example:
Your result will appear here as you type.

About Standard Deviation Calculator

Formula

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

σ = √(Σ(x − μ)² ÷ n)

Worked examples

2, 4, 4, 4, 5, 5, 7, 9

Mean 5, sum of squared deviations 32. Sample SD √(32 ÷ 7) = 2.138; population SD √(32 ÷ 8) = 2.

How it works

  1. Find the mean, then each value's deviation from it.
  2. Square the deviations and add them up.
  3. Divide by n − 1 (sample) or n (population) for the variance; the square root is the standard deviation.

What you need

  • At least two numbers.

Tips

  • About 68% of normally distributed data lies within 1 SD of the mean, 95% within 2.

Limitations

  • Shows up to 200 rows in the table.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Variance
The average squared deviation.
Standard error
SD ÷ √n - how precisely the sample mean estimates the true mean.

Frequently asked questions

Why divide by n − 1 for a sample?+

A sample mean is closer to its own data than the true mean is, so dividing by n would underestimate the spread (Bessel's correction).

Was this calculator helpful?