Standard Deviation Calculator
Enter numbers separated by commas, spaces, or new lines.
What standard deviation actually tells you
If you are asking, “How do I calculate standard deviation?”, you are really asking how spread out your data is. Standard deviation measures how far values typically sit from the mean (average). A small standard deviation means your numbers cluster tightly around the average. A large standard deviation means your numbers are more spread out.
In statistics, this is one of the most useful measures of variability. It appears everywhere: finance, quality control, sports analytics, machine learning, scientific research, and everyday decisions.
The formulas (population vs. sample)
Population standard deviation
Use this when you have data for the entire population you care about.
σ = √[ Σ(x - μ)2 / N ]
- σ = population standard deviation
- x = each data value
- μ = population mean
- N = total number of values
Sample standard deviation
Use this when your data is only a sample of a larger population.
s = √[ Σ(x - x̄)2 / (n - 1) ]
- s = sample standard deviation
- x̄ = sample mean
- n = sample size
- (n - 1) = Bessel’s correction
How to calculate standard deviation step by step
- Find the mean (average).
- Subtract the mean from each value (deviations).
- Square each deviation.
- Add all squared deviations.
- Divide by
N(population) orn - 1(sample). - Take the square root.
Worked example (population)
Data: 2, 4, 4, 4, 5, 5, 7, 9
- Mean = (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 5
- Deviations: -3, -1, -1, -1, 0, 0, 2, 4
- Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16
- Sum = 32
- Population variance = 32 / 8 = 4
- Population standard deviation = √4 = 2
So the standard deviation is 2. On average, data points tend to sit about 2 units away from the mean.
Worked example (sample)
Sample data: 10, 12, 9, 11, 13
- Mean = 11
- Deviations: -1, 1, -2, 0, 2
- Squared: 1, 1, 4, 0, 4
- Sum = 10
- Sample variance = 10 / (5 - 1) = 2.5
- Sample standard deviation = √2.5 ≈ 1.5811
When to use population vs. sample
- Population standard deviation: You have all values (for example, all employees in one small team).
- Sample standard deviation: You only collected part of the total group (for example, survey responses from 200 out of 10,000 customers).
A quick rule: if you plan to generalize beyond your observed data, use the sample formula.
Common mistakes to avoid
- Mixing up variance and standard deviation (variance is before square root).
- Using
ninstead ofn - 1for sample data. - Rounding too early in the middle of calculations.
- Assuming high standard deviation is always bad; it depends on context.
How to interpret your result
Standard deviation is in the same units as your data. If your mean test score is 80 and standard deviation is 5, most scores are relatively close to 80. If standard deviation is 20, scores vary much more.
For roughly bell-shaped distributions, this common guide is useful:
- About 68% of values are within 1 standard deviation of the mean.
- About 95% are within 2 standard deviations.
- About 99.7% are within 3 standard deviations.
Final takeaway
To calculate standard deviation: compute the mean, measure each value’s distance from the mean,
square those distances, average them (using N or n - 1), then take the square root.
Use the calculator above for fast results, and use the right formula based on whether your numbers represent
a full population or just a sample.