Ready to calculate?
Use our free Standard Deviation Calculator — no sign-up required.
Standard deviation is the most common way to describe how spread out a set of numbers is. This guide explains what it is, the difference between population and sample standard deviation, how to calculate it step by step with a worked example, how it relates to variance and the normal distribution, where it is used and the mistakes to avoid. It is built around the Standard Deviation Calculator, so you can test every idea with your own data.
Key Takeaways
- Standard deviation is the square root of the variance, the average squared distance from the mean.
- Use n in the divisor for a whole population and n − 1 for a sample.
- The sample standard deviation is always a little larger than the population value for the same data.
- For normal data, about 68%, 95% and 99.7% of values lie within 1, 2 and 3 standard deviations of the mean.
- Outliers have a large effect, so check the data and the shape before drawing conclusions.
Author & Formula Review
Author
Founder & Lead Developer
Reviewed by
Formula QA, source review, and calculator maintenance
Last reviewed
Math & Geometry calculator
Formulas, rounding behavior, and worked examples are checked against hand calculations and calculator QA scenarios before publishing.
Primary Sources
- NIST/SEMATECH e-Handbook of Statistical Methods
Reference for standard scores and statistical definitions.
Results are general-purpose estimates. Verify critical figures against official sources or a qualified professional. See our sources and methodology and editorial policy.
What standard deviation is
Standard deviation is a measure of how spread out a set of numbers is around its mean. If every value equals the mean the standard deviation is zero. The further the values are from the mean on average, the larger the standard deviation. It is expressed in the same units as the data, so a standard deviation of 3 cm describes lengths measured in centimeters.
The range tells you the distance between the smallest and largest values, but it depends only on two numbers. Standard deviation uses every value, which makes it a better summary of spread, though it is also more sensitive to outliers.
- Zero means all values are equal
- Uses every value, unlike the range
- Same units as the data
Population versus sample standard deviation
The population standard deviation, written σ, applies when you have data for every member of the group. The sample standard deviation, written s, applies when your data are a sample taken from a larger group and you want to estimate the spread of that larger group.
The formulas differ only in the divisor. The population version divides the sum of squared deviations by n. The sample version divides by n − 1, called Bessel's correction, because deviations from the sample mean are smaller on average than deviations from the true mean. Dividing by n − 1 corrects that bias. For large samples, n and n − 1 are close, so the two results are nearly equal.
- σ divides by n; s divides by n − 1
- Samples are the usual case in practice
- The difference matters most for small datasets
How to calculate standard deviation step by step
First find the mean by adding the values and dividing by the count. Second, subtract the mean from each value to get the deviations. Third, square each deviation. Fourth, add the squares. Fifth, divide by n for a population or n − 1 for a sample to get the variance. Sixth, take the square root.
For 2, 4, 4, 4, 5, 5, 7 and 9, the mean is 5, the squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, and they add up to 32. The population variance is 4 and σ = 2. The sample variance is 32 ÷ 7 = 4.5714 and s ≈ 2.1381. The calculator shows each of these steps for your own data.
- Mean → deviations → squares → sum
- Divide by n or n − 1 for the variance
- Square root gives the standard deviation
Variance and the coefficient of variation
Variance is the average squared deviation, so its units are the square of the data units. It is useful in mathematics because variances of independent quantities add, but it is harder to interpret directly. Standard deviation takes the square root to return to the original units.
The coefficient of variation divides the standard deviation by the mean and is expressed as a percentage. It lets you compare the relative variability of datasets with different units or scales, for example the weights of mice and elephants. It is not meaningful when the mean is close to zero.
- Variance is in squared units
- CV compares relative spread
- Avoid CV when the mean is near zero
The normal distribution and the 68-95-99.7 rule
Many natural measurements follow a bell-shaped normal distribution that is fully described by its mean and standard deviation. For a normal distribution about 68.27% of values lie within one standard deviation of the mean, 95.45% within two and 99.73% within three. The table in this guide lists these shares and the common 95% and 99% cut-offs.
The rule applies only to roughly bell-shaped data. Skewed data, data with several peaks or data with heavy tails do not follow it, so check the histogram. A z-score tells you how many standard deviations a value is from the mean, which lets you find percentiles for normal data.
- 68.27% within ±1 SD, 95.45% within ±2 SD, 99.73% within ±3 SD
- Only for roughly bell-shaped data
- Use the histogram to check the shape
Real-world applications
In science, standard deviation describes the precision of repeated measurements. In manufacturing, it is used to monitor whether parts meet specifications, such as in six sigma quality control. In finance, the standard deviation of returns is a common measure of volatility and risk.
In education, standard deviation shows how much scores vary and is used to standardize test results. In medicine and research, it summarizes variation in measurements such as blood pressure and is used with the sample size to compute confidence intervals and test hypotheses. In everyday life, it can describe how consistent your commute time, your expenses or your sports results are.
- Measurement precision in science
- Quality control in manufacturing
- Volatility in finance and variation in test scores
Common mistakes to avoid
Using the population formula for a sample is the most frequent error, and it underestimates the spread. Forgetting to take the square root leaves you with the variance. Rounding the mean before squaring deviations can add error, especially with small datasets. Mixing units, such as centimeters and meters in one list, gives meaningless results.
Outliers can dominate the result because deviations are squared, so inspect the data and the share-of-total column. Finally, remember that standard deviation by itself says nothing about the shape of the data. Always look at a chart before drawing conclusions.
- Match the formula to your data
- Do not round the mean early
- Check outliers and the shape of the data
Quick reference: The 68-95-99.7 rule for normal data
Worked example: shares of values within a number of standard deviations of the mean for a normal distribution. These shares apply only to roughly bell-shaped data.
| Range around the mean | Share of values | Meaning |
|---|---|---|
| Within ±1 standard deviation | 68.27% | Most values |
| Within ±2 standard deviations | 95.45% | Nearly all values |
| Within ±3 standard deviations | 99.73% | Almost every value |
| Within ±1.96 standard deviations | 95% | The 95% interval |
| Within ±2.576 standard deviations | 99% | The 99% interval |
Frequently Asked Questions
Is standard deviation the same as the average deviation?
No. The mean absolute deviation averages the absolute differences from the mean. Standard deviation squares the differences first, which gives larger deviations more weight.
What is a good sample size for standard deviation?
Larger samples give more reliable estimates. With very few values the estimate is uncertain, so interpret it carefully and consider reporting the sample size.
How do I find standard deviation in Excel or Google Sheets?
Use STDEV.P for a population and STDEV.S for a sample, and VAR.P or VAR.S for the variance.
Can I use the standard deviation with categorical data?
No. Standard deviation needs numeric values on a meaningful scale, such as heights, scores or prices.
What is a z-score?
A z-score is a value minus the mean, divided by the standard deviation. It shows how many standard deviations a value is from the mean.
What is the standard deviation of a constant list?
Zero. If every value is the same, there is no spread.
Does adding a constant change the standard deviation?
No. Adding the same number to every value shifts the mean but does not change the spread. Multiplying every value by a constant multiplies the standard deviation by the absolute value of that constant.
Why is the standard deviation of my data larger than half the range?
This is possible for data with a few extreme values. The standard deviation depends on all values and squares the deviations, so extreme values affect it strongly.
Related Guides
Math & Geometry
Z-Score Calculator Guide
Find standardized distance from the mean with percentile and probability outputs.
Math & Geometry
Percentage Calculator Guide
Multi-mode percentage toolbox for common percent questions.
Math & Geometry
Scientific Calculator Guide
Advanced math operations with trig, logs, and factorials.
Math & Geometry
Fraction Calculator Guide
Fraction and mixed-number calculator with simplest form, decimal, percent and steps.
Math & Geometry
Random Number Generator Guide
Random whole numbers, decimals, unique picks and shuffles, with secure or standard randomness.
Math & Geometry
Volume Calculator Guide
Geometry engine for cube, frustum, ellipsoid, torus, hollow cylinder, and more with exports and share links.
More calculator guides
Try the Standard Deviation Calculator
Free, instant, and accurate — calculate now.