How this is calculated
Find the mean. Subtract it from each value and square the differences. Sum those squares. Divide by n for the population standard deviation, or by n − 1 for the sample. Take the square root.
Worked example on 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4, 16, summing to 32. Population variance is 32 ÷ 8 = 4, so the population standard deviation is 2. Sample variance is 32 ÷ 7 ≈ 4.571, giving a sample standard deviation of about 2.138.
The deviations are squared rather than taken as absolute values for two reasons: it prevents positive and negative deviations cancelling, and it makes the resulting measure differentiable, which is what allows standard deviation to underpin most of statistics.
Sample or population — which divisor to use
Use the population formula, dividing by n, only when your numbers are the complete group you are describing: every employee in a company, every item in a finished batch, all twelve months of a year.
Use the sample formula, dividing by n − 1, when your numbers are a subset used to estimate something about a larger group. This is the more common case, and it is the default in most statistical software.
The n − 1 adjustment is called Bessel's correction. It exists because a sample's own mean sits closer to the sample's values than the true population mean does, which systematically understates the spread. Dividing by a smaller number compensates. The effect is large for small samples and negligible for large ones — at n = 5 the correction raises the result by about 12%, at n = 100 by about 0.5%.
Reading a standard deviation
For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. This is the empirical rule, and it is what makes standard deviation intuitively meaningful rather than just a number.
It is expressed in the same units as your data, which makes it directly interpretable — a standard deviation of 2 kg means something concrete in a way that variance, in kilograms squared, does not. For comparing spread between datasets in different units, divide the standard deviation by the mean to get the coefficient of variation.
Standard deviation is sensitive to outliers, because squaring makes distant values dominate the sum. A single extreme value can inflate it substantially, which is worth checking before drawing conclusions from a spread that looks surprisingly large.
How to use the standard deviation calculator
- Paste your numbers. Commas, spaces or new lines all work, so data copied from a spreadsheet column pastes directly.
- Read both standard deviations. Sample and population are shown together. Pick the one matching whether your data is a subset or the whole group.
- Check the mean and count. Both are shown alongside. If the count is not what you expected, a separator in your input was not parsed as you assumed.