Standard Deviation Calculator
Enter a data set to calculate its standard deviation and variance. Choose sample or population depending on whether your numbers represent a subset or the whole group.
Use this when your numbers are a sample drawn from a larger group.
Separate values with spaces, commas, or new lines. Any non-numeric tokens are ignored.
How the Standard Deviation Calculator Works — and Why It Matters More Than the Average
If you want to describe a group of numbers, the first thing most people reach for is the average (mean). It tells you where the center of the data sits. But the average alone is dangerously incomplete. Two classes can both have an average test score of 75 — but in one class every student scored between 70 and 80, while in the other the scores ranged from 40 to 100. Same average, wildly different situation. That's where standard deviation comes in. It measures how spread out the data is around the mean. A small standard deviation means the numbers cluster tightly around the average. A large one means they're scattered widely. Together, mean and standard deviation tell a story that neither could tell alone.
The formula behind it
The calculation happens in four steps. First, find the mean of all your values. Second, for each value, calculate how far it is from the mean, then square that difference — squaring makes all deviations positive and gives more weight to outliers. Third, add up all the squared differences and divide by either n (the number of values) or n − 1, depending on whether you're working with a population or a sample. That gives you the variance. Fourth, take the square root of the variance — that's your standard deviation. It's represented by the Greek letter sigma (σ) for a population and s for a sample.
Sample vs. population — the n − 1 mystery
The single most confusing thing about standard deviation is why the formula sometimes uses n and sometimes n − 1. The short answer: if your data set contains every member of the group you care about (a population), divide by n. If your data is just a subset drawn from a larger group (a sample), divide by n − 1. This adjustment is called Bessel's correction. The reason is subtle but important: a sample tends to underestimate how spread out the full population is, so dividing by a slightly smaller number (n − 1) inflates the result a bit and corrects for that bias. In practice, if your sample size is large — say, hundreds or thousands of values — the difference between n and n − 1 becomes negligible. But for small samples, it matters.
What it's used for
Standard deviation is one of the most widely used statistics in the world. In finance, it's the standard measure of investment risk — a stock with a higher standard deviation of returns is considered more volatile. In science, it's used to report measurement uncertainty: if you weigh a sample five times and get slightly different results, the standard deviation tells you how reliable the average is. Quality control in manufacturing relies on it to check whether products are consistently within spec. Education uses it to grade on a curve and identify outliers. And in sports analytics, it's used to measure how consistent a player's performance is from game to game — two players with the same batting average can have very different standard deviations, meaning one is far more predictable than the other.
Limitations to keep in mind
Standard deviation has one significant weakness: it's sensitive to outliers. Because each deviation is squared, a single extreme value can inflate the standard deviation far beyond what most of the data would suggest. In that case, statisticians often prefer the interquartile range (IQR) or the median absolute deviation, both of which are more robust to extreme values. Standard deviation also assumes your data is roughly symmetric — it doesn't work well for heavily skewed distributions. And it only makes sense for interval or ratio data: calculating the standard deviation of categorical variables (like colors or yes/no answers) is meaningless. Used within its proper scope, though, it remains the single most useful measure of spread in all of statistics.