What is standard deviation?
Standard deviation is the number that tells you how spread out a set of numbers is. An average tells you where the middle sits; standard deviation tells you how far the numbers typically wander from that middle. Two classes can both average 70 marks, yet one has every student between 65 and 75 while the other ranges from 30 to 100. The average hides that difference. Standard deviation shows it.
A small standard deviation means the numbers cluster tightly around the mean — the data is consistent. A large one means the numbers are scattered — the data is all over the place. For the default list on this page, 10, 20, 30, 40 and 50, the mean is 30 and the standard deviation is 14.14. That is a wide spread for numbers in the tens, which makes sense: the values run from 10 to 50.
This calculator takes your list of numbers and returns the population standard deviation, the sample standard deviation, the variance, and the mean. Paste a column of data or type the numbers in; the results update live. Everything runs in your browser, so your data never leaves your device.
How a standard deviation calculator works
The steps are simple once you see them. First, find the mean. For 10, 20, 30, 40 and 50 the mean is 30. Second, subtract the mean from each number to get the deviations: −20, −10, 0, 10 and 20. Third, square each deviation so the negatives stop cancelling the positives: 400, 100, 0, 100 and 400. Fourth, average those squares: 1,000 ÷ 5 = 200. That is the variance.
Fifth, take the square root of the variance. The square root of 200 is 14.14, and that is the standard deviation. The square root matters because variance is measured in squared units — squared marks, squared rupees — which nobody can picture. Taking the root brings the number back into the original units, so 14.14 is in the same units as the data itself.
The calculator also shows the sample version, which divides by n − 1 instead of n. For the same list, the sample variance is 1,000 ÷ 4 = 250, and the sample standard deviation is 15.81. The sample figure is always a little larger, because a sample usually underestimates the spread of the full group it came from.
Population or sample: which one do you need?
This is the input people get wrong most often, and it changes the answer. Use the population standard deviation when your numbers are the whole group you care about — every student in a class, every day in a month, every product in a batch. Use the sample version when your numbers are a sample drawn from a bigger group you want to describe — 50 voters surveyed out of a city, 20 parts tested out of a factory run.
The reason for the two formulas is bias. A sample tends to miss the extremes of the full group, so its spread looks smaller than the real spread. Dividing by n − 1 instead of n corrects for that, inflating the estimate just enough to be fair. With large samples the difference barely matters — for 1,000 values, dividing by 999 instead of 1,000 changes almost nothing.
With small samples it matters a lot. For two numbers, the population formula divides by 2 and the sample formula divides by 1, so the sample standard deviation is about 41% larger. As a rule of thumb: if you are describing data you have in full, use population; if you are estimating something bigger from a part of it, use sample. This calculator shows both, so you can pick the right one.
A worked example: two data sets, step by step
Run the default list through the steps. The numbers are 10, 20, 30, 40 and 50. The mean is 30. The squared deviations are 400, 100, 0, 100 and 400, which add up to 1,000. Divide by 5 for the population variance: 200. The square root of 200 is 14.14, the population standard deviation. Divide by 4 instead and you get a sample variance of 250 and a sample standard deviation of 15.81.
Now the classic textbook set: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. The deviations are −3, −1, −1, −1, 0, 0, 2 and 4. Squared, those are 9, 1, 1, 1, 0, 0, 4 and 16, adding up to 32. The population variance is 32 ÷ 8 = 4, so the population standard deviation is exactly 2. The sample variance is 32 ÷ 7 = 4.57, and the sample standard deviation is 2.14.
Notice how the second set feels tighter than the first, and the numbers agree: a standard deviation of 2 against 14.14. That is the whole point of the measure — it turns a feeling about the data (“these numbers are close together”) into a number you can compare. A set with a standard deviation of 2 is genuinely more consistent than one with 14.14, whatever the units are.
Where standard deviation does real work
In finance, standard deviation is how risk is measured. Two investments can both return 10% a year on average, but if one swings between −5% and 25% while the other stays between 8% and 12%, the first is far riskier. A SIP calculator shows the growth; standard deviation shows how bumpy the ride was getting there. Fund fact sheets quote it for exactly this reason.
In quality control, it decides whether a process is under control. If a machine fills bottles to 500 ml with a standard deviation of 2 ml, almost every bottle lands between 494 and 506 ml. If the standard deviation creeps up to 10 ml, bottles start failing the label claim. Factories watch this number daily because it catches a drifting machine before customers do.
In exams and surveys, it tells you whether an average means anything. A class average of 70 with a standard deviation of 5 means most students scored near 70. The same average with a standard deviation of 25 means the class split into high scorers and strugglers, and the average describes neither group. An average calculator gives you the middle; this one tells you whether the middle is a fair summary. In investing, the same idea measures how jumpy a portfolio is — a portfolio return calculator shows what a set of investments actually earned, so the risk and the return can be read together.
Standard deviation vs variance and range
Variance and standard deviation are the same idea in different clothes. Variance is the average squared deviation — 200 for the default list — and standard deviation is its square root, 14.14. Variance is useful in formulas, but its units are squared, so nobody quotes it in a report. Standard deviation is the one people actually read, because it speaks in the original units.
The range — largest minus smallest — is the quickest spread measure of all: 50 − 10 = 40 for the default list. But the range only looks at two numbers, the extremes, and ignores everything in between. One wild outlier can double the range while barely moving the standard deviation. That is why the range is a rough check and standard deviation is the real measure.
Another cousin is the coefficient of variation, which is the standard deviation divided by the mean, as a percentage. It lets you compare the spread of two data sets with different scales — a 14.14 spread around a mean of 30 is a 47% variation, while a 14.14 spread around a mean of 300 would be under 5%. When the units or the size differ, divide by the mean before you compare. Once you know the spread, a probability calculator can turn it into the chance of a value landing outside a given band.
Common standard deviation mistakes
The first mistake is picking the wrong version — population when you needed sample, or the other way round. If you surveyed 50 people out of a city of a million, you have a sample, and the sample figure is the honest one. If you have every student in your class, it is a population. The calculator shows both, so check which row you are reading before you quote a number.
The second mistake is forgetting that standard deviation only makes sense around a mean. For skewed data — incomes, house prices, waiting times — the mean itself is a poor centre, and the standard deviation around it is misleading. A few huge values stretch both. For skewed data, report the median and the range between the 25th and 75th percentiles instead.
The third mistake is comparing standard deviations across different units. A standard deviation of 14.14 in marks and 14.14 in rupees are not the same kind of spread, because the scales differ. Convert to the coefficient of variation first, or keep the comparison within one unit and one context.
The fourth mistake is treating one standard deviation as a hard boundary. About two-thirds of the data sits within one standard deviation of the mean, but only when the data is roughly bell-shaped. For lopsided data, that rule of thumb breaks down, and a good chunk of values can sit far outside it without anything being wrong.
How to use this standard deviation calculator
Paste or type your numbers into the box, separated by commas, spaces, or one per line — a column copied from a spreadsheet works as it is. The population standard deviation, sample standard deviation, variance, and mean all update live as you type. Check the mean first: if it looks wrong, a mistyped number is usually the cause.
Read the population row when your list is the whole group, and the sample row when it is a sample of something bigger. For most school and small-business uses — a class of students, a month of sales, a batch of measurements — the population figure is the one you want.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. Use it alongside the average calculator linked above whenever a single average feels too smooth: the mean says where your data sits, and the standard deviation says how much you can trust that summary.