★ STATISTICS · SPREAD · STANDARD DEVIATION

Standard Deviation Calculator: Mean, Variance & SD

On the defaults — 2, 4, 4, 4, 5, 5, 7, 9 — the mean is 5, the population variance is 4, the population standard deviation is 2.00 and the sample standard deviation is 2.138090. Paste in any dataset, numbers separated by commas, and the calculator works out the mean, the population variance and standard deviation, and the sample variance and standard deviation. This one finds the spread of a whole dataset — mean, population and sample variance, population and sample standard deviation, in one place: the probability-distribution-calculator page is the DISTRIBUTION — normal, binomial and Poisson probabilities, with z-scores — not the spread of your own numbers; the probability-two-events page is the COMBINED CHANCE — both, either, neither or exactly one of two events — not a dataset’s spread; the fractions-average page is the MEAN OF FRACTIONS — three fractions averaged — not a dataset’s spread; and the average-time-calculator page is the MEAN OF TIMES — lap times and shift times averaged — not a dataset’s spread. No standard deviation calculator exists on this site — this one is the first.

1326

Standard deviation calculator

Mean = sum / count; population variance = sum of squared deviations / count; population standard deviation = square root of the population variance; sample variance = sum of squared deviations / (count − 1); sample standard deviation = square root of the sample variance. On the defaults — 2, 4, 4, 4, 5, 5, 7, 9; count 8; mean 5.000000; sum of squared deviations 32; population variance 4.000000; population standard deviation 2.000000; sample variance 4.571429; sample standard deviation 2.138090. The mean is 5.000000, the population variance is 4.000000, the population standard deviation is 2.000000, the sample variance is 4.571429 and the sample standard deviation is 2.138090: the mean, the population variance, the population standard deviation, the sample variance and the sample standard deviation are five outputs, never the same number. The sample standard deviation is always a little higher than the population one — it divides by n − 1 instead of n, because a sample underestimates the spread. The spread does not care where the numbers sit — 1,000,000 to 1,000,002 has the same standard deviation as 0, 1 and 2, because only the distances from the mean count. One value has no sample spread — there is nothing to divide by n − 1 — so the sample figures show as a dash. The calculator shows all of it with notes, never hides it.

Your dataset — numbers separated by commas, spaces after commas are ignored — the default is 2,4,4,4,5,5,7,9.

Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090. For the 8 values in your dataset, the mean is 5.000000 (unrounded 5.000000), the population variance is 4.000000 and the population standard deviation is 2.000000 (unrounded 2.000000).

Dataset: 2,4,4,4,5,5,7,9

Count: 8

Mean: 5.000000

Population variance: 4.000000

Population SD: 2.000000

Sample variance: 4.571429

Sample SD: 2.138090

Verdict: Population SD 2.000000 — the sample SD is 2.138090, a little higher because it divides by n − 1, not n

Branch: 1 to 5: Mean 3.000000; population variance 2.000000; population SD 1.414214; sample variance 2.500000; sample SD 1.581139

Branch: 10, 20, 30: Mean 20.000000; population variance 66.666667; population SD 8.164966; sample variance 100.000000; sample SD 10.000000

Branch: All 5s: Mean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000

Branch: 1 and 100: Mean 50.500000; population variance 2450.250000; population SD 49.500000; sample variance 4900.500000; sample SD 70.003571

Branch: 0, 0, 10, 10: Mean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 33.333333; sample SD 5.773503

Branch: -3, -1, 1, 3: Mean 0.000000; population variance 5.000000; population SD 2.236068; sample variance 6.666667; sample SD 2.581989

Branch: 2.5, 3.5, 4.5: Mean 3.500000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000

Branch: 100 to 500: Mean 300.000000; population variance 20000.000000; population SD 141.421356; sample variance 25000.000000; sample SD 158.113883

Branch: 3 to 6, ten values: Mean 4.500000; population variance 1.050000; population SD 1.024695; sample variance 1.166667; sample SD 1.080123

Branch: 1 to 10: Mean 5.500000; population variance 8.250000; population SD 2.872281; sample variance 9.166667; sample SD 3.027650

