Standard Deviation Calculator
Population and sample standard deviation, variance and mean.
ShowHide the working
- 1Mean = 18
- 2Sum of squared deviations ÷ (N − 1) = variance = 27.428571
- 3√variance = 5.237229
σ = √(Σ(x − μ)² ÷ N), s = √(Σ(x − x̄)² ÷ (N − 1))How it works
Standard deviation measures spread around the mean. Divide by N for a whole population, by N−1 for a sample.
Example
For that eight-value set the sample standard deviation is about 5.24.
Runs on this deviceSent to a server: 0 bytes
How it works
- Type in your numbers.
- The answer updates as you type.
- Change any figure to compare. Nothing you enter is sent anywhere.
Standard deviation says how spread out a set of numbers is around their mean. Two datasets can share an average and look nothing alike; this is the number that tells them apart.
Population versus sample
Both start the same way: find the mean, square each value's distance from it, and add those up. Then population standard deviation divides by n, while sample standard deviation divides by n − 1 and takes the square root of the result. That n − 1 is Bessel's correction, and it exists because a sample's own mean sits closer to its points than the true population mean does, which would otherwise make the spread look smaller than it is.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared differences sum to 32. As a whole population: √(32 ÷ 8) = 2. As a sample: √(32 ÷ 7) ≈ 2.14. Same eight numbers, two defensible answers.
Pick the right one
Use the population formula only when your numbers *are* the entire group you care about — every pupil in one class, say. If they are a sample standing in for something larger, use the sample formula. Getting this backwards is the most common error in introductory statistics, and it is also why two calculators can disagree about the same data and both be right.
Questions
Should I use population or sample standard deviation?
Sample, unless you have measured every member of the group you are drawing conclusions about. If your numbers represent a wider population you have not fully measured, the n − 1 version is the correct one.
What is variance?
Variance is the standard deviation before the square root — the mean of the squared distances from the average. Standard deviation is usually reported instead because it is in the same units as the original data, where variance is in squared units.
Is the Standard Deviation Calculator free to use?
Yes. The Standard Deviation Calculator is completely free, with no account, no sign-up and no usage limits.
Does my data leave my device?
No. The Standard Deviation Calculator runs entirely in your browser. Nothing you type is uploaded, logged or stored on a server.
Can I use the Standard Deviation Calculator on my phone?
Yes. The page works in any modern mobile or desktop browser, and there is nothing to install.
What else is in Statistics?
Mean, deviation, regression, probability and distributions. You can browse the full Statistics category for related calculators.