Standard deviation calculator
Paste a list of numbers and get the standard deviation straight away, along with the variance and mean, the working laid out step by step, and a histogram showing how spread out the data is.
- Mean: add the values and divide by the count. 150 ÷ 10 = 15
- Subtract the mean from each value and square the result, then add those squares. The sum of squares is 60
- Divide by n − 1: 60 ÷ 9 = 6.666666667. This is the variance
- Take the square root: √6.666666667 = 2.581988897
| x | x − mean | (x − mean)² |
|---|---|---|
| 12 | −3 | 9 |
| 15 | 0 | 0 |
| 11 | −4 | 16 |
| 19 | 4 | 16 |
| 14 | −1 | 1 |
| 15 | 0 | 0 |
| 18 | 3 | 9 |
| 13 | −2 | 4 |
| 16 | 1 | 1 |
| 17 | 2 | 4 |
| Sum | 0 | 60 |
How to use it
- 1Paste or type your numbers. Commas, spaces, tabs and new lines all work, so you can copy a column straight from a spreadsheet.
- 2Choose sample or population. If your numbers are all the values there are, it is a population. If they are some of the values, used to estimate the rest, it is a sample.
- 3The result updates as you type, with the working underneath.
What standard deviation tells you
Standard deviation measures how far values typically sit from their mean. A small value means the numbers cluster tightly; a large one means they are spread out. It is in the same units as the data, which makes it easier to interpret than the variance: if test scores have a mean of 70 and a standard deviation of 8, a typical score is about 8 points from 70.
For data shaped like a bell curve, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. The normal distribution calculator shows this on the curve.
The formula
For a sample of n values with mean x̄, s = √( Σ(x − x̄)² ÷ (n − 1) ). For a whole population with mean μ, σ = √( Σ(x − μ)² ÷ n ).
- Find the mean.
- Subtract the mean from each value and square the result.
- Add up the squares. This is the sum of squares.
- Divide by n − 1 for a sample, or n for a population. This is the variance.
- Take the square root.
A worked example
Take the values 2, 4, 4, 4, 5, 5, 7, 9. Their mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32.
As a population, the variance is 32 ÷ 8 = 4, and the standard deviation is √4 = 2. As a sample, the variance is 32 ÷ 7 ≈ 4.571, and the standard deviation is about 2.138.
Why a sample divides by n − 1
A sample’s values sit closer to their own mean than to the true mean, so dividing by n would underestimate the spread on average. Dividing by n − 1, known as Bessel’s correction, removes that bias in the variance. With large samples the difference is tiny; with five values it is 25%.
Frequently asked questions
Should I use sample or population standard deviation?
What is the difference between variance and standard deviation?
What does a standard deviation of 0 mean?
Can standard deviation be negative?
How do I find standard deviation on a calculator?
Related tools and guides
Averages, range and quartiles from any list of numbers.
Value to z-score, z-score to percentile, and back.
Probabilities, z-scores and percentiles, shaded on the bell curve.
Intervals for a mean, with the margin of error and working.
Paste numbers, choose the bins, get a chart and frequency table.
Box and whisker plots, dot plots and histograms from a list.
It opens instantly, with no account and nothing to install.