CALCULATOR · Math
Standard Deviation Calculator
Sample or population standard deviation with every step shown: the mean, each deviation and its square, the variance and its root.
Show formula
Inputs
1, 2 3; 4.5 …
Part of a larger group, such as 30 people from one town. Most real data is a sample.
Result
Your result appears here
Enter Numbers and the result fills in as you type.
How it works
- Paste or type your numbers, separated by commas, spaces or new lines.
- Choose Sample if the numbers are part of a larger group you want to describe, or Population if they are the whole group.
- Read the standard deviation, then follow the working: the mean, each value’s deviation and square, their sum, the variance and its square root.
Frequently asked questions
Should I use the sample or the population standard deviation?
Use the sample version (divide by n − 1) when your numbers are drawn from a larger group whose spread you want to estimate: survey answers, test scores from a few classes, measurements from one batch. Use the population version (divide by n) only when the numbers are every member of the group you care about. When in doubt it is a sample, which is also what the STDEV.S function in spreadsheets assumes.
Why divide by n − 1 instead of n?
Because the deviations are measured from the sample’s own mean, which sits closer to the sample’s values than the true population mean does. That makes the squared deviations slightly too small on average, and dividing by n − 1 instead of n (Bessel’s correction) removes that bias from the variance. With 6 values it raises the variance by a fifth; with 1,000 values the difference is 0.1%.
What is the difference between variance and standard deviation?
The variance is the average squared deviation, so it is in squared units: cm², kg², points². The standard deviation is its square root, back in the units of the data, which is why it is the figure people quote. For 4, 8, 15, 16, 23 and 42 the sample variance is 182 and the standard deviation about 13.49.
What do “within 1 standard deviation” and “within 2” tell me?
How many of your values sit within one or two standard deviations of the mean. For data that follows a bell-shaped normal distribution, about 68% of values fall within one and 95% within two. Skewed data or outliers can move your own counts well away from those figures, and that difference is itself worth knowing.
What are the standard error and the coefficient of variation?
The standard error of the mean, s ÷ √n, says how precisely the sample mean estimates the population mean; it shrinks as the sample grows. The coefficient of variation divides the standard deviation by the mean, giving the spread as a percentage of the mean, so data on different scales can be compared. It is undefined when the mean is 0 and hard to read when values can be negative.
Examples
- Sample standard deviation of 4, 8, 15, 16, 23, 42
- About 13.49. The mean is 18, the squared deviations add up to 910, and 910 ÷ (6 − 1) = 182 is the variance; its square root is 13.4907.
- Population standard deviation of 2, 4, 4, 4, 5, 5, 7, 9
- Exactly 2. The mean is 5, the squared deviations total 32, and 32 ÷ 8 = 4. Treated as a sample, the same numbers give 32 ÷ 7 = 4.571 and a standard deviation of about 2.138.
- How many of 4, 8, 15, 16, 23, 42 lie within one standard deviation of the mean?
- Four of the six (67%): 8, 15, 16 and 23 fall between 4.51 and 31.49, which is 18 ± 13.49, while 4 and 42 lie outside it.
Standard Deviation vs Average Calculator
Both read a list of numbers. This page works through the spread; the Average Calculator summarises the list as a whole.
- Average Calculator — You want the mean, median, mode, range and quartiles of a list, with both standard deviations as part of the summary.
- Percentage Change Calculator — You are comparing a before and an after value rather than describing how spread out a list is.
Related calculators
- Average CalculatorMean, median, mode and range for a list of numbers — plus both standard deviations.Math
- Percentage Change CalculatorMeasure increase or decrease between two values as a signed percentage.Math
- Ratio CalculatorSimplify any ratio to smallest whole-number terms, with decimal value and share of total.Math
- Percentage CalculatorThree percentage questions in one tool: P% of X, X is what % of Y, X is P% of what.Math