Skip to main content
SD

Standard Deviation Calculator

Measure how spread out your data is, with a one-click toggle between population and sample formulas.

Did you like the tool? Thanks!
Share:

How to Use Standard Deviation Calculator

Enter numbers, then choose "Population" or "Sample" depending on whether your list is the entire group or just a subset. The calculator shows the mean, variance, and standard deviation together, recalculating live as you type.

About Standard Deviation Calculator

Standard deviation measures how spread out a set of numbers is around its mean. Two data sets can share the exact same average yet look completely different: one might have every value clustered tightly near the mean, while another has values scattered widely above and below it. The mean alone cannot tell these two situations apart — standard deviation can. A small standard deviation means the values are packed close to the average; a large standard deviation means they are spread out. The calculation works in three steps. First, find the mean of the data set. Second, for every value, find its difference from the mean, square that difference (squaring makes every term positive, so differences below the mean do not cancel out differences above it), and add all the squared differences together. This sum is then divided by either n (the count of values) for a population, or n − 1 for a sample, producing the variance. Finally, take the square root of the variance to get back to the original units — this final square root step is standard deviation itself. That n versus n − 1 distinction is the single most confusing part of standard deviation for most people, and it deserves a clear explanation. If your list of numbers represents an entire population — every single item you care about, with nothing left out — you divide by n. But if your list is only a sample drawn from a larger population, and you are trying to estimate what the standard deviation of the whole population would be, you divide by n − 1 instead. This adjustment, known as Bessel's correction, exists because a sample's own mean is calculated from the same data used to measure spread, which tends to slightly underestimate the true population variance; dividing by a smaller number (n − 1) compensates for that bias. In practice: if you measured the height of every student in a small class of 20 and that class is your entire population of interest, use population standard deviation. If you measured the height of 20 randomly selected people to estimate something about a whole country, use sample standard deviation. Consider a worked example. Five machines produce parts weighing 100, 102, 98, 101, and 99 grams. The mean is 100 grams. Each value's difference from the mean, squared, gives 0, 4, 4, 1, and 1 — summing to 10. If these five machines are the entire population being studied, variance is 10 ÷ 5 = 2, and standard deviation is √2 ≈ 1.41 grams. If instead these five machines are a sample representing a much larger factory, variance is 10 ÷ 4 = 2.5, and standard deviation is √2.5 ≈ 1.58 grams — slightly larger, reflecting the extra uncertainty of working with a sample. A common misconception is that standard deviation and variance are interchangeable — they are closely related but not the same thing, and they are not even in the same units. Variance is in squared units (grams² in the example above), which is not intuitive to interpret directly, which is exactly why standard deviation (the square root of variance, back in the original units of grams) is the number most commonly reported and discussed. Standard deviation underlies concepts you likely already know informally, such as grading "on a curve," financial risk (volatility), and manufacturing quality control tolerances.

Details & Tips

**Formulas:** - Mean: μ = Σx ÷ n - Population variance: σ² = Σ(x − μ)² ÷ n - Sample variance: s² = Σ(x − μ)² ÷ (n − 1) - Standard deviation: σ (or s) = √variance **Worked example 1 (population):** Numbers: 4, 8, 15, 16, 23, 42. n = 6. Mean = 108 ÷ 6 = 18. Squared differences from the mean: (4−18)²=196, (8−18)²=100, (15−18)²=9, (16−18)²=4, (23−18)²=25, (42−18)²=576. Sum = 910. Population variance = 910 ÷ 6 ≈ 151.67. Population standard deviation = √151.67 ≈ 12.32. **Worked example 2 (sample):** Same six numbers, treated as a sample. Sample variance = 910 ÷ (6 − 1) = 910 ÷ 5 = 182. Sample standard deviation = √182 ≈ 13.49 — noticeably larger than the population figure because the smaller divisor (n − 1 instead of n) inflates the estimate to account for sampling uncertainty. **How this calculator parses input:** The same flexible parsing as the other statistics tools on this site: commas, spaces, and line breaks are all accepted together, decimals and negative numbers work correctly, and non-numeric tokens are ignored. **Edge cases handled:** - Fewer than 2 numbers with "Sample" selected shows a dash (—), since sample variance requires dividing by n − 1, which is undefined (division by zero) or meaningless for n = 1. - Population standard deviation works correctly even with only one value (it is exactly 0, since a single value has no spread from its own mean). - All-identical values (e.g. 5, 5, 5, 5) correctly produce a standard deviation of exactly 0, since there is no variation at all. - Negative numbers are handled correctly since squaring a difference always removes the sign. - Switching between Population and Sample mode recalculates instantly without needing to re-enter your numbers. **Practical tip:** When in doubt about which mode to choose, ask yourself: "Is this list literally everything I care about, or is it a smaller sample standing in for something bigger?" Scientific experiments, surveys, and quality-control spot checks are almost always samples (use Sample mode), while a complete, closed data set — every transaction in one specific month, every student in one specific class — is a population (use Population mode). For a fuller picture of a data set's spread alongside its center, combine this tool with the Average Calculator (mean) and the comprehensive Statistics Calculator, which reports variance and both standard deviation types together with the range, min, and max.

Frequently Asked Questions

What does standard deviation measure?
It measures how spread out a set of numbers is around its mean. A small value means data is clustered tightly; a large value means data is widely scattered.
What is the difference between population and sample standard deviation?
Population standard deviation divides by n (the total count), used when your data is the entire group. Sample standard deviation divides by n − 1, used when your data is a subset used to estimate a larger population.
Why divide by n − 1 for a sample?
This adjustment, called Bessel's correction, compensates for the slight underestimate that occurs when a sample's own mean is used to measure its own spread.
How is standard deviation related to variance?
Standard deviation is the square root of variance. Variance is in squared units and is harder to interpret directly, which is why standard deviation is more commonly reported.
Can standard deviation be negative?
No. Because it involves squaring differences and then taking a square root, standard deviation is always zero or positive.
What does a standard deviation of 0 mean?
It means every value in the data set is identical — there is no variation at all around the mean.
Why can't I calculate sample standard deviation with only 1 number?
The sample formula divides by n − 1, which becomes 0 with a single value, making the calculation undefined.
Which one should I use for a school or work data set?
If your numbers cover every item you care about, use population. If they are a smaller sample representing something bigger, use sample.
Do outliers affect standard deviation a lot?
Yes, because differences from the mean are squared, a single large outlier has an outsized effect on both variance and standard deviation.
Is standard deviation the same in every unit of measurement?
No, it is expressed in the same units as your original data (unlike variance, which is in squared units), making it directly comparable to the mean.
Does this calculator send my numbers anywhere?
No, all calculations happen locally in your browser and no data is transmitted or stored.

Also Available As

std dev calculator, variance calculator, population standard deviation, sample standard deviation, spread of data, statistical dispersion

Found a Problem?

Let us know if something with Standard Deviation Calculator isn't working as expected.

Thanks — we'll take a look.