Standard Deviation Calculator

Standard deviation measures how far values typically are from their mean. Enter your numbers and choose whether they are a sample or the whole population.

Separate numbers with commas or spaces.
The data is a
Results update as you type.

Sample standard deviation (s)

2.138089935

of 8 values

Variance
4.571428571standard deviation²
If this were the whole population
2divide by N
Mean
5
Sum of squared deviations
32
Coefficient of variation
42.762%standard deviation ÷ mean
Standard error of the mean
0.755928946s ÷ √n
Deviations from the mean
Deviations from the mean
xx − mean(x − mean)²
2−39
4−11
4−11
4−11
500
500
724
9416

About this calculator

The working shows each step: the mean, the squared deviations, their sum, the variance and its square root.

How to use it

  1. Enter the numbers.
  2. Choose sample or population.
  3. Read the standard deviation and the working.

The formula

s = √(Σ(x − x̄)² ÷ (n − 1)); σ = √(Σ(x − μ)² ÷ N)
x̄, μ
mean
n, N
number of values

Worked example

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

  1. The mean is 5 and the squared deviations add to 32.
  2. Population: √(32 ÷ 8) = 2. Sample: √(32 ÷ 7) = 2.138.

What the result means

In roughly bell-shaped data, about 68% of values lie within one standard deviation of the mean and 95% within two.

Assumptions

  • Real numbers, at least two of them.

Limitations

  • Very large or very small values are shown in scientific notation.

Frequently asked questions

Should I use sample or population?

Use sample (n − 1) when your data are a sample from a bigger group, which is most of the time. Use population (N) only when you have every member of the group.

Why divide by n − 1?

A sample’s values sit closer to the sample mean than to the true mean, so dividing by n slightly underestimates the spread. Dividing by n − 1 (Bessel’s correction) fixes that on average.

What is the coefficient of variation?

Standard deviation divided by the mean, as a percentage. It compares spread between data sets with different averages or units.

Last reviewed on 6 October 2026. Found a mistake? Tell us.