Home › Math & Science › Standard Deviation Calculator
Standard Deviation Calculator
An average tells you where data centers, but not how spread out it is — two classes can both average 80 on a test while one is tightly bunched and the other is all over the place. This free standard deviation calculator measures that spread for you: paste in any list of numbers and it returns the mean, variance, and standard deviation for both the population and the sample formulas, plus the median, mode, range, quartiles, and more.
Separate numbers with commas, spaces, or new lines — pasting straight from a spreadsheet works. Decimals and negative numbers are fine.
| Mean (average) | 5 |
| Median | 4.5 |
| Mode | 4 |
| Population variance (σ²) | 4 |
| Population standard deviation (σ) | 2 |
| Sample variance (s²) | 4.5714 |
| Sample standard deviation (s) | 2.1381 |
| First quartile (Q1) | 4 |
| Third quartile (Q3) | 5.5 |
| Interquartile range (IQR) | 1.5 |
| Range (max − min) | 7 |
| Minimum | 2 |
| Maximum | 9 |
| Sum | 40 |
| Count | 8 |
How it works
Standard deviation measures how far a typical value sits from the mean. If every value is close to the mean, the standard deviation is small; if values are scattered widely, it is large. It is always in the same units as your data, so a standard deviation of 2 on a set of test scores literally means scores typically land about 2 points away from the class average.
The calculation has five steps. Find the mean of the numbers. Subtract the mean from every value to get its deviation. Square each deviation — squaring makes positives and negatives count the same and gives big deviations extra weight. Average the squared deviations to get the variance (dividing by N for a population, or by n − 1 for a sample). Finally, take the square root to return to the original units: that is the standard deviation.
The only difference between the two formulas is the divisor, but it matters. A sample almost always hugs its own sample mean a little tighter than it hugs the true population mean, so dividing by n would make the spread look slightly too small. Dividing by n − 1 (Bessel's correction) compensates, which is why the sample standard deviation always comes out a little larger than the population value for the same data. With big data sets the difference is tiny; with small ones it is not.
The extra statistics help you read the shape of the data. The median is the middle value and the quartiles Q1 and Q3 mark the 25% and 75% points, so the interquartile range (Q3 − Q1) describes the middle half of your data and ignores outliers — a single wild value can inflate the standard deviation, but it barely moves the IQR. The mode shows the most frequent value, and the range gives the full span from smallest to largest.
Worked example
Eight students log their weekly practice hours for a school statistics project: 2, 4, 4, 4, 5, 5, 7, 9 hours.
Step 1 — the mean: the sum is 40, and 40 ÷ 8 = 5 hours.
Step 2 — the deviations from 5: −3, −1, −1, −1, 0, 0, 2, 4.
Step 3 — square them: 9, 1, 1, 1, 0, 0, 4, 16 — a total of 32.
Step 4 — population variance: 32 ÷ 8 = 4, so the population standard deviation is √4 = 2 hours.
Step 5 — sample version: 32 ÷ 7 = 4.5714, and √4.5714 = 2.1381 hours.
Because these eight students are a sample of the whole school, the sample figure of about 2.14 hours is the right one to report. Paste the same numbers into the calculator above and you will see both values, along with the median of 4.5, the mode of 4, and quartiles Q1 = 4 and Q3 = 5.5.
Common mistakes
Using the population formula for sample data. If your numbers stand in for a larger group, dividing by n understates the spread. When in doubt, the sample formula is the safer default for real-world data collection.
Reporting the variance as if it were the standard deviation. Variance is in squared units — squared hours, squared dollars — which makes it hard to interpret. The standard deviation, its square root, is the number in the original units that you can compare directly with the mean.
Thinking a bigger standard deviation means a bigger average. It does not. The mean measures location and the standard deviation measures consistency. A machine filling bottles can average exactly 500 ml with a tiny standard deviation (consistent) or the same 500 ml with a large one (sloppy).
Forgetting that one outlier can dominate. Because deviations are squared, a single extreme value can double a standard deviation. If your data has an obvious outlier, look at the IQR alongside the standard deviation to see the spread of the typical middle half.
FAQ
What is the difference between population and sample standard deviation?
Use the population standard deviation when your numbers are the whole group you care about — every student in one class, every day of one month. Use the sample standard deviation when your numbers are a sample drawn from a larger group, such as 100 voters surveyed to represent a whole state. The sample version divides by n − 1 instead of n, which makes it slightly larger and corrects for the fact that a sample usually sits a little closer to its own mean than to the true population mean.
How do you calculate standard deviation step by step?
First find the mean. Then subtract the mean from every value and square each difference. Add the squares, divide by the count (population) or by the count minus 1 (sample) to get the variance, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squared differences add to 32, the population variance is 32 ÷ 8 = 4, and the population standard deviation is the square root of 4, which is 2.
Why does the sample formula divide by n − 1?
Dividing by n − 1 is called Bessel's correction. A sample tends to cluster slightly tighter around its own mean than around the true population mean, so dividing by n would systematically underestimate the spread. Using n − 1 makes the sample variance an unbiased estimate of the population variance on average.
Can standard deviation be negative or zero?
It can never be negative, because it is the square root of an average of squares, and squares are never negative. It is zero only when every value in the data set is identical — for example, if every score in a class is 80, the mean is 80 and the standard deviation is 0, because nothing deviates from the mean at all.
What is considered a large standard deviation?
There is no universal cutoff — a standard deviation is large or small only compared with the mean and the units involved. A standard deviation of 2°F in daily temperatures is small, while a standard deviation of 2 points on a 5-point quiz is large. A quick rule of thumb is to compare it with the mean: if the standard deviation is a small fraction of the mean, the data is tightly clustered; if it is close to or bigger than the mean, the data is widely spread.