- Home
- Statistics
- Standard deviation calculator
Standard deviation calculator
Paste your numbers and choose sample or population: you get the standard deviation, the variance and every step of the calculation.
Your favorites show up first on the home page and under the star at the top (on this browser).
Step by step
| x | x − x̄ | (x − x̄)² |
|---|
The formulas
Sample standard deviation: s = √(Σ(x − x̄)² ÷ (n − 1)). Population standard deviation: σ = √(Σ(x − μ)² ÷ N). The variance is the same without the square root.
Step by step
- Find the mean.
- Subtract the mean from each value.
- Square each difference.
- Add up the squares.
- Divide by n − 1 (sample) or by N (population).
- Take the square root.
With 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squares add up to 32: the population standard deviation is √(32 ÷ 8) = 2 and the sample one is √(32 ÷ 7) ≈ 2.138.
Sample or population?
Use the sample formula when your numbers are a sample taken from a larger group (some students, some measurements) and the population formula when you have every value you care about. Dividing by n − 1 makes up for the sample mean being closer to the data than the true mean.
Frequently asked questions
What does the standard deviation tell me?
How far, typically, the values are from the mean, in the same units as the data. A small one means the values are bunched together; a large one, that they are spread out.
What's the difference between variance and standard deviation?
The variance is the standard deviation squared. The standard deviation is in the same units as your data, which makes it easier to interpret.
Why does the sample one need two values?
Because it divides by n − 1: with a single value that would be dividing by zero.
Is it accurate with long decimals or large numbers?
Yes: it is checked against the certified values of the NIST Statistical Reference Datasets.