Try it with your numbers
Show every step
The arithmetic takes five small steps. What costs marks is choosing the right denominator and knowing what the answer means. If finding the mean still feels shaky, the lesson on mean, median, mode and range covers it first.
What does standard deviation measure?
The mean tells you where a data set is centered. Standard deviation tells you how tightly the values huddle around that center. Two classes can both average 75 on a test, but if one class scored between 70 and 80 and the other between 40 and 100, only the standard deviation shows the difference.
Technically it is the root mean square of the distances from the mean. That is why it is not quite the “average distance”. Squaring gives far-away values extra weight, so the standard deviation is always at least as large as the plain average distance. For the two values and , the mean is and both values sit exactly away, so the standard deviation is exactly .
Three facts are worth memorizing. Standard deviation is never negative. It equals zero only when every value is the same. And it is measured in the same units as the data: minutes stay minutes, dollars stay dollars. Its square, the variance, lives in squared units, which is why the square root step exists.
Quick check
Answer:
How do you calculate standard deviation step by step?
The same five steps work every time:
- Find the mean.
- Subtract the mean from every value to get the deviations.
- Square each deviation.
- Add the squares and divide by (population) or (sample). This is the variance.
- Take the square root.
Example 1. Find the population standard deviation of .
The deviations are . The squares are , which add to . Then
Two checks catch most errors. The deviations must add to zero (here ), which instantly verifies your mean. And the most common slip is stopping at step 4, which reports the variance instead of the standard deviation . Here the two look similar, but with a variance like they do not.
Try this: Find the population standard deviation of and by eye: each value sits from the mean . Now find it for . Why does repeating the pattern change nothing?
Why does sample standard deviation divide by n minus 1?
Use when your data is the entire group you care about, such as every score from the 28 students in one class when the class is all you are describing. Use when your data is a sample meant to estimate a bigger group. Almost every real data set and most textbook problems that say “sample” fall into the second case.
Example 2. Find the sample standard deviation of .
The mean is . The deviations are and the squares are , which add to .
Dividing by instead would give , a noticeably smaller number.
The reason is that the sample mean is built from the same values you are measuring, so it sits closer to them than the true mean does. In fact, for any data set, . The extra term is never negative, so measuring from always comes up short. Dividing by repairs that shortfall exactly for the variance. A second view: the deviations from must add to zero, so only of them are free to vary.
Calculators and spreadsheets label the two versions differently ( or STDEV.S for a sample, or STDEV.P for a population). Picking the wrong one scales your answer by , which is about for .
One more edge case: with a single value, , so a sample standard deviation does not exist. One point carries no information about spread.
Where does the standard deviation formula come from?
Start with the obvious idea: average the deviations. It fails because deviations from the mean always cancel to zero. You could use absolute values, and that gives a legitimate measure called the mean absolute deviation. Squaring wins because it leads to clean algebra.
Define , the total squared miss if you summarize the data with the single number . Expanding gives , a parabola in whose vertex is at , the mean. So the mean is the best one-number summary under squared error, and the smallest possible value of is the sum of squared deviations. Finding a vertex is the same skill drilled in quadratic formula practice problems.
There is a second, less known view. If you compare every pair of values instead of comparing to the mean, you get
Test it on : the pairs give , and . So standard deviation measures how far apart the values are from each other, and the number of pairs is , a count from combinations. Geometrically, the sum of squared deviations is the squared distance from your data point (in dimensions) to the point where every coordinate is the mean.
Is there a faster way to find standard deviation by hand?
Yes. Expanding the squares gives the computational shortcut:
where is the sum of squared deviations. You never calculate a single deviation. Redo Example 1: and , so . It matches the found earlier.
The trap is size. When values are large and close together, such as , the shortcut subtracts two huge numbers and rounding errors creep in. Instead, subtract a convenient constant from every value first. Standard deviation ignores shifts, so use with mean :
Before trusting any answer, run these quick sanity checks:
- The deviations should add to zero.
- A population standard deviation can never exceed half the range (Example 1: range , and ).
- For roughly bell-shaped data with 20 to 30 values, the range divided by is a decent estimate.
Quick check
Answer:
What happens to standard deviation when you add or multiply data?

