Standard Deviation Calculator
Guide: Mean, Median, Mode and Standard Deviation: A Plain Guide
- Standard deviation (sample)
- 2.13809
- Standard deviation (population)
- 2
- Mean
- 5
- Variance (sample)
- 4.571429
- Variance (population)
- 4
- Standard error
- 0.755929
- Minimum
- 2
- Maximum
- 9
- Quartiles (Q1, Q3)
- 4, 6
- Median
- 4.5
- Range
- 7
- Count
- 8
Divides by n − 1
Divides by n
Working
Mean = 5. For each number, subtract the mean and square the result. Add them up (32), divide by 8 for the population or 7 for a sample, then take the square root.
| Number | Minus 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 |
Nothing you enter or choose here leaves your device. This tool runs in your browser.
A worked example
Take eight numbers: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. The working table shows each number minus the mean, squared:
| Value | Minus 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 |
| Sum | 32 |
For a population, divide 32 by 8 to get a variance of 4, and take the square root: a standard deviation of 2. For a sample, divide 32 by 7, which gives a variance of 4.571 and a standard deviation of 2.138. The sample figure is slightly larger, on purpose.
Sample or population?
Use population when your numbers are every value that exists, such as the scores of all 30 students in a class if you only care about that class. Use sample when your numbers are a part of a larger group, such as a survey of 200 customers that stands in for all customers. A sample tends to understate the real spread, and dividing by one less than the count corrects for that. If in doubt, you almost certainly have a sample.
What the number means
Standard deviation is a typical distance from the mean, in the same units as the data. Test scores of 62, 70, 75, 80 and 88 have a mean of 75 and a sample standard deviation of 9.85. About two-thirds of values in a bell-shaped set fall within one standard deviation of the mean, and about 95 percent within two. Here that would mean most scores between 65 and 85.
| Two classes, both with a mean of 75 | Scores | Standard deviation |
|---|---|---|
| Class A | 73, 74, 75, 76, 77 | About 1.6 |
| Class B | 55, 65, 75, 85, 95 | About 15.8 |
The averages are the same, but class B is far more spread out. That's the information the mean alone hides.
Common questions
- Why no sample result for one number? A sample divides by n minus 1, which would be zero.
- Can it be negative? No. It's a square root of a sum of squares.
- What if it's zero? Every value is the same.
- Does one extreme value matter? A lot. Squaring gives outliers heavy weight, so check for typing slips like 900 for 90.
Paste a column from a spreadsheet, and text that isn't a number is skipped. Numbers stay in your browser. For the center of the data, use the mean, median and mode calculator, and read the guide to the measures for when each is useful.
Written by Akinrinmade Michael · Updated October 24, 2026 · General information, not professional advice
How to use
- 1Type or paste your numbers, separated by commas, spaces or new lines.
- 2Read the sample and population standard deviation.
- 3Check the working table to see how it was calculated.
Frequently asked questions
What is the difference between sample and population?
Use population when your numbers are every value there is. Use sample when they are a part of a larger group. A sample divides by n - 1, which gives a slightly larger result.
What does standard deviation tell me?
How spread out the numbers are around the mean. A small value means they are close together, and a large value means they are widely spread.
How is it calculated?
Subtract the mean from each number, square the results, add them up, divide by n (or n - 1 for a sample) to get the variance, then take the square root.
Why does one number give no sample result?
A sample needs at least two numbers, because it divides by n - 1, which would be zero.
Is my data sent anywhere?
No. Everything is worked out in your browser and nothing is sent to us.
Read the guide
Learn how this works and how to get the most from it.
Money, health & time
Mean, Median, Mode and Standard Deviation: A Plain Guide
What each average tells you, when the median beats the mean, how standard deviation measures spread, and when to use sample or population.
3 min read
Related tools
Mean, Median & Mode Calculator
Find the average, median, mode and range of any list of numbers.
Percentage Calculator
Find percentages, percentage change and percent increase or decrease.
Fraction Calculator
Add, subtract, multiply and divide fractions and mixed numbers.
Unit Converter
Convert length, weight, temperature, volume, speed and more.