CalcWisp

Standard Deviation Calculator

Paste a list of numbers to get the standard deviation and variance, with every deviation squared and summed in a table you can check by hand.

  • Free
  • No sign-up
  • Private

Paste or type numbers separated by commas, spaces or new lines (e.g. a column copied from a spreadsheet).

Choose sample unless you have every member of the group.

Sample standard deviation (s)
2.13809
Variance sยฒ = 4.571429 ยท mean = 5 ยท n = 8
Count
8
Mean
5
Sum of squared deviations
32
Variance (sยฒ)
4.571429
Sample SD (s)
2.13809
Population SD (ฯƒ)
2
Standard error of the mean
0.755929
Coefficient of variation
42.76%
Min / max
2 / 9
Range
7
Deviation table
xx โˆ’ mean(x โˆ’ mean)ยฒz-score
2โˆ’39โˆ’1.403
4โˆ’11โˆ’0.468
4โˆ’11โˆ’0.468
4โˆ’11โˆ’0.468
5000
5000
7240.935
94161.871
Spread around the mean (68โ€“95โ€“99.7 rule for bell-shaped data)
RangeFromToValues insideExpected if normal
mean ยฑ 1s2.86197.13816 of 8 (75%)68%
mean ยฑ 2s0.72389.27628 of 8 (100%)95%
mean ยฑ 3sโˆ’1.414311.41438 of 8 (100%)99.7%
How this was calculated
  1. Count the values: n = 8.
  2. Find the mean: 40 รท 8 = 5.
  3. Subtract the mean from each value and square the result (see the table).
  4. Add the squares: ฮฃ(x โˆ’ mean)ยฒ = 32.
  5. Divide by n โˆ’ 1 = 7 to get the sample variance: 32 รท 7 = 4.571429.
  6. Take the square root: s = โˆš4.571429 = 2.13809.

How this standard deviation calculator works

Standard deviation measures how far values typically sit from their mean. A small standard deviation means the numbers cluster tightly; a large one means they are spread out. This standard deviation calculator computes it the way you would by hand: find the mean, subtract it from every value, square those deviations, add them up, divide, and take the square root. The deviation table shows every intermediate number so you can check your homework line by line.

The only choice is what to divide by. For a sample, s = โˆš(ฮฃ(x โˆ’ xฬ„)ยฒ รท (n โˆ’ 1)). For a whole population, ฯƒ = โˆš(ฮฃ(x โˆ’ ฮผ)ยฒ รท N). Spreadsheets make the same split: STDEV.S is the sample formula and STDEV.P the population formula.

Worked example

Take 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and there are 8 values, so the mean is 5. The deviations are โˆ’3, โˆ’1, โˆ’1, โˆ’1, 0, 0, 2 and 4; squared, they are 9, 1, 1, 1, 0, 0, 4 and 16, which add to 32. Treated as a population, the variance is 32 รท 8 = 4 and the standard deviation is โˆš4 = 2. Treated as a sample, the variance is 32 รท 7 = 4.571 and the standard deviation is 2.138.

Sample or population?

Use the sample formula when your data is a subset you are using to learn about a larger group: a survey, a lab experiment, last month's sales as a guide to every month. That covers nearly all homework and research. Use the population formula only when the list is the entire group you care about, such as the final scores of every student in one class when you only want to describe that class. Dividing by n โˆ’ 1 (Bessel's correction) makes the sample variance slightly larger, compensating for the fact that a sample sits closer to its own mean than to the true one. The difference shrinks as n grows.

Common mistakes

  • Forgetting to square. The raw deviations always add to zero, which is why they are squared first.
  • Forgetting the square root. That gives the variance, which is in squared units (dollarsยฒ, cmยฒ) and is not the standard deviation.
  • Using the wrong divisor. If your answer is slightly off from the textbook, try the other mode.

When standard deviation is misleading

The 68โ€“95โ€“99.7 rule (about 68% of values within one standard deviation of the mean, 95% within two, 99.7% within three) only holds for roughly bell-shaped data. Incomes, house prices and wait times are skewed, and a single outlier can inflate the standard deviation enormously. Compare the "values inside" column of the spread table with the expected percentages to see how normal your data looks. For skewed data, the median and range from the mean, median, mode calculator often describe it better.

Frequently asked questions

How do you calculate standard deviation?

Find the mean, subtract it from each value and square the result, add the squares, divide by n โˆ’ 1 for a sample (or N for a population), and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the population standard deviation is 2.

Should I use sample or population standard deviation?

Use the sample version (divide by n โˆ’ 1) when your numbers are a subset of a larger group you want to describe, which is most homework and research data. Use the population version (divide by N) only when you have every member of the group.

What is the difference between variance and standard deviation?

Variance is the average squared deviation from the mean; standard deviation is its square root. Standard deviation is in the same units as the data, so it is easier to interpret.

What does a standard deviation tell you?

How spread out the values are around the mean. For roughly bell-shaped data about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three.

Why divide by n โˆ’ 1 for a sample?

A sample's values sit closer to their own mean than to the true population mean, so dividing by n underestimates the spread. Dividing by n โˆ’ 1 (Bessel's correction) removes that bias from the variance.

Learn more

Standard Deviation
Standard deviation is a measure of spread equal to the square root of the variance; it shows how far values typically fall from the mean, in the same units as the data.
Variance
Variance is a measure of spread equal to the average squared distance of values from their mean; its square root is the standard deviation, and it is expressed in squared units.

Related tools