Standard Deviation Calculator
Calculators · Added 15 August 2026
Standard deviation measures how spread out a set of numbers is. This calculator shows the whole working — the mean, each squared deviation summed, the divisor and the square root — so the result can be checked by hand, and it makes you choose explicitly between the sample and population formulas.
How to use the standard deviation calculator
- 1Paste your data, separated by commas, spaces or new lines.
- 2Choose sample or population. Sample is right unless you genuinely have every member of the group.
- 3Press Calculate.
- 4Follow the working panel: mean, sum of squared deviations, divisor, variance, then the square root.
- 5The spread panel adds quartiles and the interquartile range, which describe the shape rather than just the width.
Examples
The textbook dataset
- Input
- 2, 4, 4, 4, 5, 5, 7, 9 as a population
- Result
- Standard deviation exactly 2, variance 4
This set is used in most textbooks precisely because it comes out to a whole number.
The same data as a sample
- Input
- The identical numbers, treated as a sample
- Result
- Standard deviation 2.1381 — higher, because it divides by 7 rather than 8
A 7% difference on eight values. On three or four values the gap is far larger, which is why the choice matters.
Comparing spread across different scales
- Input
- A dataset with mean 1000 and standard deviation 50
- Result
- Coefficient of variation 5%
Standard deviation alone cannot compare datasets with different means. The coefficient of variation can.
About the standard deviation calculator
What the formula is actually doing
Every step of the standard deviation calculation exists for a reason, and the sequence is easier to remember once the reasons are clear. Start with each value's distance from the mean. Those distances sum to exactly zero by construction — that is what a mean is — so they have to be made positive before they can be added up meaningfully.
Squaring is how that is done, and it is not the only option. Taking absolute values would also work and gives a perfectly respectable measure called the mean absolute deviation. Squaring wins because it is differentiable, which makes it tractable in the wider mathematics built on top of it, and because it weights large deviations more heavily — a single point far from the mean matters more than several points slightly off.
Summing the squares, dividing to get an average, and then taking the square root to undo the squaring gives a number in the original units. That final square root is why standard deviation rather than variance is what appears in reports: 'about 2 centimetres of spread' is a sentence, '4 square centimetres of spread' is not.
Reading spread alongside the average
An average without a spread is half a description. Two production lines both averaging 100 grams per unit are not equivalent if one has a standard deviation of 1 gram and the other 15 — the first is under control and the second is producing a lot of underweight and overweight units around a respectable-looking mean.
This is why the coefficient of variation is worth knowing: it expresses the standard deviation as a percentage of the mean, which makes spread comparable across datasets measured on completely different scales. A 50-gram deviation is enormous on a 100-gram product and trivial on a 100-kilogram one.
The quartiles do a related job differently. Where standard deviation summarises spread in one symmetric number, the interquartile range describes the middle half of the data and is unaffected by extremes. When a dataset has outliers, comparing the two is informative: a standard deviation much larger than the interquartile range suggests the extremes are doing most of the work, and that a median-based summary would describe the data more honestly.
Frequently asked questions
Sample or population — which do I need?
Why divide by n − 1 for a sample?
What is variance, and why not just use it?
What does the standard deviation actually tell me?
Why do my quartiles differ from another calculator?
Related tools
Average Calculator
Calculators
Find the mean, median, mode and range of a list of numbers, pasted in any format.
Percentage Calculator
Calculators
Five percentage calculations in one place — including percentage change and reverse percentages.
Scientific Calculator
Calculators
A full scientific calculator with trigonometry, logarithms, powers and memory keys.