Standard deviation calculator
Both forms are shown, because picking the wrong one is the usual error. Use the population form when your numbers are the whole group; use the sample form when they are a sample of something larger.
Separate them with spaces, commas, semicolons or new lines. Paste a column from a spreadsheet directly.
Result
- Population standard deviation
- 2
- Sample standard deviation
- 2.13809
- Population variance
- 4
- Sample variance
- 4.571429
- Mean
- 5
- Median
- 4.5
- Count
- 8
- Range
- 7
- Coefficient of variation
- 40%
How this is calculated
The only difference is the divisor. A sample's own mean sits closer to its own points than the true population mean does, so dividing by n would understate the spread; dividing by n − 1 corrects for that. This is Bessel's correction, and it matters most when n is small.
- Σ
- — the sum over every value
- n
- — how many values there are
- variance
- — the mean squared distance from the mean
- standard deviation
- — the square root of the variance, back in the original units
Worked example
Take 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5, and the squared distances from it are 9, 1, 1, 1, 0, 0, 4 and 16, which sum to 32. Treating these eight numbers as the whole population gives a variance of 32 ÷ 8 = 4 and a standard deviation of 2. Treating them as a sample gives 32 ÷ 7 ≈ 4.571 and a standard deviation of about 2.138 — noticeably larger, because with only eight values the correction is substantial.
How to use it
- Paste or type your numbers in any format with any common separator.
- Decide whether your data is the whole group or a sample of a larger one, and read the matching figure.
- Compare the standard deviation to the mean: the coefficient of variation expresses the spread as a percentage, which makes different datasets comparable.
Limitations and assumptions
- Standard deviation is sensitive to outliers, because distances are squared before averaging. One extreme value can dominate the result; compare the mean and median to spot it.
- With a single value there is no sample standard deviation at all — the divisor would be zero. The tool reports that rather than showing zero, which would wrongly suggest no spread was measured.
- This is descriptive statistics for the numbers you entered. It does not test a hypothesis, fit a distribution or give a confidence interval.
- A standard deviation only has its familiar meaning — about 68% of values within one of the mean — if the data is roughly normally distributed. For skewed data it still measures spread, but that rule of thumb does not apply.
Questions
Should I use the population or the sample formula?
Use the population form when your numbers are the entire group you care about — every machine in the factory, every pupil in the class. Use the sample form when they are a subset standing in for something larger, which is the usual case in research and quality control.
Why divide by n − 1 for a sample?
Because the sample mean is computed from the same data, it sits closer to those points than the true mean does, so the squared distances come out slightly too small. Dividing by n − 1 instead of n compensates. It is called Bessel's correction, and its effect shrinks as the sample grows.
What is the difference between variance and standard deviation?
The standard deviation is the square root of the variance. Variance is in squared units, which is hard to interpret; taking the root brings it back to the units of the original data, which is why it is the figure usually quoted.
What is a "good" standard deviation?
There is no universal answer, because it depends on the scale of the data. The coefficient of variation — the standard deviation as a percentage of the mean — is the figure to compare across datasets with different units or magnitudes.
Related calculators
- Average calculatorMean, median, minimum, maximum, range, sum and count from one list of numbers, with the sorted list shown so the median is verifiable.
- Percentage calculatorThree percentage questions in one tool: a share of a number, what share one number is of another, and the change between two numbers.
This page has not yet had an editorial review.
