Standard Deviation Calculator
Paste your numbers and get the standard deviation both ways — population (σ) and sample (s) — plus the mean, median, mode, range, variance and the full working, so you can see exactly where the answer comes from.
Try an example:
🕘 Your recent calculations
Step-by-step working
Population vs sample — the only tricky part
Standard deviation measures how spread out numbers are around their mean. The recipe is always the same — subtract the mean from every value, square the differences, average them, then take the square root — except for one fork in the road. If your data is the whole population (every value that exists), divide by n: that's the population standard deviation, σ. If your data is a sample drawn from something bigger, divide by n − 1 instead: that's the sample standard deviation, s. Dividing by n − 1 (Bessel's correction) inflates the result slightly, which compensates for samples tending to cluster closer to their own mean than the population does.
Not sure which you have? If you measured everyone or everything you care about — a class's test scores, a month of daily temperatures — it's a population. If you measured a subset to learn about a larger group — 200 voters out of a country, 30 parts off a production line — it's a sample.
Worked example
For 4, 8, 15, 16, 23, 42: the mean is 108 ÷ 6 = 18. The squared differences are 196, 100, 9, 4, 25 and 576, summing to 910. As a population: 910 ÷ 6 = 151.6667, and √151.6667 = σ = 12.3153. As a sample: 910 ÷ 5 = 182, and √182 = s = 13.4907. Same data, two honest answers — the question decides which one you report.
Frequently asked questions
Should I use population or sample standard deviation?
Use population (divide by n) when your data covers everything you are describing — all students in the class, all days in the year. Use sample (divide by n − 1) when your data is a subset used to estimate a bigger population — a survey sample, a batch sample, an experiment's trials. When in doubt in coursework, samples are the more common default, because real studies almost always sample.
Can standard deviation be zero or negative?
Zero, yes: if every value is identical, there is no spread and the SD is exactly 0. Negative, never — it is a square root of an average of squares, so the smallest possible value is 0. If a calculation seems to give a negative SD, a sign has gone wrong somewhere in the working.
What is the difference between variance and standard deviation?
Variance is the average squared difference — the value just before the square root. Standard deviation is its square root, which puts the measure back into the original units (points, kilograms, seconds), making it far easier to interpret and compare with the data. Statisticians use variance in formulas; humans usually report the standard deviation.
CalcLion's standard deviation calculator is an original tool. Results are shown to 4 decimal places; the underlying calculation uses full precision throughout.