The Calc Guide › Calculator
Standard Deviation Calculator
A standard deviation calculator measures how spread out a set of numbers is around its mean: the set 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 5 and a population standard deviation of exactly 2, with the sample figure at 2.13809, because its squared deviations add to 32. Enter any list of numbers, choose population or sample, and you get both conventions, the variance, the median, and every deviation with its square. Checked November 2026.
Last updated: November 29, 2026
Measure how spread out your numbers are, with every step shown
Separate numbers with commas, spaces or line breaks; a column pasted from a spreadsheet works as it is. Anything that is not a number is ignored, and the tool says how much was ignored. Choose Population when your numbers are the whole group; choose Sample when they are a sample taken to estimate a bigger group.
How this is worked out
Standard deviation starts from the mean: each value's distance from the mean is squared, and the squares are averaged.
The population form divides by the count; the sample form divides by the count minus 1.
Next: the center of the same data with the Mean Calculator
Free. No sign-up. Calculated in your browser; nothing is sent to our servers.
What this calculator does
Standard deviation measures how far a set of numbers typically sits from its own mean: a small value means the numbers cluster tightly, a large one means they are spread widely. This standard deviation calculator takes one list of numbers and works both conventions at once, population and sample, returning the standard deviation and variance for each, the mean, the median, the count, the sum, and the sum of squared deviations underneath everything. It also shows its arithmetic as a table: every value, its deviation from the mean, and that deviation squared, so a hand calculation can be checked line by line against it. The Population and Sample buttons choose which figure headlines the result; the other convention stays one row away, so you can see both without entering the data again. A list with a mistake in it is handled in words: anything that is not a number is ignored and counted out loud, and an empty list gets a sentence, not a broken number.
Worked example: the spread of 2, 4, 4, 4, 5, 5, 7, 9
The tool above opens on the set 2, 4, 4, 4, 5, 5, 7, 9, the set used as the worked example in Wikipedia’s article on standard deviation. The eight values add to 40, so the mean is 40 / 8 = 5. Each value’s deviation from 5 runs from −3 (the 2) up to 4 (the 9), and the squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add to a sum of squares of 32. Read as a population, the variance is 32 / 8 = 4 and the standard deviation is its square root, exactly 2. Read as a sample, the variance is 32 / 7 = 4.57143 and the standard deviation is 2.13809. Same data, same mean, two answers a fraction apart: the difference is entirely the divisor, which is why the tool prints both rather than making you re-enter the data to see the other one. The deviations themselves are listed in full in the tool’s table at these defaults.
One data set, both conventions
Every row below reproduces exactly in the tool at its default set; switching the Population and Sample buttons changes only which standard deviation headlines.
Scroll sideways to see all columns →
| Step or figure | Population | Sample |
|---|---|---|
| Count | 8 | 8 |
| Sum | 40 | 40 |
| Mean | 5 | 5 |
| Sum of squared deviations | 32 | 32 |
| Divide the sum of squares by | 8 (the count) | 7 (the count minus 1) |
| Variance | 4 | 4.57143 |
| Standard deviation | 2 | 2.13809 |
Worked example: 120 values, past the 100-row table limit
Enter the numbers 1 to 120 and the tool counts all 120 of them: the sum is 7,260 and the mean is 60.5. Read as a population, the variance is 143,990 / 120 = 1,199.92 and the standard deviation is 34.6398. Read as a sample, the variance is 143,990 / 119 = 1,210 and the standard deviation is 34.7851. The steps table shows only the first 100 values and says so underneath: “Showing the first 100 of 120 values; the totals use all of them.” The totals above use all 120.
How standard deviation works
Population: σ = √( Σ(x − μ)² / N ) and Sample: s = √( Σ(x − x̄)² / (n − 1) )
The recipe is four steps. Find the mean. Subtract it from every value to get the deviations, which say how far each value sits from the center and in which direction. Square every deviation, which does two jobs at once: it stops negative and positive deviations canceling each other out, and it makes large distances count for more than small ones, which is what spread means. Average the squares to get the variance, then take the square root to come back to the data’s own units.
- Why the sample form divides by n − 1: a sample’s deviations are measured from the sample’s own mean, which sits closer to the sample’s values than the true population mean does, so the squared deviations run small on average. Dividing by n − 1 instead of n is called Bessel’s correction. It makes the sample variance an unbiased estimate of the population variance. The sample standard deviation is the square root of that variance, and it is still slightly low on average, so the correction fixes the variance fully and the standard deviation only in part. It is the only difference between the two formulas.
- Units: variance is in squared units (squared points, squared dollars), which is why it is hard to picture; the standard deviation takes the square root and is in the data’s own units, so “a standard deviation of 2 points” reads directly against the scores themselves.
- Zero means no spread: if every value is identical, every deviation is 0 and the standard deviation is 0. It can never be negative, because it is a square root of an average of squares.
- The empirical rule: for data that follows a normal distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three; NIST gives the exact figures as 68.27%, 95.45% and 99.73%. It is a property of that distribution’s shape, not a promise about every data set.
When standard deviation can mislead
Squaring the deviations gives far-off values extra weight, so one extreme value can pull the standard deviation a long way. Take the default set and change the 9 to 90. The mean jumps from 5 to 15.125 (121 / 8), the sum of squared deviations grows from 32 to 6420.875, and the population standard deviation grows from 2 to 28.3304 (sample: 30.2864), although seven of the eight values did not move. The median stays at 4.5. NIST makes the same point: extreme values in the tails can distort the standard deviation, and for data with long tails a measure such as the median absolute deviation or the interquartile range can give a more stable picture of spread. The median absolute deviation of both sets above is 0.5. If your list has a value that looks like a typing slip, check it before reading the standard deviation.
Sources and method
The formulas follow the NIST/SEMATECH e-Handbook of Statistical Methods (section 1.3.5.6, Measures of Scale), which defines the variance with an N − 1 divisor and the standard deviation as its square root; the population form divides by N instead, as described in Wikipedia’s article on standard deviation. The figures on this page were computed from the formulas above and checked by hand. The conventions are stated rather than hidden: the input is split on commas, spaces, semicolons and line breaks, so a number written with a thousands comma, such as 1,000, is read as 1 and 0, and you should type 1000 instead; a token counts only when the whole token is a number, and tokens that are not numbers are reported as ignored rather than silently dropped; both conventions are computed on every run, and the toggle only chooses the headline; a single value has a population standard deviation of 0 and no defined sample figure, because the sample form would divide by zero, so the tool says so in words. The steps table shows only the first 100 values; the totals use all of them. Results are rounded for display to six significant figures. Figures checked November 2026.
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm); NIST/SEMATECH e-Handbook, 6.5.1 What do we mean by Normal data (https://www.itl.nist.gov/div898/handbook/pmc/section5/pmc51.htm); Wikipedia, Bessel’s correction (https://en.wikipedia.org/wiki/Bessel%27s_correction); Wikipedia, Standard deviation (https://en.wikipedia.org/wiki/Standard_deviation).
Related calculators
Standard deviation describes the spread; the center of the same data set belongs to the Mean Calculator, which returns the mean, median, mode, geometric mean and range with the sorted list shown. For the everyday average of a list, including weighted averages and averages of percentages, use the Average Calculator. The chance side of the same data work is the probability calculator, which works odds and likelihoods directly. Two quantities kept in the same ratio while they scale are handled by the proportion calculator.
Change log
November 18, 2026: corrected the explanation of n − 1 (it fully corrects the variance, only partly the standard deviation); replaced the NIST wording to match what NIST states; added the outlier section and the thousands-comma note; removed two claims without a source.
Frequently asked questions
How do you calculate standard deviation?
Find the mean, subtract it from every value, square each difference, average the squares, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squared deviations add to 32, the population variance is 32 / 8 = 4, and the standard deviation is the square root of 4, exactly 2. The tool shows each of those steps with your numbers in it.
What is the difference between population and sample standard deviation?
The divisor. The population form divides the sum of squared deviations by the count, n, and is right when your numbers are the whole group you care about. The sample form divides by n − 1 and is right when your numbers are a sample used to estimate a bigger group. On the same data the sample figure is never smaller than the population figure, and it is larger unless every value is identical, because its divisor is smaller: 2.13809 against 2 on this page’s example set.
Why does the sample formula divide by n minus 1?
Because a sample’s deviations are measured from the sample’s own mean, which sits closer to the sample’s values than the true population mean does, so the deviations come out slightly too small as an estimate of the population’s spread. Dividing by n − 1 instead of n makes the sample variance an unbiased estimate of the population variance. The sample standard deviation is still slightly low on average, because taking a square root does not preserve that balance. The correction is called Bessel’s correction, and it matters most on small samples, where the gap between dividing by n and by n − 1 is proportionally largest.
Can standard deviation be zero or negative?
Zero, yes; negative, never. The standard deviation is the square root of an average of squared deviations, and squares cannot be negative, so the result is always zero or positive. It is zero in exactly one situation: every value in the set is the same, so every deviation is zero and there is no spread to measure. A single value on its own also has a population standard deviation of zero, for the same reason.
What is a good standard deviation?
There is no universal good value, because standard deviation is measured in the data’s own units and only means something against its mean and its context. A standard deviation of 2 points is large next to scores averaging 5 (2 is 40% of 5) and small next to scores averaging 500 (2 is 0.4% of 500). No cutoff marks a good value for every data set, so judge it against the mean, the units and what the data measures. The empirical rule in the section above gives another everyday yardstick, for normally shaped data.
Does this calculator show the median too?
Yes. The median is printed alongside the spread figures, because classwork so often asks for a center and a spread from the same list: on the example set the median is 4.5, the middle of the sorted list falling between 4 and 5. The full center family, with the mode, the geometric mean and the sorted list itself, is on the Mean Calculator, which this page links.
Do outliers change the standard deviation?
Yes, a lot. Because deviations are squared, one extreme value counts for far more than a typical one. On the default set, changing the 9 to 90 raises the population standard deviation from 2 to 28.3304 while the median stays at 4.5. For data with extreme values, NIST notes that the median absolute deviation or the interquartile range can give a more stable picture of spread.
Educational tool only. Results are estimates based on the numbers you enter and the assumptions explained on this page, not financial advice.