Lelifi·tools

Standard Deviation Calculator

The mean is 32. The sample result is 5.89. The population result is 5.45. Choose the formula for your list. This page explains when each result applies. Both outputs are shown for comparison. The squared deviations total 208.

Enter a list of values to calculate its mean, variance, and standard deviation with either the sample or population formula.

By the Lelifi editors ·

Key takeaways

One list, six steps, one measure of spreadvalues: 28, 31, 35, 29, 44, 30, 27sum = 224, count = 7, mean = 224 / 7 = 32squared deviations: 16, 1, 9, 9, 144, 4, 25sum of squares = 208sample variance = 208 / 6 = 34.67= sample standard deviation = 5.89 minutesSwap the divisor to 7 and the same list gives the population standard deviation, 5.45.
The whole calculation for seven delivery times, step by step.
How much of the 208 total each delivery contributes2514427 min (25)28 min (16)29 min (9)30 min (4)31 min (1)35 min (9)44 min (144)
The slow 44 minute run supplies 144 of the 208 squared deviations.
On this page
  1. What standard deviation measures
  2. Population or sample: the n and n-1 question
  3. Step by step: seven delivery times
  4. Reading the answer: one, two and three standard deviations
  5. Comparing things that are not on the same scale
  6. Standard deviation in money and in the news
  7. Mistakes that inflate or deflate the answer

What standard deviation measures

Standard deviation measures typical distance from the mean. It is reported in the same units as the data, so a standard deviation of 5.89 minutes means roughly six minutes of wobble around the average, not six percent and not six dollars.

Three measures describe spread, and they answer different questions:

The square root is what makes the measure usable. A list that sits within a few minutes of its mean gets a small standard deviation, and a list with one wild value gets a large one, because that value is squared before it is averaged.

The National Institute of Standards and Technology (NIST), 2019 describes standard deviation as a measure of dispersion and gives the sample divisor of n minus 1.

Population or sample: the n and n-1 question

There are two formulas and they differ in one place, the divisor.

Question you are askingDivisorSymbolResult for the seven deliveries
You measured emember of the groupN, the countσ208 / 7 = 29.71, so σ = 5.45
You measured a sample and want to estimate the wider groupn minus 1s208 / 6 = 34.67, so s = 5.89

Dividing by the smaller number makes the sample result slightly larger, and that is deliberate. A sample mean sits closer to its own data than the true population mean does, so the squared deviations you can see are a little too small. Dividing by n minus 1 corrects for that, and the correction has a name: Bessel's correction. The NIST/SEMATECH e-Handbook of Statistical Methods defines the sample standard deviation with that divisor and notes the n minus 1 degrees of freedom.

The size of the gap depends on the count. With seven values the sample figure is 8 percent above the population figure. With 100 values the gap is about half a percent, which is why the choice matters for small lists and barely matters for large ones. If you truly have evalue, the population formula is the right one. If the list is a sample of something larger, use n minus 1.

Step by step: seven delivery times

Take seven deliveries that took 28, 31, 35, 29, 44, 30 and 27 minutes.

Step 1, the mean. 28 + 31 + 35 + 29 + 44 + 30 + 27 = 224, and 224 / 7 = 32 minutes.

Step 2, the deviations. Subtract 32 from each value: -4, -1, 3, -3, 12, -2 and -5. They add to zero, which is a useful check that the mean is right.

Step 3, the squares. 16, 1, 9, 9, 144, 4 and 25.

Step 4, the total. 16 + 1 + 9 + 9 + 144 + 4 + 25 = 208.

Step 5, the variance. For a sample, 208 / 6 = 34.67. For a population, 208 / 7 = 29.71.

Step 6, the square root. The square root of 34.67 is 5.89 minutes, and the square root of 29.71 is 5.45 minutes.

MinutesDeviation from 32Squared deviation
28-416
31-11
3539
29-39
4412144
30-24
27-525
Total 2240208

Look at the 44 minute run. It is 12 minutes from the mean, so it contributes 144 to a total of 208, about 69 percent of all the spread in the list. A dispatcher who only looked at the average of 32 would miss the fact that one route went badly wrong.

Reading the answer: one, two and three standard deviations

When data follows a bell curve, about 68 percent of values fall within one standard deviation of the mean, about 95 percent within two, and about 99.7 percent within three. The rule is a description of a shape, not a law that any list obeys.

For the delilist with mean 32 and sample standard deviation 5.89, one standard deviation covers 26.11 to 37.89 minutes. Six of the seven runs land inside that band, which is 86 percent, well above the 68 percent the rule predicts. Two standard deviations reach 20.22 to 43.78, and the 44 minute run sits just outside it. A single outlier is enough to break the pattern.

BandRange in minutesRuns insideBell curve expectation
Within 1 SD26.11 to 37.896 of 7about 68 percent
Within 2 SD20.22 to 43.786 of 7about 95 percent
Within 3 SD14.33 to 49.677 of 7about 99.7 percent

That gap is the honest part of the story. A small list with one slow day is not a bell curve, so the 68 and 95 figures are a rough sanity check at best. What the standard deviation does tell you without any assumption about shape is how far the values sit from the mean on average, and that is enough for most practical work.

Comparing things that are not on the same scale

A standard deviation of 5.89 minutes sounds calm on a 32 minute route and frantic on a 6 minute one. To compare spread across lists with different averages, divide the standard deviation by the mean to get the coefficient of variation.

