Standard Deviation Calculator
Measure how spread out your numbers are — sample and population standard deviation, with every step shown.
| x | x − mean | (x − mean)² |
|---|
● Your files are processed locally in your browser and are not uploaded to our servers.
How to use the calculator
Paste your numbers, separated by commas, spaces or new lines (you can paste a column from Excel). You get the sample and population standard deviation, the variances, the mean, the standard error, the coefficient of variation, and a table with each value's distance from the mean.
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9 (8 values).
- Mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.
- Squared distances from the mean: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
- Population variance: 32 ÷ 8 = 4 → σ = √4 = 2.
- Sample variance: 32 ÷ (8 − 1) = 4.571 → s = 2.138.
Sample or population?
| Sample (s) | Population (σ) | |
|---|---|---|
| Divide by | n − 1 | n |
| Use when | Your data is a sample of a bigger group (a survey, a test batch) | You have every value of the group (all employees, all games of a season) |
| Excel | =STDEV.S(A2:A100) | =STDEV.P(A2:A100) |
In most real-world cases you have a sample, so use s. Dividing by n − 1 (Bessel's correction) avoids underestimating the spread of the whole population.
How to interpret standard deviation
A small standard deviation means values are close to the mean; a large one means they are spread out. For data that follows a normal (bell-shaped) distribution:
- about 68% of values are within 1 standard deviation of the mean,
- about 95% within 2,
- about 99.7% within 3.
Example: test scores with a mean of 70 and a standard deviation of 10 → about 95% of students scored between 50 and 90.
The other results
- Variance: the standard deviation squared (in squared units).
- Standard error of the mean: s ÷ √n — how precisely the sample mean estimates the true mean. In the example: 2.138 ÷ √8 = 0.756.
- Coefficient of variation: s ÷ mean, as a percentage — compares spread between datasets with different scales.
FAQ
Can standard deviation be negative?
No. It's a square root, so it's always zero or positive. Zero means all values are identical.
How do I calculate the average or median?
Use the Average Calculator or the Median Calculator.
Is my data sent anywhere?
No. All calculations happen in your browser.