Reverse: Largest value to add for the population SD to STAY at or below 2.5: 10

Reverse: Largest value to add for the population SD to STAY at or below 2.5 (rounded): 10

At 10 the figures are: Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417)

At the lower neighbor the figures are: Mean 5.666667 (unrounded 5.666667); population variance 7.111111; population SD 2.666667 (unrounded 2.666667); sample variance 8.000000; sample SD 2.828427 (unrounded 2.828427)

At the upper neighbor the figures are: Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701)

Reverse verdict: STEP

Reverse: Largest value to add for the population SD to STAY at or below 2.1: 7

Reverse: Largest value to add for the population SD to STAY at or below 2.1 (rounded): 7

At 7 the figures are: Mean 5.222222 (unrounded 5.222222); population variance 3.950617; population SD 1.987616 (unrounded 1.987616); sample variance 4.444444; sample SD 2.108185 (unrounded 2.108185)

At the lower neighbor the figures are: Mean 5.333333 (unrounded 5.333333); population variance 4.444444; population SD 2.108185 (unrounded 2.108185); sample variance 5.000000; sample SD 2.236068 (unrounded 2.236068)

At the upper neighbor the figures are: Mean 5.111111 (unrounded 5.111111); population variance 3.654321; population SD 1.911628 (unrounded 1.911628); sample variance 4.111111; sample SD 2.027588 (unrounded 2.027588)

Reverse verdict: STEP

Reverse: Largest value to add for the sample SD to STAY at or below 2.5: 9

Reverse: Largest value to add for the sample SD to STAY at or below 2.5 (rounded): 9

At 9 the figures are: Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701)

At the lower neighbor the figures are: Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417)

At the upper neighbor the figures are: Mean 5.333333 (unrounded 5.333333); population variance 4.444444; population SD 2.108185 (unrounded 2.108185); sample variance 5.000000; sample SD 2.236068 (unrounded 2.236068)

Reverse verdict: STEP

Reverse: Smallest value to add for the mean to REACH at least 6: 14

Reverse: Smallest value to add for the mean to REACH at least 6 (rounded): 14

At 14 the figures are: Mean 6.000000 (unrounded 6.000000); population variance 11.555556; population SD 3.399346 (unrounded 3.399346); sample variance 13.000000; sample SD 3.605551 (unrounded 3.605551)

At the lower neighbor the figures are: Mean 5.888889 (unrounded 5.888889); population variance 9.876543; population SD 3.142697 (unrounded 3.142697); sample variance 11.111111; sample SD 3.333333 (unrounded 3.333333)

At the upper neighbor the figures are: Mean 6.111111 (unrounded 6.111111); population variance 13.432099; population SD 3.664983 (unrounded 3.664983); sample variance 15.111111; sample SD 3.887301 (unrounded 3.887301)

Reverse verdict: STEP

Reverse: Largest value to add for the mean to STAY at or below 5.5: 9

Reverse: Largest value to add for the mean to STAY at or below 5.5 (rounded): 9

At 9 the figures are: Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701)

At the lower neighbor the figures are: Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417)

At the upper neighbor the figures are: Mean 5.333333 (unrounded 5.333333); population variance 4.444444; population SD 2.108185 (unrounded 2.108185); sample variance 5.000000; sample SD 2.236068 (unrounded 2.236068)

Reverse verdict: STEP

Reverse: Smallest value to add for the sample variance to REACH at least 7: 11

Reverse: Smallest value to add for the sample variance to REACH at least 7 (rounded): 11

At 11 the figures are: Mean 5.666667 (unrounded 5.666667); population variance 7.111111; population SD 2.666667 (unrounded 2.666667); sample variance 8.000000; sample SD 2.828427 (unrounded 2.828427)

At the lower neighbor the figures are: Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417)

At the upper neighbor the figures are: Mean 5.777778 (unrounded 5.777778); population variance 8.395062; population SD 2.897423 (unrounded 2.897423); sample variance 9.444444; sample SD 3.073181 (unrounded 3.073181)