Route A averages 32 minutes with a standard deviation of 5.89, so 5.89 / 32 = 18.4 percent. Route B averages 50 minutes with a standard deviation of 6.5, so 6.5 / 50 = 13 percent. Route B is the longer drive but the more predictable one, and the raw standard deviations alone would have said the opposite.

RouteMeanStandard deviationCoefficient of variation
A32 min5.89 min18.4 percent
B50 min6.5 min13.0 percent

Investment returns use the same idea. A fund that averages 8 percent a year with a standard deviation of 12 points has a coefficient of variation of 1.5, while a fund with the same 8 percent average and an 18 point standard deviation comes in at 2.25. Same reward, more turbulence, and the second fund has to be justified by something other than its average.

Standard deviation in money and in the news

Daily volatility quoted for a stock or a fund is a standard deviation of daily returns. To put it on an annual footing, multiply by the square root of the number of trading days, which is conventionally 252.

A fund with a daily standard deviation of 1.2 percent has an annual figure of 1.2 x 15.87 = 19.04 percent. The square root scaling comes from the way variances add when returns are independent; it is a convention, and it understates the real figure when big down days cluster together.

Do not confuse the standard deviation of the data with the standard error of the mean. The standard error is the standard deviation divided by the square root of the count, and it describes how well the mean is pinned down. For the deliveries, 5.89 / 2.646 = 2.23 minutes, so the average of seven runs carries a margin of roughly two minutes either way. The standard deviation of the runs themselves stays at 5.89; more deliveries shrink the standard error and leave the spread alone.

Measurement data uses the same arithmetic. The NIST Special Publication 1500-28 on general statistics defines the sample standard deviation with the n minus 1 divisor and treats it as the usual measure of dispersion next to the mean.

Mistakes that inflate or deflate the answer

The arithmetic is not hard, and most wrong answers come from four habits.

SymptomLikely causeFix
Standard deviation of zeroEvalue is the same, or the list has one entryCheck the input, not the formula
Standard deviation larger than the meanNormal for wide spread on a small averageReport the coefficient of variation instead
Sample and population figures far apartSmall count, so n minus 1 mattersState which formula you used
One value dominates the totalA genuine outlier, or a typo such as 440 for 44Check the raw data before trusting the result

One last habit: report the count with the standard deviation. A spread of 5.89 from seven values and a spread of 5.89 from 700 values are different claims about the world, and the reader cannot tell them apart without the number of observations.

Frequently asked questions

How do you calculate standard deviation?

Find the mean, subtract it from each value, square the results, add them, divide by n minus 1 for a sample or by n for a population, then take the square root. For 28, 31, 35, 29, 44, 30 and 27 the squares add to 208, so the sample figure is the square root of 34.67, which is 5.89.

What is the standard deviation of 2, 4, 4, 4, 5, 5, 7 and 9?

The mean is 5 and the squared deviations add to 32. Dividing by 8 gives a population variance of 4 and a standard deviation of 2, while dividing by 7 gives the sample figures of 4.57 and 2.14.

When do I divide by n and when by n minus 1?

Divide by n when the list is the entire population you care about, and by n minus 1 when it is a sample used to estimate a larger group. With seven values the two answers are 5.45 and 5.89, a gap of about 8 percent.

Is the standard deviation always smaller than the variance?

Only when the variance is above 1. For the delivery list the variance is 34.67 square minutes and the standard deviation is 5.89 minutes, so the square root shrinks the number. When the spread is below 1, the square root makes it larger.

What does a standard deviation of 5.89 mean in plain words?

It means a typical delivery lands about six minutes from the 32 minute average. Most runs fall between 26 and 38 minutes, and a run 12 minutes off, like the 44 minute one, is unusual.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so the smallest possible value is zero, which happens only when every value in the list is identical.

What is the coefficient of variation?

The standard deviation divided by the mean, which lets you compare spread across lists with different averages. A route averaging 32 minutes with a standard deviation of 5.89 has a coefficient of 18.4 percent, against 13 percent for a 50 minute route with a spread of 6.5.

How do I annualize a daily standard deviation?

Multiply by the square root of 252, the usual count of trading days. A daily figure of 1.2 percent becomes 1.2 x 15.87 = 19.04 percent a year, assuming returns do not cluster.

Is standard deviation the same as standard error?

No. Standard deviation describes the spread of the values; standard error is that spread divided by the square root of the count, and it describes the precision of the mean. Seven deliveries give a standard error of 5.89 / 2.646 = 2.23 minutes.

What is the 68 95 99.7 rule?

For bell shaped data, about 68 percent of values sit within one standard deviation of the mean, 95 percent within two and 99.7 percent within three. A list with one outlier can break it: six of the seven delivery runs are inside one standard deviation, which is 86 percent.

Does the calculator handle negative numbers?

Yes. A list of temperature readings such as -4, 0, 3 and 9 is fine, because the deviations are squared and the sign drops out.

Why do the deviations always add to zero?

Because the mean is the balance point of the list. The positive deviations above the mean exactly cancel the negative ones below it, which makes a sum of zero a quick check that the mean was computed correctly.

How many numbers do I need before a standard deviation is useful?

Two values give a number but no sense of shape, and five or more is a reasonable minimum for a report. With seven values the sample and population figures differ by 8 percent, so the count belongs next to the answer.

Can I paste numbers separated by commas or new lines?

Yes. Commas, spaces, tabs and line breaks all work, and anything that is not a number is skipped. The results line reports how many values were used so you can spot a paste that lost a column.

Spotted a wrong number or a broken result?

More Kids School tools

See all Kids School tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.