Standard Deviation Calculator
Measure spread around the mean of a numeric list. Choose Population for the complete group you intend to describe or Sample to estimate a larger population from observations.
Standard deviation in short
- Find the mean, square each value's distance from it, average those squares (variance), then take the square root.
- Population SD divides by N; sample SD divides by N − 1, which gives a slightly larger result.
- Use sample SD when your data is a sample of a bigger group.
- About 68% of normally distributed values lie within 1 SD of the mean, 95% within 2.
How to use the Standard Deviation Calculator
- Enter numbers separated by commas, spaces, semicolons or line breaks.
- Choose Population when the entered values represent the full population or Sample when they are a sample from a larger population.
- The calculator finds the arithmetic mean of the data.
- Each value's difference from the mean is squared and the squared differences are summed.
- Population variance divides by n, while sample variance divides by n − 1. Standard deviation is the square root of variance.
Population versus sample spread
Population variance divides by n; sample variance divides by n−1 and requires at least two values. Blank separators do not add observations and invalid tokens are rejected. Use unformatted numbers in consistent units; a comma is a separator.
Examples
Population standard deviation
For the population data 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5 and the population standard deviation is 2.
Sample calculation
When the values are treated as a sample, the denominator is n − 1 rather than n, producing a slightly larger variance and standard deviation.
Identical values
If every value is identical, every deviation from the mean is zero, so the variance and standard deviation are both zero.
Check the result in context
Whitespace check: “ 2, 4, 6 ” contains 3 observations, sum 12 and mean 4. Population SD = √(8/3) ≈ 1.632993162; sample SD = 2.
Worked examples
| Data | Mean | Population SD | Sample SD |
|---|---|---|---|
| 2, 4, 4, 4, 5, 5, 7, 9 | 5 | 2.000 | 2.138 |
| 10, 12, 23, 23, 16, 23, 21, 16 | 18 | 4.899 | 5.237 |
| 1, 2, 3, 4, 5 | 3 | 1.414 | 1.581 |
Frequently asked questions
What does standard deviation measure?
Standard deviation measures how spread out values are around their arithmetic mean. A smaller value indicates tighter clustering around the mean.
What is the difference between population and sample standard deviation?
Population standard deviation divides the squared-deviation total by n. Sample standard deviation uses n − 1 to estimate variability in a larger population.
What is variance?
Variance is the average squared distance from the mean under the chosen population or sample formula. Standard deviation is the square root of variance.
Can standard deviation be negative?
No. Squared deviations are nonnegative, so variance and standard deviation cannot be negative.
Does order matter when calculating standard deviation?
No. Reordering the same values does not change the mean, variance or standard deviation.
Why do sample and population SD differ on the same data?
They use different divisors. For 2, 4, 6, squared deviations total 8; population variance is 8/3 and sample variance is 8/2 = 4. Sample SD is therefore 2.
More math tools
Average Calculator
Find the mean average of numbers.
Open tool →Percentage Calculator
Calculate percentages, increases and decreases.
Open tool →Random Number Generator
Generate a random number within a custom range.
Open tool →Ratio Calculator
Simplify ratios and find equivalent ratios.
Open tool →Quadratic Formula Calculator
Solve quadratic equations and find real or complex roots.
Open tool →Exponent Calculator
Calculate powers using positive, negative or decimal exponents.
Open tool →