Standard Deviation Calculator

Find the mean, variance, and population and sample standard deviation of a set of numbers.

Separate values with commas, spaces, or newlines. Invalid entries are ignored.

Result

Formula used

Mean:                μ = (Σ xᵢ) / n
Population variance:  σ² = Σ (xᵢ − μ)² / n
Sample variance:      s² = Σ (xᵢ − μ)² / (n − 1)
Standard deviation:   σ = √σ²   (population),   s = √s²   (sample)

Worked example

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)

Mean: (2+4+4+4+5+5+7+9) ÷ 8 = 5

Population variance: Σ(xᵢ − 5)² ÷ 8 = 32 ÷ 8 = 4, so population SD = √4 = 2.

Sample variance: 32 ÷ 7 ≈ 4.571, so sample SD ≈ 2.138.

An average summarizes a set of numbers into a single center point, but it says nothing about how the values are arranged around that center, and that arrangement is often the more interesting part. Standard deviation measures the typical distance of each value from the mean, so a small standard deviation means the numbers cluster tightly around the average while a large one means they are scattered wide. The key detail is the unit: because standard deviation is the square root of variance, it comes back in the same units as your original data — dollars, centimeters, seconds, test points — which makes it far easier to interpret than variance itself, whose units are squared and awkward to picture. A mean income of 50,000 with a standard deviation of 2,000 describes a very different population from the same mean with a standard deviation of 20,000, even though both share the identical average. Two datasets can have the same mean and wildly different stories, and standard deviation is the tool that tells those stories apart. It is the foundation for talking about consistency, risk, and reliability in plain language, which is why it underpins so much of statistics, quality control, and finance despite being a single number.

The most important decision before reading the result is whether your numbers are the whole group or just a slice of a larger one, because the calculator reports both and they differ slightly. Population standard deviation divides by n and applies when you have measured every member of the group you care about — every student in a small class, every item in a finished batch, every day in a completed month. Sample standard deviation divides by n minus one, the Bessel correction, and applies when your numbers are a sample drawn to represent a bigger population you did not fully measure — a poll of 1,000 voters standing in for a country, a week of readings standing in for a season. The sample version is deliberately a little larger, because a sample almost always understates the true spread and the correction nudges the estimate back toward reality. In practice, real-world data is usually a sample, so the sample figure is the one most reports and papers quote, but the population figure is the honest choice when you genuinely have the entire set. The calculator shows both side by side precisely so you do not have to guess which applies — you pick the one that matches whether your data stands alone or speaks for something larger.

Consistency is the quiet use case for standard deviation across industries. In manufacturing, a tight standard deviation around a target dimension means parts fit together without hand-adjustment, while a wide one means defects and rework, so engineers track it to judge whether a process is in control. In finance, the standard deviation of returns is the textbook measure of volatility, and two investments with the same average return can carry very different risk depending on how widely their yearly results swing. In education and testing, the spread of scores shows whether an assessment separated students or clustered them near the middle, which informs whether the test was useful. In science and medicine, repeating a measurement and checking its standard deviation is how researchers judge precision and spot a reading that fell outside the normal range. Even in everyday life it helps: the standard deviation of your daily step count or commute time tells you whether those numbers are stable or erratic in a way the average hides. The pattern across all of these is that the mean says what you tend to get, and the standard deviation says whether you can count on getting it — and the second question is usually the one that drives the decision.

A standard deviation is easy to compute and easy to misuse, so a few cautions keep the interpretation honest. First, treat it as a typical spread, not a hard boundary: under a bell-shaped distribution, roughly two-thirds of values fall within one standard deviation of the mean, but that rule assumes a shape the data may not have, so do not quote it as a guarantee for skewed or unusual sets. Second, remember that one outlier can inflate the number dramatically, because the calculation squares the deviations — a single extreme value pulls the standard deviation up far more than its neighbors, so when the spread looks suspiciously large, check for a bad data point before drawing conclusions. Third, a small sample produces a shaky estimate; with only a few values the sample standard deviation is mathematically undefined at n equals one and wobbly at n equals two or three, so lean on it more as your count grows. Fourth, compare standard deviations only across datasets in the same units, because the number is meaningless in isolation — a standard deviation of 5 grams and one of 5 kilometers describe entirely different scales. Used with those guardrails, the calculator turns a column of numbers into a plain statement about how reliable, risky, or consistent they are, which is usually the insight the raw list was hiding. It also pays to report the mean alongside the standard deviation whenever you share a result, because the spread only means something against its center — a deviation of three is trivial next to a mean of three hundred and significant next to a mean of five. Pairing the two numbers is the honest, complete summary, and leaving the mean out is the most common way a standard deviation gets quoted in a way that misleads. The calculator gives you both; repeating both in your write-up is the small discipline that turns a raw figure into a finding.

Frequently asked questions

What is the difference between population and sample standard deviation?

Population standard deviation divides by n and is used when your numbers are the entire group. Sample standard deviation divides by n − 1 (Bessel's correction) and is used when your numbers are a sample drawn from a larger population. The sample figure is slightly larger and is the more common choice for real-world data.

How should I separate the numbers I enter?

Any mix of commas, spaces, and newlines works. You can paste a column from a spreadsheet, a comma-separated list, or type values with spaces — the calculator parses them all and ignores anything that is not a valid number.

Why does the sample standard deviation show "n/a"?

Sample standard deviation needs at least two values because it divides by n − 1. With a single number there is no spread to measure, so the sample figure is not defined while the population figure is zero.

What is variance versus standard deviation?

Variance is the average of the squared differences from the mean. Standard deviation is the square root of the variance, which returns the measure to the same units as your original data and is usually easier to interpret.