Skip to content
Owais Khan Software Reviews

Standard Deviation Calculator

Standard deviation, variance, mean, median and mode of your numbers, with the working.

Calculate standard deviation

Sample standard deviation (s)
2.1381
Population standard deviation (σ)
2
Mean
5
Sample variance (s²)
4.5714
Population variance (σ²)
4
Count (n)
8
Sum
40
Sum of squared deviations
32
Median
4.5
Mode
4
Range
2 to 9 (7)
Standard error of the mean
0.7559
Coefficient of variation
40%

Working

Each value, its distance from the mean and the squared distance
Value (x)x − mean(x − mean)²
2-39
4-11
4-11
4-11
500
500
724
9416

Everything stays on this device — what you enter never leaves your browser.

Standard deviation calculator

Paste your numbers and this standard deviation calculator returns the sample standard deviation (2.1381) and the population standard deviation (2) for 2, 4, 4, 4, 5, 5, 7, 9, with the mean 5, and shows each step of the working.

Variance calculator

The same results give the variance calculator figures too: a sample variance of 4.5714 and a population variance of 4. The standard deviation is the square root of the variance.

Mean, median and mode

For mean median mode the example gives 5, 4.5 and 4. For the numbers 1 to 5 the standard deviation is 1.4142 (population) or 1.5811 (sample). To turn a spread into proportions, try the ratio calculator; for survey scores see the NPS calculator.

Frequently asked questions

How do I calculate standard deviation?
Find the mean, subtract it from every value, square those differences, add them up, divide by n (population) or n − 1 (sample), and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, the squared differences add up to 32, the population standard deviation is √(32 ÷ 8) = 2, and the sample standard deviation is √(32 ÷ 7) = 2.1381.
What is the difference between sample and population standard deviation?
Use the population formula, dividing by n, when your data is every member of the group you care about. Use the sample formula, dividing by n − 1, when the data is a sample from a larger group and you want to estimate that group's spread; the n − 1 corrects for the sample being closer to its own mean than to the true mean. For the example, 2 (population) and 2.1381 (sample).
What is variance and how does it relate to standard deviation?
Variance is the average squared distance from the mean, and standard deviation is its square root, which puts the spread back in the same units as the data. The example has a population variance of 4 and a sample variance of 4.5714. Variances add across independent variables, which is why statisticians work with them; standard deviations are easier to read.
What is a good standard deviation?
There is no good or bad value on its own; it depends on the scale of the data. A standard deviation of 2 around a mean of 5 is 40% of the mean, which is the coefficient of variation shown in the results. Compare standard deviations only between data on the same scale, and use the coefficient of variation to compare spread across different scales.
What is the 68-95-99.7 rule?
For roughly bell-shaped (normal) data, about 68% of values lie within one standard deviation of the mean, about 95% within two and about 99.7% within three. With a mean of 5 and a standard deviation of 2, that says most values fall between 3 and 7. The rule does not hold for strongly skewed data.
Is my data uploaded or processed on a server?
No. The calculations run inside this page, so what you enter never leaves your browser, and there is no sign-up. That is enforced rather than promised: this site’s test suite scans the shipped HTML for every browser API capable of sending data off the page and fails the build if it finds one.