Standard deviation, one step at a time
Standard deviation measures how far values usually sit from their mean. A small standard deviation means the values cluster tightly. A large one means they are spread out. Two classes can have the same average mark of 70, but in one class every student scored between 65 and 75 while in the other the marks ran from 30 to 100. The mean cannot tell those classes apart. The standard deviation can.
The working is the same every time, and the textbook set 2, 4, 4, 4, 5, 5, 7, 9 shows it well. There are 8 numbers and they add up to 40, so the mean is 5. Take 5 away from each number: −3, −1, −1, −1, 0, 0, 2 and 4. Square each of those: 9, 1, 1, 1, 0, 0, 4 and 16. Add the squares and you get 32, the sum of squares. Divide 32 by the count, 8, and the population variance is 4. Its square root, 2, is the population standard deviation. Paste the set into the tool and the table shows exactly these rows.
The squaring step is there for a reason. If you simply added the distances from the mean, the negative ones would cancel the positive ones, and the total would always be zero. Squaring makes every distance positive and also gives large distances more weight than small ones. Taking the square root at the end brings the answer back into the unit of the data, so the standard deviation of heights in centimetres is a number of centimetres.
The sample version changes one step. Instead of dividing the sum of squares by n, you divide by n − 1. For the set above that is 32 divided by 7, about 4.571, and the sample standard deviation is its square root, about 2.138. The reason is that the mean of a sample sits in the middle of that sample by construction, so the distances to it come out a little smaller than the distances to the true mean of the whole group would. Dividing by one less makes up for it. This is called Bessel's correction. Use the sample figure for survey answers, lab measurements and anything else that is part of a bigger group.
A rough rule helps you read the result. For data that forms a bell shape, about two thirds of the values lie within one standard deviation of the mean, and about 95 out of 100 lie within two. A value more than three standard deviations away is rare and worth checking. The rule does not hold for skewed data such as incomes or waiting times. For those, quartiles and the interquartile range often describe the spread better. The tool takes up to 1 MB of numbers and keeps full precision in the calculation, rounding only for display.