How to use the standard deviation calculator
- Type or paste your numbers, separated by commas, spaces or new lines.
- Choose whether your data is a sample or the whole population.
You'll see the standard deviation and all the common summary statistics. Below the calculator, the steps table shows each value's difference from the mean and its square, so you can follow or check the working.
Standard deviation formulas
Mean x̄ = Σx ÷ n
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
Population: σ = √( Σ(x − x̄)² ÷ n )
Variance = standard deviation²
Example
Take the numbers 10, 12, 23, 23, 16, 23, 21, 16.
- There are 8 numbers adding to 144, so the mean is 144 ÷ 8 = 18.
- The differences from the mean are −8, −6, 5, 5, −2, 5, 3, −2.
- Their squares are 64, 36, 25, 25, 4, 25, 9, 4, which add up to 192.
- Sample variance = 192 ÷ 7 = 27.43, so the sample standard deviation is √27.43 = 5.237.
- Population variance = 192 ÷ 8 = 24, so the population standard deviation is √24 = 4.899.
The median is 18.5, the mode is 23 (it appears three times) and the range is 23 − 10 = 13.
The other results explained
| Result | What it means |
|---|---|
| Median | The middle value when sorted (the average of the two middle values for an even count). |
| Mode | The value that appears most often. There can be several, or none if no value repeats. |
| Range | Largest value minus smallest. |
| Standard error | s ÷ √n: how precisely the sample mean estimates the true mean. |
| Coefficient of variation | Standard deviation as a percentage of the mean, for comparing spread between data on different scales. |
In spreadsheets, STDEV.S gives the sample standard deviation and STDEV.P the population one.
Frequently asked questions
Should I use sample or population standard deviation?
Use the sample standard deviation when your numbers are a sample from a bigger group you want to describe, which is the usual case: survey answers, test results, measurements. Use population standard deviation only when you have every member of the group, such as the scores of everyone in one class when you only care about that class.
Why does the sample formula divide by n − 1?
A sample's values sit closer to their own mean than to the true population mean, so dividing by n would underestimate the spread. Dividing by n − 1 (Bessel's correction) fixes that bias. With large samples the two results are almost the same.
What does standard deviation tell me?
How spread out the numbers are around the average. A small standard deviation means most values are close to the mean; a large one means they're scattered. For data with a roughly bell-shaped distribution, about 68% of values fall within one standard deviation of the mean and about 95% within two.
How do I enter my data?
Separate numbers with commas, spaces, semicolons or new lines. You can copy a column from Excel or Google Sheets and paste it straight in. Negative numbers and decimals with a point are fine.