What Is Standard Deviation?
Standard deviation measures how spread out numbers are around their average. A small standard deviation means the values sit close to the mean. A large one means they are widely scattered. Two classes can both average 70% on a test, but if one class has a standard deviation of 3 and the other 15, their results look very different: one class scored consistently, and the other ranged from failing to excellent.
Standard deviation is the most widely used measure of variability in statistics, science, finance, quality control and research. Investors use it as a measure of risk (volatility). Manufacturers use it to keep parts within tolerance (Six Sigma). Teachers use it to understand score distributions, and scientists report it alongside every measured average. This calculator gives both the sample and population versions, with the full working.
How to Use the Standard Deviation Calculator
- Enter or paste your numbers, separated by commas, spaces, tabs or new lines. Copying a column from Excel or Google Sheets works.
- Choose sample or population. If your numbers are a subset of a bigger group (most real-world data), choose sample. If they are every member of the group, choose population.
- Read the result, along with the variance, mean, standard error and coefficient of variation.
- Follow the steps and the deviation table to see exactly how the answer was calculated, which is ideal for homework.
Standard Deviation Formulas
| Population (σ) | Sample (s) | |
|---|---|---|
| Variance | σ² = Σ(x − μ)² / N | s² = Σ(x − x̄)² / (n − 1) |
| Standard deviation | σ = √[Σ(x − μ)² / N] | s = √[Σ(x − x̄)² / (n − 1)] |
| Excel / Sheets | STDEV.P() | STDEV.S() or STDEV() |
How to Calculate Standard Deviation by Hand
Example data: 10, 12, 23, 23, 16, 23, 21, 16 (n = 8).
- Mean: sum = 144, and 144 ÷ 8 = 18.
- Deviations: subtract 18 from each value: −8, −6, 5, 5, −2, 5, 3, −2.
- Square them: 64, 36, 25, 25, 4, 25, 9, 4.
- Sum of squares: 192.
- Variance: population 192 ÷ 8 = 24; sample 192 ÷ 7 ≈ 27.43.
- Square root: population σ = √24 ≈ 4.899; sample s = √27.43 ≈ 5.237.
Sample vs Population: Why n − 1?
When you only have a sample, its mean is calculated from the same data, so the values are on average a little closer to it than to the true population mean. Dividing by n − 1 instead of n (called Bessel's correction) corrects this underestimate and gives an unbiased estimate of the population variance. The difference matters for small samples and becomes negligible for large ones. If in doubt, use the sample version: survey results, experiment measurements and quality-control samples are all samples.
The 68–95–99.7 Rule
For data that follows a normal (bell-curve) distribution, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. The calculator shows these ranges for your data and how many of your values actually fall inside each, a quick check of whether your data looks normal. Values beyond two or three standard deviations are candidates for outliers, and their z-scores (distance from the mean in standard deviations) are highlighted in the table.
Related Measures
- Variance: the standard deviation squared, in squared units.
- Standard error of the mean (SEM): s ÷ √n. It shows how precisely the sample mean estimates the true mean, and it's used for confidence intervals.
- Coefficient of variation (CV): SD ÷ mean × 100%. This relative spread lets you compare data measured on different scales.
- z-score: (x − mean) ÷ SD, where each value sits relative to the others.
Features
- Sample and populations and σ, with both shown for comparison.
- Full workingFive clear steps and a deviation table.
- z-scoresPossible outliers highlighted.
- SEM and CVStandard error and relative spread.
- Empirical rule68–95–99.7 ranges checked against your data.
- Paste from spreadsheetsAny separator works.
Frequently Asked Questions
Should I use sample or population standard deviation?
Use population only when your data includes every member of the group you're describing. Otherwise, which is most of the time, use sample (n − 1).
What does a standard deviation of 0 mean?
All values are identical; there is no spread at all.
Can standard deviation be negative?
No. It's the square root of an average of squares, so it's always zero or positive.
What is a "good" standard deviation?
It depends on context. Compare it with the mean using the coefficient of variation: under about 10% is usually considered low variability.
What's the difference between variance and standard deviation?
Variance is the average squared deviation. Standard deviation is its square root, which puts it back into the original units, so it's easier to interpret.