What standard deviation measures
Standard deviation describes how spread out a set of numbers is around its mean. A small standard deviation means the values sit close to the average, and a large one means they are scattered widely. Two classes can both average 75 on a test, but if one class has a standard deviation of 3 and the other 15, the first group scored much more consistently. Because standard deviation is in the same units as the data, it is easier to interpret than variance: a standard deviation of 4 minutes on a commute time means a typical trip lands within a few minutes of the average.
How to calculate standard deviation step by step
Take the data set 2, 4, 4, 4, 5, 5, 7, 9. First find the mean: the sum is 40 and there are 8 values, so the mean is 5. Next subtract the mean from each value and square the result, giving 9, 1, 1, 1, 0, 0, 4 and 16. Add these squared deviations to get 32. For a population, divide by the number of values, 32 ÷ 8 = 4, which is the variance; the square root of 4 gives a population standard deviation of exactly 2. For a sample, divide by one less than the count instead, 32 ÷ 7 ≈ 4.571, and the sample standard deviation is about 2.138. The table under the calculator shows every one of these steps for your own data.
Sample vs. population: which should you use?
Use the population formula when your numbers include every member of the group you care about, such as the final scores of all 25 students in one class. Use the sample formula when your numbers are a selection from a bigger group and you want to estimate the spread of that bigger group, such as a survey of 200 voters or 30 measurements from a production line. Dividing by n − 1, known as Bessel’s correction, makes the sample variance an unbiased estimate of the population variance, because a sample’s values tend to sit slightly closer to their own mean than to the true population mean. Most statistics classes, scientific papers and spreadsheet functions such as STDEV.S use the sample version by default, while STDEV.P is the population version.
Reading the other statistics
The mean is the arithmetic average and the median is the middle value once the numbers are sorted; for an even count, it is the average of the two middle values. When the mean and median are far apart, the data is skewed or has outliers, and a single extreme value can inflate the standard deviation a lot. The range, maximum minus minimum, is a quick but rough measure of spread that depends only on the two extremes. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean and about 95% within two, which is a useful way to spot unusual results.
Accurate results with large or precise numbers
Large values that differ only slightly, such as 1,000,000,004 and 1,000,000,007, can trip up the shortcut formula that subtracts two huge sums. This calculator uses a corrected two-pass method with compensated summation, so it stays accurate for timestamps, prices with many decimals and long lists. Everything runs in your browser, and your data is never uploaded. To compare growth between two values instead, use the percentage increase calculator.