Standard deviation calculator: how spread out are my numbers?
Paste or type your numbers to see how far they typically sit from their mean. Choose sample or population, and follow every step from the mean to the square root.
Standard deviation calculator
I want the standard deviation of 8 numbers as a sample.
Standard deviation
2.1381
The sample standard deviation is about 2.1381: the values are typically about 2.1381 away from the mean of 5. Of the 8 values, 6 lie within one standard deviation, from 2.8619 to 7.1381.
- 4.5714Variance (s²)
- 5Mean
- 42.76%Coefficient of variation (SD ÷ mean)
- 2Population SD (σ), dividing by n
How the standard deviation calculator works it out
- Find the mean: 40 ÷ 8 = 5.
- Subtract the mean from each value and square the result, so negatives count too (see the table).
- Add the squares: Σ(x − mean)² = 32.
- Divide by n − 1 = 7, because the data is a sample: variance s² = 32 ÷ 7 = 4.5714.
- Take the square root: s = √4.5714 = 2.1381.
- Within 1, 2 and 3 SD of the mean: 6 of 8 (75%), 8 of 8 (100%), 8 of 8 (100%). For a normal distribution that would be about 68.27%, 95.45%, 99.73%.
Each value's distance from the mean, its square and its z-score (distance in standard deviations). Marked rows are 2 or more SD away.
| Value | x − mean | Squared | z-score |
|---|---|---|---|
| 2 | −3 | 9 | −1.4031 |
| 4 | −1 | 1 | −0.4677 |
| 4 | −1 | 1 | −0.4677 |
| 4 | −1 | 1 | −0.4677 |
| 5 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 |
| 7 | +2 | 4 | +0.9354 |
| 9 | +4 | 16 | +1.8708 |
| Total | 0 | 32 |
How to use the standard deviation calculator
- Your numbers: type or paste them, separated by commas, spaces or new lines. A column copied from a spreadsheet works. Write 1250, not 1,250, because a comma separates numbers.
- Your data is: Sample when the numbers are part of a larger group you want to describe (divides by n − 1). Population when they are the whole group (divides by n). If you are not sure, a sample is the usual choice.
- Read the answer: the standard deviation is on top, with the variance, the mean and the coefficient of variation. The bar shows the range from one standard deviation below the mean to one above.
When to use a standard deviation calculator
Use it to see how consistent a set of numbers is: test scores in a class, delivery or waiting times, daily sales, measurements from a machine, or lab results. Two lists can have the same mean and a very different spread, and the standard deviation shows that difference in the unit of the data. It is also the value asked for in many statistics questions, together with the variance and z-scores.
For the mean, mode and range of the same list, use the average calculator. For the middle value, the quartiles and outliers, use the median calculator.
Standard deviation calculator at a glance
What it does
Finds the mean, each deviation and its square, the sum of squares, the variance and the standard deviation for a sample (n − 1) or a population (n), with z-scores and the share of values within 1, 2 and 3 SD.
Who it's for
Students, teachers, lab and quality staff, and anyone comparing how steady two sets of numbers are.
Watch out for
Pick sample or population first: for small lists the answers differ a lot. The standard deviation is the square root of the variance, not the variance itself.
How the standard deviation calculator works
The standard deviation measures how far the values typically are from their mean. Take each value's distance from the mean, square it so that values below and above count the same, add the squares and divide. That gives the variance. Its square root, the standard deviation, is back in the same unit as your data: dollars, points or millimeters.
With your numbers: s = √(32 ÷ 7) = √4.5714 = 2.1381.
Divide by n when your numbers are the whole group you care about (population, σ). Divide by n − 1 when they are a sample from a larger group (sample, s): a sample tends to sit closer to its own mean than to the true mean, and the smaller divisor corrects for that. The difference is large for a few values and fades as the list grows. For data shaped like a bell curve, about 68% of values fall within 1 SD of the mean, 95% within 2 and 99.7% within 3; the steps show how your list compares.
For the mean, mode and range, use the average calculator. For the middle value and the quartiles, which a few extreme values move less, use the median calculator. To express a spread as a share of the mean yourself, use the percentage calculator.
Standard deviation calculator: worked examples
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9 as a sample?
The mean is 40 ÷ 8 = 5. The squared deviations add up to 32. As a sample, divide by 8 − 1 = 7: variance 4.571. The standard deviation is √4.571 = 2.138.
Common mistake: dividing by 8. That gives 2, the population standard deviation, which is only right when these 8 values are the whole group.
Five test scores: 85, 92, 78, 90 and 88. What is the sample standard deviation?
Mean 86.6. Deviations −1.6, 5.4, −8.6, 3.4, 1.4; squared 2.56, 29.16, 73.96, 11.56, 1.96, which add up to 119.2. Divide by 4: 29.8. √29.8 = 5.46 points.
Common mistake: adding the deviations without squaring them. They always add up to 0, so the spread seems to vanish.
Class A scored 78, 82, 85, 90 and class B 60, 75, 95, 100. Which class is more consistent?
The means are close (83.75 and 82.5), but the sample standard deviations are 5.06 for A and 18.48 for B. Class A is far more consistent.
Common mistake: comparing only the means and calling the classes equal.
In the five test scores above, how unusual is the score of 90?
z = (90 − 86.6) ÷ 5.459 = 0.62: about two thirds of a standard deviation above the mean, which is ordinary.
Common mistake: dividing by the variance (29.8) instead of the standard deviation, which gives a z-score of 0.11.
A standard deviation calculator in Excel and Google Sheets
Put your numbers in column A, from A2 down. The functions ignore empty cells and text, so the range can be longer than your list.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| A2:A100 | Your numbers | 2, 4, 4, 4, … |
| B2 | Sample standard deviation | =STDEV.S(A2:A100) |
Sample standard deviation (n − 1)
=STDEV.S(A2:A100) Population standard deviation (n)
=STDEV.P(A2:A100) Sample variance
=VAR.S(A2:A100) Coefficient of variation in percent
=STDEV.S(A2:A100)/AVERAGE(A2:A100)*100 z-score of the value in A2
=STANDARDIZE(A2,AVERAGE($A$2:$A$100),STDEV.S($A$2:$A$100)) Use VAR.P for the population variance. The older STDEV and STDEVP give the same results as STDEV.S and STDEV.P. All of these work the same in Google Sheets.
Standard deviation calculator: frequently asked questions
How do you calculate the standard deviation?
Find the mean, subtract it from each value, square each difference and add the squares. Divide by n − 1 for a sample or by n for a population, then take the square root. For 5 and 7: mean 6, squares 1 and 1, sum 2, sample SD √(2 ÷ 1) = 1.414.
Should I use the sample or the population standard deviation?
Use the population version when your list is the whole group, such as every employee of a small firm. Use the sample version when the list stands for a bigger group, such as 50 customers out of thousands. Most homework, surveys and experiments use the sample version.
What is the difference between variance and standard deviation?
The variance is the average squared distance from the mean, in squared units (points², dollars²). The standard deviation is its square root, back in the unit of the data, which makes it easier to read.
What is a high or low standard deviation?
It depends on the mean. A standard deviation of 5 is small for house prices and large for shoe sizes. The coefficient of variation (SD ÷ mean) puts it in proportion: 5.46 on a mean of 86.6 is 6.3%.
Can the standard deviation be 0 or negative?
It is 0 when every value is the same, such as 10, 10, 10. It is never negative, because it is the square root of a sum of squares.
What is the 68-95-99.7 rule?
For data shaped like a bell curve, about 68% of the values lie within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3. The calculator counts how many of your values do, so you can see how close your list is to that shape.
Other math calculators
- Average calculator
- Decimal to fraction
- Fraction calculator
- Fraction to decimal
- Median calculator
- Percent change calculator
- Percent difference calculator
- Percent increase calculator
- Percent off calculator
- Percentage calculator
- Ratio calculator
- Rounding calculator
- Scientific notation calculator
- Simplify fractions calculator
- Square root calculator
- Weighted average calculator
Report a problem with this calculator · Sponsor this calculator