webby.tools

Standard Deviation Calculator

Paste in a list of numbers to instantly calculate the mean, variance, and both population and sample standard deviation, complete with a step-by-step breakdown of every deviation. If you need to round the results to the correct precision, try the significant figures calculator, or explore the companion permutations and combinations calculator for other statistics and probability problems.

What Does Standard Deviation Measure?

Standard deviation measures how spread out a set of numbers is from its average (mean). A small standard deviation means the values cluster tightly around the mean; a large standard deviation means the values are scattered widely.

Here's an intuitive way to think about it: imagine two classes both scored an average of 80% on a test. In Class A, almost every student scored between 76% and 84% — a tight, predictable spread. In Class B, scores ranged from 40% to 100%, with some students acing it and others struggling badly. Both classes have the identical mean, but Class A has a low standard deviation and Class B has a high one. The average alone hides this difference — you need the standard deviation to see how consistent (or inconsistent) the results really are.

Population vs. Sample Standard Deviation

This calculator shows two versions of standard deviation because the correct formula depends on what your data represents:

Population standard deviation (σ) divides the sum of squared deviations by N, the total count. Use this when your list of numbers is the entire group you care about — for example, the test scores of every student in a single class, if you only care about that class.

Sample standard deviation (s) divides by N − 1 instead of N. This adjustment is called Bessel's correction. Use this when your numbers are only a sample drawn from a larger population, and you're trying to estimate that larger population's spread — for example, surveying 50 students out of a school of 2,000.

Why divide by a smaller number (N − 1) when estimating from a sample? A sample's mean is calculated from the same data used to measure the spread, which slightly pulls the data closer to its own mean than it truly is relative to the full population's mean. Dividing by N would systematically underestimate the true population variance. Dividing by N − 1 corrects for that bias, producing an unbiased estimator. In practice, once N is reasonably large, the difference between the two results becomes small — but for small samples it matters quite a bit, which is why most statistics software defaults to the sample formula unless told otherwise.

The 68-95-99.7 Rule

When data follows a roughly normal distribution (a symmetric, bell-shaped curve), standard deviation lets you predict how values are distributed using a handy rule of thumb known as the 68-95-99.7 rule (or the empirical rule):

About 68% of values fall within 1 standard deviation of the mean, about 95% fall within 2 standard deviations, and about 99.7% fall within 3 standard deviations. So if a class's test scores have a mean of 80 and a standard deviation of 5, roughly 68% of students scored between 75 and 85, and roughly 95% scored between 70 and 90. This rule is one of the main reasons standard deviation is so useful — it turns a single number into a practical sense of where most of your data actually lives.

Frequently Asked Questions

What's the difference between variance and standard deviation?

Variance is the average of the squared deviations from the mean, and standard deviation is simply the square root of the variance. Variance is measured in squared units (for example, squared dollars or squared inches), which makes it hard to interpret directly. Standard deviation converts that back into the same units as your original data, which is why it's the number most people actually report and compare.

Why do we square the deviations instead of just averaging them directly?

If you simply averaged the raw deviations (value minus mean), the positive and negative differences would always cancel out to exactly zero — that's a mathematical property of the mean itself, not a useful measure of spread. Squaring each deviation makes every value positive before averaging, so the result reflects actual distance from the mean regardless of direction. Squaring also has the side benefit of penalizing larger deviations more heavily than smaller ones, which is often desirable when spread matters a lot (as in quality control or risk analysis).

When should I use the sample formula instead of the population formula?

Use the sample formula (dividing by N − 1) whenever your data is a subset used to draw conclusions about a bigger group — survey responses, a batch of test measurements, or any experiment where you can't measure every single member of the population. Use the population formula (dividing by N) only when your dataset truly contains every member of the group you're studying, with nothing left out.

What does a standard deviation of 0 mean?

A standard deviation of 0 means every single value in the dataset is identical — there is no spread at all. For example, the list 15, 15, 15, 15 has a mean of 15 and a standard deviation of 0, because no value deviates from the mean even slightly.

How is standard deviation used in real life?

Standard deviation shows up constantly outside the classroom. Teachers use it when grading on a curve, comparing how far each student's score falls from the class average. Manufacturers use it for quality control, tracking how consistently a machine produces parts within tolerance — a rising standard deviation often signals a process drifting out of spec before it produces outright defects. In finance and investing, standard deviation of returns is one of the most common measures of risk: a stock with a high standard deviation swings unpredictably, while one with a low standard deviation is comparatively stable.

This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.