What standard deviation measures
The standard deviation tells you how spread out a set of numbers is around its mean. A small standard deviation means most values sit close to the average, a large one means they are scattered. Two classes can both average 75 on a test, but if one class has a standard deviation of 3 and the other 15, the second has many more very high and very low scores. It is written with the Greek letter σ (sigma) for a population and s for a sample.
The variance is the same formula without the square root. The coefficient of variation is the standard deviation divided by the mean, as a percent, which lets you compare the spread of data on different scales.
Worked example
Take the eight numbers 2, 4, 4, 4, 5, 5, 7, 9. They add up to 40, so the mean is 40 ÷ 8 = 5. Subtract the mean from each number and square the result: 9, 1, 1, 1, 0, 0, 4, 16. These squared deviations add up to 32.
- Population: divide by n = 8 to get a variance of 4. The square root gives σ = 2.
- Sample: divide by n − 1 = 7 to get a variance of about 4.571. The square root gives s ≈ 2.138.
Sample or population: which one to use
Use the population standard deviation when your numbers are the whole group you care about: the scores of every student in one class, the monthly sales of every store in a chain, the sizes of all files in a folder. Use the sample standard deviation when your numbers are a part of a bigger group and you want to describe that bigger group: survey answers from some customers, measurements from a few parts off a production line, results of a lab experiment. When in doubt, the sample version gives the slightly larger, more cautious figure. Spreadsheets follow the same split: STDEV.S is the sample and STDEV.P the population formula.
The 68-95-99.7 rule
When data follows a bell-shaped curve, called a normal distribution, the standard deviation tells you a lot about where values fall. About 68% of the values lie within one standard deviation of the mean, about 95% within two, and about 99.7% within three. So with a mean of 100 and a standard deviation of 15, roughly two thirds of the values are between 85 and 115, and almost all are between 55 and 145. A z score beyond 2 or −2 therefore marks a fairly unusual value. The rule does not hold for skewed data, like incomes, or for data with several peaks.
How to use the standard deviation calculator
- 1Type or paste your data set. Spaces, tabs, new lines, semicolons and a comma followed by a space all work as separators, so a column from a spreadsheet is fine, with or without thousands separators.
- 2Choose sample or population. Both results are always shown below, so you can compare them.
- 3Read the standard deviation, variance, mean and the other statistics, and follow the steps through the formula. Add a value to get its z score, then copy the result or a link.
Guides on this topic
- Z-Table: Negative and Positive Standard Normal Table
- What a p-Value Means (and What It Does Not)
- Standard Error vs Standard Deviation: What Each Tells You
Frequently asked questions
What is the difference between sample and population standard deviation?
The population standard deviation (σ) describes every member of a group, so you divide the sum of squared deviations by the count n. The sample standard deviation (s) estimates the spread of a larger group from a part of it, so you divide by n − 1. For the data 2, 4, 4, 4, 5, 5, 7, 9, σ is 2 and s is about 2.138.
Why does the sample formula divide by n − 1?
A sample sits a little closer to its own mean than to the true mean of the whole population, so the squared deviations come out slightly too small. Dividing by n − 1 instead of n makes up for that. This is called Bessel's correction. With large samples the difference between the two results becomes tiny.
What is the difference between variance and standard deviation?
The variance is the average squared distance from the mean, and the standard deviation is its square root. Both measure spread, but the standard deviation is in the same unit as your data, like centimeters or dollars, which makes it easier to read. A variance of 4 cm² is a standard deviation of 2 cm.
What counts as a high standard deviation?
It depends on the size of the numbers. A standard deviation of 5 is large for test scores averaging 10 and small for house prices. The coefficient of variation, the standard deviation divided by the mean, puts it in proportion, so you can compare the spread of data on different scales.
What is a z score?
A z score tells you how many standard deviations a value is from the mean: z = (x − mean) ÷ standard deviation. A z score of 2 means two standard deviations above the mean, −1 means one below. Enter a value in the z score box to get it for your data.