Standard Deviation Calculator
Enter numbers separated by commas or spaces, stats update instantly.
Common Mistakes When Calculating Standard Deviation
The most frequent mistake is using the wrong divisor for the context, applying the population formula (divide by n) to a sample, or vice versa, which produces a numerically different result even from identical raw data. Another common mistake is forgetting to square the deviations before averaging them, which, as explained above, produces a meaningless result of zero or close to it, since positive and negative deviations cancel out. A third mistake is confusing variance and standard deviation, reporting the variance value when standard deviation was intended, or vice versa, since variance is in squared units and is typically a much larger number than standard deviation, which is in the original units, this mix-up is usually easy to catch if the resulting number seems unexpectedly large.
Population vs Sample Standard Deviation
Use population standard deviation when your numbers represent an entire group you care about (every student in a class, every day in a month). Use sample standard deviation when your numbers are a subset drawn from a larger group you're trying to draw conclusions about, the sample formula divides by (n−1) instead of n, which slightly increases the result to account for the extra uncertainty of working from a sample.
How It's Calculated
Standard deviation measures how spread out a set of numbers is from their average. First, the mean is calculated. Then, for each number, the squared difference from the mean is found. These squared differences are averaged (this average is the variance), and the square root of that variance gives the standard deviation, expressed in the same units as your original data.
Worked Example
For the default data set, 10, 12, 23, 23, 16, 23, 21, 16 (8 numbers), the sum is 144, giving a mean of 144 ÷ 8 = 18. Each number's squared difference from that mean is calculated: (10−18)² = 64, (12−18)² = 36, (23−18)² = 25 (appearing three times, for the three 23s), (16−18)² = 4 (appearing twice, for the two 16s), and (21−18)² = 9. Summing all eight squared differences gives 64 + 36 + 25 + 25 + 4 + 25 + 9 + 4 = 192. For population standard deviation, that sum is divided by n = 8, giving a variance of 24, and the square root of 24 gives a standard deviation of approximately 4.899. For sample standard deviation, the same sum of squared differences is instead divided by (n−1) = 7, giving a variance of approximately 27.4286, and the square root of that gives a sample standard deviation of approximately 5.2372, noticeably higher than the population figure due to the smaller divisor.
Why Squaring Differences Instead of Just Averaging Them
A natural first instinct for measuring spread might be to simply average how far each number is from the mean, but that approach fails mathematically: by definition, the mean is the balance point of the data, so positive deviations (numbers above the mean) and negative deviations (numbers below the mean) always sum to exactly zero, canceling each other out regardless of how spread out the actual data is. Squaring each deviation before averaging solves this problem, since squaring makes every term positive regardless of whether the original deviation was above or below the mean, allowing the true magnitude of spread to accumulate rather than cancel out. Taking the square root at the end, to get standard deviation from variance, then converts the result back into the original units of the data, undoing the effect of the earlier squaring step.
What Standard Deviation Tells You in Practice
Standard deviation is most useful as a companion to the mean, not a replacement for it, together they answer both "what's typical" and "how much does it vary" for a data set. Two data sets can share an identical mean while having very different standard deviations, indicating very different levels of consistency or risk. In manufacturing quality control, a low standard deviation in a measured dimension indicates consistent production, while a high standard deviation flags inconsistent output that may need investigation. In finance, standard deviation of returns is commonly used as a measure of investment volatility or risk, a higher standard deviation generally implies a wider range of possible outcomes. In grading and testing, standard deviation reveals whether scores cluster tightly around the average or spread out widely across a broad performance range, information the average score alone can't provide.
Standard Deviation and the Normal Distribution
For data that follows a roughly bell-shaped normal distribution, standard deviation carries a well-known interpretive shortcut called the empirical rule (or 68-95-99.7 rule): approximately 68% of data points fall within one standard deviation of the mean, approximately 95% fall within two standard deviations, and approximately 99.7% fall within three standard deviations. This rule doesn't hold for every data set, it specifically depends on the data approximating a normal distribution, but when it does apply, it turns the standard deviation number into an intuitive sense of how unusual a particular value is. A test score more than two standard deviations above the mean, for instance, would represent roughly the top 2.5% of scores under a normal distribution, giving standard deviation a direct, practical interpretation beyond just an abstract spread measurement.
Choosing Between Population and Sample Formulas
The choice between population and sample standard deviation depends entirely on what the numbers represent, not on how many numbers there are. If the data set includes every single member of the group you're interested in, every student in a specific class, every day in a specific month, every product from a specific finished batch, use the population formula, since there's no sampling uncertainty to correct for. If the data set is a subset drawn from a larger group you're trying to draw conclusions about, a sample of customers surveyed out of your entire customer base, a handful of quality-control test units pulled from a much larger production run, use the sample formula, since it's specifically designed to account for the additional uncertainty introduced by only observing part of the whole. Using the wrong formula for a given context systematically over- or under-states the true variability being estimated.
Frequently Asked Questions
What does a low vs high standard deviation mean?
A low standard deviation means your data points cluster tightly around the mean; a high standard deviation means they're spread out more widely. It's a common way to describe consistency (or lack of it) in a data set.
Can I paste numbers from a spreadsheet?
Yes, numbers separated by commas, spaces, or line breaks are all recognized, so pasting a column copied from a spreadsheet works fine.
Why does sample standard deviation divide by (n-1) instead of n?
This adjustment, known as Bessel's correction, compensates for the fact that a sample's mean is itself only an estimate of the true population mean, and using a sample's own mean to calculate variance tends to systematically underestimate the true population variance. Dividing by (n-1) instead of n slightly inflates the result, correcting for that bias and producing a more accurate estimate of the population's actual standard deviation from a limited sample.
Why is variance calculated before standard deviation?
Variance is the average of the squared differences from the mean, and squaring is necessary because it prevents positive and negative deviations from canceling each other out when averaged. But squaring also changes the units (a data set of dollars produces variance in "squared dollars"), so standard deviation, the square root of variance, converts the result back to the original units, making it directly comparable and interpretable alongside the original data.
What's a typical real-world example of interpreting standard deviation?
Comparing two classes with the same average test score of 75%, one class might have a standard deviation of 5 (most students scored between 70 and 80), while another has a standard deviation of 20 (scores ranged much more widely, from failing to near-perfect). Both classes share the same mean, but the standard deviation reveals a completely different story about consistency and spread that the average alone doesn't capture.
How does an outlier affect standard deviation?
Standard deviation is quite sensitive to outliers, since the calculation squares each value's distance from the mean, a single far-away outlier contributes a disproportionately large squared difference compared to values closer to the mean. This means one extreme value can noticeably inflate the standard deviation even if the rest of the data set is tightly clustered, which is worth keeping in mind when interpreting a high standard deviation, it may reflect genuine broad spread, or it may reflect just one or two unusual outlier values.