Reverse verdict: STEP

Edge: Empty dataset: Dataset — at least one number.

Edge: Single value 7 (sample SD undefined): Mean 7.000000; population variance 0.000000; population SD 0.000000; sample variance —; sample SD —

Edge: All 5s: Mean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000

Edge: Non-numeric entry: Dataset — numbers separated by commas.

Edge: Negative values -5, -3, -1: Mean −3.000000; population variance 2.666667; population SD 1.632993; sample variance 4.000000; sample SD 2.000000

Edge: Large values 1,000,000 to 1,000,002: Mean 1000001.000000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000

Edge: Decimals 1.1, 2.2, 3.3: Mean 2.200000; population variance 0.806667; population SD 0.898146; sample variance 1.210000; sample SD 1.100000

Edge: Two values 0 and 10: Mean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 50.000000; sample SD 7.071068

Edge: Spaces after commas: Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090

Edge: 1 to 12: Mean 6.500000; population variance 11.916667; population SD 3.452053; sample variance 13.000000; sample SD 3.605551

Edge: 0, 0, 0, 1: Mean 0.250000; population variance 0.187500; population SD 0.433013; sample variance 0.250000; sample SD 0.500000

Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090. On the defaults 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 5, a population standard deviation of 2.000000 and a sample standard deviation of 2.138090. The largest value to add while keeping the population standard deviation at or below 2.5 is 10 — and at 11 it is 2.666667.

1 to 5: Mean 3.000000; population variance 2.000000; population SD 1.414214; sample variance 2.500000; sample SD 1.581139.

10, 20, 30: Mean 20.000000; population variance 66.666667; population SD 8.164966; sample variance 100.000000; sample SD 10.000000.

All 5s: Mean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000.

1 and 100: Mean 50.500000; population variance 2450.250000; population SD 49.500000; sample variance 4900.500000; sample SD 70.003571.

0, 0, 10, 10: Mean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 33.333333; sample SD 5.773503.

-3, -1, 1, 3: Mean 0.000000; population variance 5.000000; population SD 2.236068; sample variance 6.666667; sample SD 2.581989.

2.5, 3.5, 4.5: Mean 3.500000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000.

100 to 500: Mean 300.000000; population variance 20000.000000; population SD 141.421356; sample variance 25000.000000; sample SD 158.113883.

3 to 6, ten values: Mean 4.500000; population variance 1.050000; population SD 1.024695; sample variance 1.166667; sample SD 1.080123.

1 to 10: Mean 5.500000; population variance 8.250000; population SD 2.872281; sample variance 9.166667; sample SD 3.027650.

Reverse: The largest value to add for the population SD to STAY at or below 2.5 is 10; at 10 the figures are Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417); at the upper neighbor the figures are Mean 5.666667 (unrounded 5.666667); population variance 7.111111; population SD 2.666667 (unrounded 2.666667); sample variance 8.000000; sample SD 2.828427 (unrounded 2.828427) — verdict: STEP. Reverse: The largest value to add for the population SD to STAY at or below 2.1 is 7; at 7 the figures are Mean 5.222222 (unrounded 5.222222); population variance 3.950617; population SD 1.987616 (unrounded 1.987616); sample variance 4.444444; sample SD 2.108185 (unrounded 2.108185); at the upper neighbor the figures are Mean 5.333333 (unrounded 5.333333); population variance 4.444444; population SD 2.108185 (unrounded 2.108185); sample variance 5.000000; sample SD 2.236068 (unrounded 2.236068) — verdict: STEP. Reverse: The largest value to add for the sample SD to STAY at or below 2.5 is 9; at 9 the figures are Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701); at the upper neighbor the figures are Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417) — verdict: STEP. Reverse: The smallest value to add for the mean to REACH at least 6 is 14; at 14 the figures are Mean 6.000000 (unrounded 6.000000); population variance 11.555556; population SD 3.399346 (unrounded 3.399346); sample variance 13.000000; sample SD 3.605551 (unrounded 3.605551); at the lower neighbor the figures are Mean 5.888889 (unrounded 5.888889); population variance 9.876543; population SD 3.142697 (unrounded 3.142697); sample variance 11.111111; sample SD 3.333333 (unrounded 3.333333) — verdict: STEP. Reverse: The largest value to add for the mean to STAY at or below 5.5 is 9; at 9 the figures are Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701); at the upper neighbor the figures are Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417) — verdict: STEP. Reverse: The smallest value to add for the sample variance to REACH at least 7 is 11; at 11 the figures are Mean 5.666667 (unrounded 5.666667); population variance 7.111111; population SD 2.666667 (unrounded 2.666667); sample variance 8.000000; sample SD 2.828427 (unrounded 2.828427); at the lower neighbor the figures are Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417) — verdict: STEP.

