Standard Deviation Calculator
Population and sample standard deviation and variance of any dataset — with the full deviations table and a mean ± SD chart.
Population standard deviation
Note: Use the population figures when your data is the whole set, and the sample figures when it is a subset standing in for a larger whole.
Standard Deviation: The Typical Distance From the Mean
Standard deviation measures spread: how far values typically sit from their mean. Square every deviation (so negatives do not cancel), average the squares to get the variance, then take the square root to return to the original units. The one real choice is the denominator: divide by n for a population (you have every value there is) or by n − 1 for a sample (you measured a subset and want an unbiased estimate of the whole). This calculator reports both, and the table shows every value, its deviation and its squared deviation so the recipe is fully visible.
Worked Example
The classic textbook set 2, 4, 4, 4, 5, 5, 7, 9 has mean 5. Its squared deviations sum to 32, so the population variance is 32 / 8 = 4 and the population standard deviation is exactly 2. As a sample, the variance is 32 / 7 ≈ 4.57 and the standard deviation ≈ 2.14 — dividing by one fewer inflates the estimate slightly, correcting for the fact that a sample tends to under-represent the extremes.
Which One Should You Report?
All the data that exists (every student in the class, every day this year) → population. A sample standing in for a bigger whole (100 voters for a country, 30 parts from a production run) → sample. Software hides the choice behind names: Excel STDEV.P vs STDEV.S, numpy std with ddof 0 vs 1. Most published research uses the sample version; most "spread of my data" questions want the population version. This page shows both precisely so the choice is yours and visible.
Frequently Asked Questions
Should I use population or sample standard deviation?
Population when your data is the complete set; sample (dividing by n - 1) when it is a subset estimating a larger whole. This calculator reports both so the choice is explicit.
Why square the deviations?
Raw deviations cancel out — they always sum to zero. Squaring keeps the sizes, and the square root at the end returns the answer to the original units.
What does a standard deviation of 2 mean in the example?
Values in 2, 4, 4, 4, 5, 5, 7, 9 typically sit about 2 units from their mean of 5. Roughly two thirds of a normal dataset lies within one standard deviation of the mean.
Is variance just standard deviation squared?
Exactly. Variance is the averaged squared deviation; standard deviation is its square root. Variance adds up neatly in theory, standard deviation reads better in practice.