Standard Deviation Calculator
Measure how spread out your numbers are — with the mean included.
Calculate the standard deviation of any list of numbers to see how spread out the values are around the mean. The calculator shows the mean alongside, so you get the full picture of your dataset in one step.
How it's calculated
Start with the ordinary average. Every value in your list is added together and the total is divided by the count, the number of values you supplied, giving the mean, the balancing point of the data. The standard deviation then asks a follow-up question that the mean alone cannot answer: on a typical occasion, how far does a value stray from that balancing point? Two classes can share the same mean score while one bunches tightly around it and the other swings widely, and the standard deviation is what exposes that difference.
To measure that straying, the calculator subtracts the mean from each individual value, producing a set of deviations that are positive for above-average values and negative for below-average ones. Simply averaging those deviations would be useless, because they always cancel out to zero, so each deviation is squared instead. Squaring makes every contribution positive and also punishes large deviations disproportionately: a value twice as far from the mean contributes four times as much. The squared deviations are then averaged to give the variance, and taking the square root of the variance returns the measure to the original units of your data, which is the standard deviation itself.
One detail defines this particular calculator: when the squared deviations are averaged, the divisor is N, the full count of values, and not N minus 1. That makes this the population standard deviation, the right choice when your list is the complete set you care about. Dividing by N minus 1 instead gives the sample standard deviation, a slightly larger figure used when a small sample is standing in for a bigger group that was never fully measured.
Worked example
Use the list 2, 4, 4, 4, 5, 5, 7, 9. Their total is 40, so the mean is 40 divided by 8, which is 5. Subtracting 5 from each value gives deviations of minus 3, minus 1, minus 1, minus 1, 0, 0, 2 and 4, and squaring those gives 9, 1, 1, 1, 0, 0, 4 and 16, which sum to 32. The variance is 32 divided by 8, which is 4, and the square root of 4 is exactly 2, so the standard deviation is 2. Had the same numbers been treated as a sample, the variance would divide 32 by 7 instead, giving a standard deviation of about 2.14, close but noticeably larger.
When to use it
- Summarising the consistency of a set of exam results for one whole class, where every pupil sat the test and the list in front of you is the entire group of interest.
- Comparing the steadiness of two machines, athletes or production days whose averages look similar, to see which one delivers its typical result reliably and which one only reaches it by swinging around it.
- Describing a complete month of daily temperatures, rainfall or sales figures, when the month itself is the whole story and there is no larger period the figures are meant to represent.
Common mistakes
- Comparing this result with a spreadsheet and deciding one of them must be broken. The sample spreadsheet function divides by N minus 1 and returns a slightly larger number, while the population function matches this calculator exactly.
- Expecting a negative answer when values fall below the mean. Deviations can be negative, but they are squared before averaging and the final step is a square root, so the standard deviation itself can never drop below zero.
- Reading a large standard deviation as proof that the data contains errors. Genuinely varied measurements, such as house prices across a whole city, produce large values quite honestly; spread describes the data, it does not grade it.
- Feeding in a single value, or several identical values, and being surprised by a result of zero. With nothing varying, there is no spread to measure, and zero is the correct description rather than a fault in the calculation.
Frequently asked questions
What does the standard deviation tell me?
It measures spread. A low standard deviation means values cluster near the mean; a high one means they are widely scattered. The classic dataset 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 5 and a standard deviation of 2.
Population or sample standard deviation?
This calculator uses the population formula (divides by N). If you need the sample formula (divides by N−1), multiply the result by √(N/(N−1)).
Can the standard deviation be negative?
No — it's a square root of squared distances, so it's always zero or positive. Zero means every value is identical.
What is the difference between variance and standard deviation?
Variance is the average of the squared deviations from the mean, while standard deviation is the square root of that variance. Standard deviation is quoted more often because it is measured in the same units as your original data, whereas variance is measured in squared units.
Does one extreme value change the standard deviation much?
Yes, it can. Because deviations are squared, a single value far from the mean contributes much more than several values sitting close to it. One unusual entry in a short list can lift the result noticeably, so it is worth checking extreme values were entered correctly.
How many numbers do I need for a meaningful result?
The calculation works with any list of two or more numbers, and even a single number returns zero. The result becomes a more trustworthy description of a pattern as the list grows, because each additional value gives the mean and the spread more evidence to rest on.
Another worked example: eight days of output counts
Take a different list from the classroom example above: the units finished on eight consecutive production days — 12, 15, 14, 10, 18, 15, 16, 12. The values total 112, so with N = 8 the mean is 112 ÷ 8 = 14 units a day, the figure the calculator shows alongside the standard deviation. Subtracting 14 from each value gives deviations of −2, 1, 0, −4, 4, 1, 2 and −2. Squaring them gives 4, 1, 0, 16, 16, 1, 4 and 4, which sum to 46. Because this calculator divides by the full count N, the variance is 46 ÷ 8 = 5.75, and the standard deviation is √5.75 ≈ 2.40. The eight days listed are the complete period being described — not a sample drawn from a longer run — which is precisely the situation the population divisor is for.
Interpreting 2.40 in the units of the data
The result is measured in units per day, the same units as the list itself, so it reads as a typical distance from the 14-a-day average rather than an abstract score. Set it against the range of the data, which runs from 10 to 18 — a span of 8. The standard deviation is far smaller than that span because six of the eight days landed within 2 units of the mean; only the 10-unit and 18-unit days strayed by 4. That is the comparison this calculator supports well: run a second complete week through the same Numbers field, and if its mean is also near 14 but its standard deviation comes back at 4 or 5, the second week was the less steady one even though its average output matched. The mean alone would call the two weeks identical.
Divisor and input details specific to this calculator
Two of the squared deviations — the 16 from the 10-unit day and the 16 from the 18-unit day — contribute 32 of the 46 total, about 70% of all the spread from just two days, which is why one mistyped extreme value in a short list moves this result so much; check the ends of your list first. If you compare the answer with a spreadsheet, match the function to the divisor: a sample function dividing that same 46 by N − 1 = 7 would report about 2.56 instead of 2.40, and neither figure is wrong — they answer different questions. The Numbers field accepts values separated by commas, semicolons, spaces or line breaks, and anything that is not a number is ignored rather than treated as zero. The calculator returns only the standard deviation and the mean; if you need the variance, square the standard deviation it gives you — 2.40² brings you back to about 5.75.