Adding the same amount to every value slides the whole data set along the number line without changing the spread. Multiplying every value stretches the spread by that factor. Any rescaling follows the pattern, and it is the same shape as a line in slope-intercept form: shifts, stretches.
| Change | New mean | New standard deviation |
|---|---|---|
| Add to every value | (unchanged) | |
| Multiply by | ||
| Both: |
A city has a mean temperature of with standard deviation . Converting with gives a mean of and a standard deviation of . The most common error is adding the to the standard deviation too. Variance, being squared, scales by instead.
A related rule: for independent quantities, variances add, but standard deviations do not. Two independent measurements with standard deviations and combine to , not . It is the Pythagorean theorem in disguise.
How do you find standard deviation from a table or probabilities?
A frequency table lists each value once with a count. Treat the counts as weights: multiply each squared deviation by its frequency, add, and divide by the total count. The mean itself is a weighted average of the values. For a sample, divide by .
For a probability distribution, swap each frequency share for a probability. Use and
This connects directly to basic probability, where the same idea is called the expected value and the spread of a random variable.
Example 3. Find the standard deviation of one roll of a fair die. Each of through has probability , and . The deviations are , with squares that add to .
For the consecutive integers to , there is a closed form, , and gives again. It comes from the sums of consecutive integers, which the arithmetic series formula lesson explains.
In a frequency table, each squared deviation is multiplied by its frequency before you add. Squaring the frequency, or forgetting to multiply, is the usual slip.
What do z-scores and the 68-95-99.7 rule tell you?
A standard deviation becomes a ruler once you use it to measure distance from the mean. The z-score counts how many standard deviations a value sits above (positive) or below (negative) the mean:
This lets you compare across different scales, as in Practice Problem 4, where a lower raw score can be the stronger result.
For bell-shaped data, about of values fall within standard deviation of the mean, about within , and about within . If adult heights in a group average in with a standard deviation of in, about fall between and in. A height of in has , which is taller than roughly of the group.
The rule fails for skewed data such as incomes. For any shape of data, Chebyshev’s inequality still guarantees that at least of values lie within standard deviations: at least for and about for . Do not confuse standard deviation with standard error, . Standard deviation describes the spread of the data, while standard error describes how uncertain the sample mean is.
When does standard deviation give a misleading answer?
Squaring makes standard deviation sensitive to outliers. Take . The mean is , the four small values sit below it, and the single outlier sits above it. The squares are , so
The outlier alone supplies of the , or , of the total. A standard deviation of describes none of those values well. For skewed data, report the median and the interquartile range alongside it.
For data that grows by multiplication, such as populations or prices, take logarithms first. Ratios become differences, and the spread becomes meaningful. The logarithm rules show why: turns multiplying into adding.
Finally, standard deviation cannot compare variability across different scales. Use the coefficient of variation, . A group with mean and standard deviation has relative spread, while a group with mean and standard deviation has only , even though its raw standard deviation is five times larger.
Quick check
Answer: Group A
Practice problems
0 of 5 solved
- Find the population standard deviation of .
Answer:
The mean is . The deviations are , and their squares add to . The variance is , so . - Find the sample standard deviation of .
Answer:
The mean is . The squared deviations are , which add to . Divide by to get , so . - A data set has mean and standard deviation . Every value is multiplied by , then is subtracted. Find the new mean and standard deviation.
Answer: Mean , standard deviation
The mean follows the whole rule: . Subtracting only slides the data, so it does not change the spread. Multiplying by stretches it, so . - Mariam scored on a test with mean and standard deviation . Jon scored on a test with mean and standard deviation . Who did better compared with their own class?
Answer: Mariam ( versus )
Use . Mariam: . Jon: . Mariam sits more standard deviations above her class mean. - A population has the values with frequencies . Find the population standard deviation.
Answer:
There are values and the mean is . The weighted squared deviations are . Then and .
Common questions
What is the formula for standard deviation?
For a whole population, . For a sample, . Both take the square root of the average squared distance from the mean.
Why do you divide by n minus 1 for a sample?
The sample mean is calculated from the same data, so the values sit closer to it than to the true population mean. Dividing by instead of corrects that shortfall, so the sample variance is not too small on average.
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is zero or positive. It equals zero only when every value in the data set is identical.
What is the difference between variance and standard deviation?
Variance is the average squared distance from the mean, and standard deviation is its square root. Variance is in squared units (dollars squared), while standard deviation is in the original units (dollars), which makes it easier to interpret.
What counts as a high or low standard deviation?
There is no universal cutoff. Compare the standard deviation with the mean and with the scale of the data. A standard deviation of 5 is huge for test scores out of 10 and tiny for house prices in dollars.
How do you find standard deviation on a calculator or in Excel?
On most graphing calculators, enter the data in a list and read for a sample or for a population. In Excel and Google Sheets, use STDEV.S for a sample and STDEV.P for a population.