Edges: An empty dataset gives Dataset — at least one number.. A single value 7 gives Mean 7.000000; population variance 0.000000; population SD 0.000000; sample variance —; sample SD —. All 5s give Mean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000. A non-numeric entry gives Dataset — numbers separated by commas.. Negative values give Mean −3.000000; population variance 2.666667; population SD 1.632993; sample variance 4.000000; sample SD 2.000000. Large values give Mean 1000001.000000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000. Decimals give Mean 2.200000; population variance 0.806667; population SD 0.898146; sample variance 1.210000; sample SD 1.100000. Two values 0 and 10 give Mean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 50.000000; sample SD 7.071068. Spaces after commas give Mean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090. 1 to 12 give Mean 6.500000; population variance 11.916667; population SD 3.452053; sample variance 13.000000; sample SD 3.605551. 0, 0, 0, 1 give Mean 0.250000; population variance 0.187500; population SD 0.433013; sample variance 0.250000; sample SD 0.500000.

What does a standard deviation of 2.00 mean?

It means the values in 2, 4, 4, 4, 5, 5, 7, 9 sit, on average, about 2 away from the mean of 5 — the 2 and the 9 are the farthest, 3 and 4 away, and the 5s sit right on the mean. A standard deviation of 0 would mean every value is the same, and a bigger one means the values are more spread out. The mean, the population variance, the population standard deviation, the sample variance and the sample standard deviation are five outputs, never the same number — the mean is the middle, the variance is the spread squared, and the standard deviation is the spread in the same units as the numbers.

Three things to check before you trust the number

Population or sample — pick the right one. The population standard deviation divides by n, the sample one by n − 1. If your numbers are the whole group, use the population figure (2.000000 here); if they are a sample of a bigger group, use the sample figure (2.138090). Mixing them up is the most common mistake.

The standard deviation is in the same units as the numbers. A standard deviation of 2 on test scores is 2 points; on salaries it is 2 dollars. The variance is the square of it, in squared units — 4 here — which is why the standard deviation, not the variance, is the one to quote.

Outliers count double. The deviations are squared before they are averaged, so a value far from the mean counts far more than a value near it. One 100 in a dataset of 1s lifts the population standard deviation to 49.50 — and the calculator shows you exactly how much.

Worked example

On the defaults: 2, 4, 4, 4, 5, 5, 7, 9.

  1. Mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.000000.
  2. Deviations from the mean: −3, −1, −1, −1, 0, 0, 2, 4.
  3. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16 — the sum is 32.
  4. Population variance: 32 ÷ 8 = 4.000000.
  5. Population standard deviation: √4 = 2.000000.
  6. Sample variance: 32 ÷ 7 = 4.571429.
  7. Sample standard deviation: √(32/7) = 2.138090.
  8. Largest value to add for a population SD of at most 2.5: 10 — at 10 the population SD is 2.454525, and at 11 it is 2.666667.

Every branch, checked

The reverses, worked backwards

What the defaults assume

The defaults are 2, 4, 4, 4, 5, 5, 7, 9 — eight small whole numbers with a mean of 5 and a spread you can check by hand. They are a starting point, not a benchmark: your dataset may be test scores, measurements, prices or anything else, and the right standard deviation for you is the one your own numbers give. Paste your own dataset in, numbers separated by commas, and the calculator recomputes instantly. The sample standard deviation is always a little higher than the population one — it divides by n − 1 instead of n, because a sample underestimates the spread.

