Type or paste your numbers, separated by commas, spaces or new lines, and choose sample or population.
Standard deviation
-
x
x − mean
(x − mean)²
The working
How standard deviation is calculated
Find the mean of the numbers.
Subtract the mean from each number and square the result.
Add up the squares.
Divide by n (population) or n − 1 (sample). This is the variance.
Take the square root. This is the standard deviation.
population SD = √( Σ (x − mean)² ÷ n )
sample SD = √( Σ (x − mean)² ÷ (n − 1) )
Example
For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared differences add up to 32. The population standard deviation is √(32 ÷ 8) = 2; the sample standard deviation is √(32 ÷ 7) = 2.138.
How spread out the numbers are around their mean. A small standard deviation means most values are close to the average; a large one means they are widely scattered.
Should I use sample or population standard deviation?+
Use population if your numbers are every member of the group you care about (all 30 students in a class). Use sample if they are a sample from a bigger group (30 students surveyed from a school), which divides by n − 1 to correct for the smaller set.
What is variance?+
Variance is the standard deviation squared: the average of the squared distances from the mean. Standard deviation is easier to read because it is in the same units as the data.