Standard Deviation Calculator
How spread out are these numbers?
What this tells you: The middle of a set of numbers and how far they sit from it. The table underneath shows each value, its distance from the mean and that distance squared, so the answer is not just asserted.
Go to the calculatorAlso called: variance calculator · mean median mode calculator · statistics calculator Read the guide Last updated
Result
8 numbers with a mean of 5 and a standard deviation of 2.
This tool shows math, not advice.
Details
| Standard deviation | 2 |
|---|---|
| Variance | 4 |
| Mean | 5 |
| Median | 4.5 |
| Mode | 4 |
| How many numbers | 8 |
| Sum | 40 |
| Range | 7 |
| Smallest | 2 |
| Largest | 9 |
| First quarter | 4 |
| Third quarter | 5.5 |
| Middle half spans | 1.5 |
| Standard error of the mean | 0.7071 |
| Value | Distance from the mean | Squared |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| 1 | 2 |
|---|---|
| 2 | 4 |
| 3 | 4 |
| 4 | 4 |
| 5 | 5 |
| 6 | 5 |
| 7 | 7 |
| 8 | 9 |
How we got this
- The mean is the sum divided by how many there are: 40 / 8 = 5.
- Each number is measured from the mean and that distance is squared. The squares come to 32.
- For a whole group, divide by 8: 32 / 8 = 4, which is the variance.
- The standard deviation is the square root of the variance: 2. It is back in the units of the original numbers, which the variance is not.
About this answer
- Squaring is what stops the distances canceling out: without it they always add to 0, because the mean sits in the middle by definition.
Did this calculator help?
Keep this calculator. Your numbers are in the address, so a bookmark brings them back exactly as you left them. Press Ctrl + D · ⌘ + D
What to do next
Calculators that usually come after this one.
Not quite what you need?
Type your question in plain words and get the calculators that answer it.
No exact match. Try other words, or browse every calculator. Browse all calculators
The standard deviation formula
mean = sum of the values / n
variance = sum of (value - mean) squared / n for a whole group
= sum of (value - mean) squared / (n - 1) for a sample
sd = square root of the variance - n
- how many numbers there are
- value - mean
- how far each number sits from the middle
Only the divisor differs between the two versions, and the difference shrinks as the count grows. With eight numbers it is noticeable; with eight hundred it is not.
Worked through: 2, 4, 4, 4, 5, 5, 7, 9 have a mean of 5. The squared distances add to 32. As a whole group that is 32 over 8, a variance of 4 and a standard deviation of exactly 2. Read as a sample it is 32 over 7, giving 2.138.
How to use it
- Paste or type your numbers, separated by commas, spaces or new lines.
- Say whether they are the whole group or a sample of a larger one.
- Read the standard deviation and the mean, then the rest of the summary.
- The table shows the working, value by value.
Example
These 8 numbers — 2, 4, 4, 4, 5, 5, 7, 9 — have a mean of 5. As a whole group the standard deviation is exactly 2; read as a sample it is 2.138.
Type these numbers into the boxes
- Your numbers
- 2, 4, 4, 4, 5, 5, 7, 9
- What do these numbers represent?
- The whole group
What you get: 8 numbers with a mean of 5 and a standard deviation of 2.
What your answer means
The standard deviation is in the same units as your numbers, which is why it is quoted rather than the variance. Roughly speaking it is the typical distance from the mean. The mean and median moving apart is a hint that one or two values are pulling the average around.
How we calculate · the conventions behind every answer, in one place.
Naming the spread
The idea of a typical distance from the middle is older than the name. Astronomers and surveyors in the eighteenth century were already combining repeated measurements and asking how far apart their readings were, because the answer told them how much to trust the average.
The measure acquired its modern name in 1894, when Karl Pearson called it the standard deviation. Before that it went under several names, and competing measures were in use: the average of the absolute distances is simpler to explain and was seriously considered.
Squaring won because of what it makes possible later. Squared distances add neatly across independent sources of variation, which absolute distances do not, and that single property is what lets variance be decomposed, compared and tested. The price is a measure that is harder to explain, which is why the square root is taken at the end.
What this calculator gives you
- Standard deviation and variance, sample or whole group.
- Mean, median and mode, with the mode left out when nothing repeats.
- Range, smallest, largest, quartiles and the middle half.
- The standard error of the mean.
- A table of every value, its distance from the mean and that distance squared.
- Up to 5000 numbers, separated however you like.
Standard deviation calculator
This standard deviation calculator takes a list of numbers, separated by commas, spaces or new lines. It returns the full summary: mean, median, mode, range, quartiles, variance and standard deviation.
Say whether the numbers are the whole group or a sample of a larger one, and the divisor changes accordingly. The difference is small with many numbers and noticeable with few.
Under the summary is a table showing each value, how far it sits from the mean and that distance squared, so the final figure can be followed rather than taken on trust.
Questions about standard deviation
What does standard deviation measure?
It measures how far numbers typically sit from their mean. A small figure means they cluster close together; a large figure means they are spread out. For the numbers 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5 and the standard deviation is 2, so most of the numbers sit within about 2 of the mean.
How is it worked out, step by step?
First find the mean: the sum divided by the count, here 40 / 8 = 5. Then measure each number's distance from the mean and square it; for this set the squares come to 32. Divide by the count for a whole group, 32 / 8 = 4, which is the variance. The square root of the variance, 2, is the standard deviation.
Which do I use, the sample or the whole-group formula?
Use the whole-group formula when your numbers are every member of the group you care about, such as all the months in a year you are describing. Use the sample formula when your numbers are a part taken from a larger group and you want to estimate the spread of that larger group. The page offers both and shows the working for each.
Why divide by n minus 1 for a sample?
A sample's own mean sits closer to its numbers than the true mean of the larger group does, so the squared distances come out a little too small. Dividing by one less than the count makes up for that. In the default set, the whole-group variance is 32 / 8 = 4; the sample version divides the same 32 by 7 instead, giving a larger figure.
What is the difference between variance and standard deviation?
Variance is the average of the squared distances from the mean; standard deviation is its square root. Squaring puts variance in squared units, which are hard to read, while the square root brings the answer back to the units of the original numbers. For the default set the variance is 4 and the standard deviation is 2.
What else does the page show about the numbers?
Alongside the spread it shows the median, mode, range, quarters and the standard error of the mean. For the default set the median is 4.5, the mode is 4, the range is 7 (from 2 to 9), the first and third quarters are 4 and 5.5, and the standard error of the mean is 0.707. Each describes a different side of the same numbers.
Ask about this calculator
Something the page does not answer? Ask it here. A person reads every question, and the useful ones are answered on this page.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “Standard Deviation Calculator”. Updated 2026-11-29. https://investmentmathcalculator.com/tools/standard-deviation/
This tool shows math, not advice.
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.