These notes repeat in every explainer section because this page is built to be read start to finish: the defaults are one dataset, not a standard; population or sample — pick the right one; the standard deviation is in the same units as the numbers; and outliers count double.

Output · formula · meaning

OutputFormulaWhat it means
Datasetinput2,4,4,4,5,5,7,9.
Counthow many values8.
Meansum / count5.000000.
Population variancesum of squared deviations / count4.000000.
Population SDsquare root of the population variance2.000000.
Sample variancesum of squared deviations / (count − 1)4.571429.
Sample SDsquare root of the sample variance2.138090.
Verdictwhether the sample SD is higher than the population SDPopulation SD 2.000000 — the sample SD is 2.138090, a little higher because it divides by n − 1, not n.
Reverse: Largest value to add for the population SD to STAY at or below 2.5step10: Mean 5.555556 (unrounded 5.555556); population variance 6.024691; population SD 2.454525 (unrounded 2.454525); sample variance 6.777778; sample SD 2.603417 (unrounded 2.603417).
Reverse: Largest value to add for the population SD to STAY at or below 2.1step7: Mean 5.222222 (unrounded 5.222222); population variance 3.950617; population SD 1.987616 (unrounded 1.987616); sample variance 4.444444; sample SD 2.108185 (unrounded 2.108185).
Reverse: Largest value to add for the sample SD to STAY at or below 2.5step9: Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701).
Reverse: Smallest value to add for the mean to REACH at least 6step14: Mean 6.000000 (unrounded 6.000000); population variance 11.555556; population SD 3.399346 (unrounded 3.399346); sample variance 13.000000; sample SD 3.605551 (unrounded 3.605551).
Reverse: Largest value to add for the mean to STAY at or below 5.5step9: Mean 5.444444 (unrounded 5.444444); population variance 5.135802; population SD 2.266231 (unrounded 2.266231); sample variance 5.777778; sample SD 2.403701 (unrounded 2.403701).
Reverse: Smallest value to add for the sample variance to REACH at least 7step11: Mean 5.666667 (unrounded 5.666667); population variance 7.111111; population SD 2.666667 (unrounded 2.666667); sample variance 8.000000; sample SD 2.828427 (unrounded 2.828427).
1 to 5same modelMean 3.000000; population variance 2.000000; population SD 1.414214; sample variance 2.500000; sample SD 1.581139.
10, 20, 30same modelMean 20.000000; population variance 66.666667; population SD 8.164966; sample variance 100.000000; sample SD 10.000000.
All 5ssame modelMean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000.
1 and 100same modelMean 50.500000; population variance 2450.250000; population SD 49.500000; sample variance 4900.500000; sample SD 70.003571.
0, 0, 10, 10same modelMean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 33.333333; sample SD 5.773503.
-3, -1, 1, 3same modelMean 0.000000; population variance 5.000000; population SD 2.236068; sample variance 6.666667; sample SD 2.581989.
2.5, 3.5, 4.5same modelMean 3.500000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000.
100 to 500same modelMean 300.000000; population variance 20000.000000; population SD 141.421356; sample variance 25000.000000; sample SD 158.113883.
3 to 6, ten valuessame modelMean 4.500000; population variance 1.050000; population SD 1.024695; sample variance 1.166667; sample SD 1.080123.
1 to 10same modelMean 5.500000; population variance 8.250000; population SD 2.872281; sample variance 9.166667; sample SD 3.027650.
Empty datasetsame modelDataset — at least one number..
Single value 7 (sample SD undefined)same modelMean 7.000000; population variance 0.000000; population SD 0.000000; sample variance —; sample SD —.
All 5ssame modelMean 5.000000; population variance 0.000000; population SD 0.000000; sample variance 0.000000; sample SD 0.000000.
Non-numeric entrysame modelDataset — numbers separated by commas..
Negative values -5, -3, -1same modelMean −3.000000; population variance 2.666667; population SD 1.632993; sample variance 4.000000; sample SD 2.000000.
Large values 1,000,000 to 1,000,002same modelMean 1000001.000000; population variance 0.666667; population SD 0.816497; sample variance 1.000000; sample SD 1.000000.
Decimals 1.1, 2.2, 3.3same modelMean 2.200000; population variance 0.806667; population SD 0.898146; sample variance 1.210000; sample SD 1.100000.
Two values 0 and 10same modelMean 5.000000; population variance 25.000000; population SD 5.000000; sample variance 50.000000; sample SD 7.071068.
Spaces after commassame modelMean 5.000000; population variance 4.000000; population SD 2.000000; sample variance 4.571429; sample SD 2.138090.
1 to 12same modelMean 6.500000; population variance 11.916667; population SD 3.452053; sample variance 13.000000; sample SD 3.605551.
0, 0, 0, 1same modelMean 0.250000; population variance 0.187500; population SD 0.433013; sample variance 0.250000; sample SD 0.500000.

