What standard deviation measures
Standard deviation describes how far values typically sit from their mean. A small value means the numbers cluster tightly around the average; a large value means they are spread out. It is in the same units as your data, so the standard deviation of test scores is in points and of delivery times is in minutes.
The default example is 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5, and the squared distances from the mean add up to 32. Divided by 8 values, the population variance is 4 and the population standard deviation is 2. Divided by 7 instead, the sample variance is about 4.571 and the sample standard deviation is about 2.138.
Sample or population
Use the population standard deviation, written σ, when your list contains every value you care about, such as the scores of everyone in one class. Use the sample standard deviation, written s, when the list is a sample drawn from a larger group and you want to estimate that group's spread, such as a survey of some customers.
The sample formula divides by n − 1 instead of n. This correction, often called Bessel's correction, makes the sample variance an unbiased estimate of the population variance, because a sample's values tend to sit a little closer to their own mean than to the true population mean. With large lists the two results are nearly the same.
How the calculation works
First the calculator finds the mean by adding the values and dividing by the count. Then it adds up the squared difference between each value and the mean, divides by n − 1 or n to get the variance, and takes the square root to get the standard deviation. It uses a numerically stable running method, so long lists and large values with small differences stay accurate.
The sample standard deviation needs at least two numbers, because with one value there is no spread to estimate. If every value is the same, both standard deviations are zero. Results show six significant digits; the calculation itself keeps full precision.
Reading the result
For data that roughly follow a bell-shaped curve, about 68% of values fall within one standard deviation of the mean and about 95% within two. That rule of thumb does not hold for skewed data or lists with outliers, where the five-number summary or the mean absolute deviation can describe spread more robustly.
To compare the spread of data sets with different units or very different means, divide the standard deviation by the mean to get the coefficient of variation. The related tools below calculate it, along with other common measures of spread.