Standard Deviation Calculator with Step-by-Step Working
Calculator
Separate numbers with commas, spaces, tabs, semicolons or new lines. You can paste a column from Excel or Google Sheets. Text is ignored.
Results
Spread chart
Step-by-step working
Sample or population?
Use the population standard deviation (σ) when your numbers include every member of the group you care about, such as the test scores of every student in one class. Divide the sum of squares by n.
Use the sample standard deviation (s) when your numbers are a sample taken to estimate a larger group, such as 50 customers surveyed out of thousands. Divide by n − 1 instead. Because a sample's own mean sits closer to its values than the true population mean does, dividing by n would understate the spread; using n − 1, known as Bessel's correction, removes that bias from the variance.
When in doubt, the sample version is the safer default; it is what spreadsheet functions such as STDEV.S and most statistics courses use for data drawn from a larger group.
What standard deviation tells you
- Spread in the data's own units: a standard deviation of 5 points means values typically sit about 5 points from the mean.
- The 68–95–99.7 rule: for roughly bell-shaped (normal) data, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three.
- Comparing groups: two classes can share the same average score while one is far more spread out.
- Finance: the standard deviation of an investment's returns is the usual measure of its volatility.
- Variance vs standard deviation: variance is the standard deviation squared, so it is in squared units; standard deviation brings the spread back to the original units.
Frequently asked questions
How do you calculate standard deviation step by step?
Find the mean by adding the numbers and dividing by how many there are. Subtract the mean from each number and square the result. Add up the squares. Divide that total by n − 1 for a sample or by n for a population to get the variance, then take the square root to get the standard deviation.
What is the difference between sample and population standard deviation?
The population standard deviation divides the sum of squared deviations by n and is used when you have data for the whole group. The sample standard deviation divides by n − 1 and is used when your data is a sample from a larger group, because it corrects the tendency of a sample to understate the true spread.
Why do we divide by n − 1 for a sample?
A sample's deviations are measured from the sample's own mean, which is always as close as possible to the sample values, so the squared deviations come out slightly too small on average. Dividing by n − 1 instead of n, called Bessel's correction, makes the sample variance an unbiased estimate of the population variance.
What is a good or bad standard deviation?
There is no universal good value. A standard deviation is only small or large relative to the mean and the context. The coefficient of variation, the standard deviation divided by the mean, helps compare spread between data sets with different scales.
Can standard deviation be negative or zero?
It can never be negative, because it is the square root of an average of squared numbers. It is zero only when every value is identical, meaning there is no spread at all.
Editorial note: this calculator runs entirely in your browser and your data is not sent anywhere. Results are computed at full floating-point precision; the decimal-places setting only affects how numbers are displayed.