Who uses this

Accuracy & limitations

The calculator does the arithmetic exactly — the mean is the sum divided by the count, the population variance divides the sum of squared deviations by n, the sample variance by n − 1, and the standard deviations are the square roots — and every figure on this page is checked against an independent model. What it cannot do is choose population or sample for you: if your numbers are the whole group, use the population figures; if they are a sample, use the sample figures. It also takes one dataset at a time — two datasets side by side need two runs, and the probability-distribution-calculator page covers the normal, binomial and Poisson distributions. And the sample standard deviation is 2.138090 unrounded 2.138090 on the defaults — the page prints the unrounded figure so the rounding does not mislead you.

Cite this calculator

Mean = sum / count; population variance = sum of squared deviations / count; population standard deviation = square root of the population variance; sample variance = sum of squared deviations / (count − 1); sample standard deviation = square root of the sample variance. On the defaults — 2, 4, 4, 4, 5, 5, 7, 9 — the mean is 5.000000, the population variance is 4.000000, the population standard deviation is 2.000000, the sample variance is 4.571429 and the sample standard deviation is 2.138090. Largest value to add for a population SD of at most 2.5: 10. Largest value to add for a population SD of at most 2.1: 7. Largest value to add for a sample SD of at most 2.5: 9. Smallest value to add for a mean of at least 6: 14. Largest value to add for a mean of at most 5.5: 9. Smallest value to add for a sample variance of at least 7: 11. Source: Bright Side Kit, brightoolbox.com.

Embed this calculator

Frequently asked questions

What is standard deviation?

It is how spread out a set of numbers is: the average distance from the mean, roughly. On 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2.000000 — the values sit about 2 away from 5, on average.

How do I calculate standard deviation?

Work out the mean, subtract it from each value, square each difference, average the squares, and take the square root. On the defaults the squared differences add to 32, the population variance is 32 ÷ 8 = 4, and the standard deviation is the square root of 4, which is 2.

What is the difference between population and sample standard deviation?

The population one divides by n, the sample one by n − 1. Use the population figure when your numbers are the whole group (2.000000 here) and the sample figure when they are a sample of a bigger group (2.138090). The sample figure is always a little higher.

What is variance?

It is the standard deviation squared: the average of the squared deviations from the mean. On the defaults the population variance is 4.000000 and the sample variance is 4.571429. Quote the standard deviation, not the variance — it is in the same units as your numbers.

What does a standard deviation of 0 mean?

It means every value is the same: 5, 5, 5, 5 has a mean of 5 and both variances 0. There is no spread to measure.

Can standard deviation be negative?

No — it is a square root, so it is 0 or positive. The deviations from the mean can be negative (a value below the mean), but squaring them makes them positive before they are averaged.

Why divide by n − 1 for a sample?

Because a sample underestimates the spread: the sample mean is itself fitted to the sample, so the deviations from it are a little too small. Dividing by n − 1 instead of n corrects for that — it is called Bessel's correction.

What if my dataset has one value?

Then the mean is that value, the population variance is 0, and the sample variance is undefined — there is nothing to divide by n − 1. The calculator shows the sample figures as a dash.