What is variance?
Variance measures how spread out a set of numbers is. Take each number, find how far it sits from the mean, square that distance, and average the squares — the result is the variance. For 10, 20, 30, 40 and 50, the mean is 30, the squared distances are 400, 100, 0, 100 and 400, and their average is 200. So the variance is 200.
A small variance means the numbers cluster tightly around the mean; a large variance means they are spread far apart. A class where everyone scores near 70 has a small variance, while a class split between 40 and 95 has a large one. Variance turns that feeling of spread into a single number you can compare.
This calculator takes a list of numbers — separated by commas, spaces, or new lines — and returns the population variance, the standard deviation, the mean, and the count. The result updates as you type. Nothing is uploaded, and there is no sign-up.
How a variance calculator works
The method has three steps. First, find the mean of the list. Second, subtract the mean from each value and square the result — squaring stops positive and negative gaps from cancelling each other out. Third, average those squared gaps. For the default list the mean is 30, the squared gaps are 400, 100, 0, 100 and 400, and (400 + 100 + 0 + 100 + 400) ÷ 5 = 200.
The standard deviation is simply the square root of the variance. For the default list, the square root of 200 is 14.14, which is the number most people actually use, because it is in the same units as the original data — marks, rupees, or centimetres — while variance is in squared units.
This calculator uses population variance, which divides by N, the full count of numbers. That is the right choice when your list is the whole group you care about — every mark in the class, every bill in the year. The article below explains when the sample version, which divides by N − 1, is the one to use.
Squaring the gaps is the step that surprises newcomers, and it exists for a good reason. Without squaring, the gaps above and below the mean would cancel out to zero every time, because the mean is defined as the balance point of the list. Squaring makes every gap positive, so the average of the squares measures real spread instead of cancelling to nothing.
Population variance vs sample variance
There are two kinds of variance, and the difference is a single number in the divisor. Population variance divides the sum of squared gaps by N, the count of all values. Sample variance divides by N − 1 instead. For the default list, population variance is 200; sample variance would be 1000 ÷ 4 = 250.
Use population variance when your list is the complete group — all the students in the class, all twelve months of bills. Use sample variance when your list is a sample taken from a bigger group you cannot measure fully, like 50 voters surveyed out of a city of millions. The N − 1 correction compensates for the fact that a sample tends to understate the spread of the whole group.
The gap between the two shrinks as the list grows. With 5 numbers, 200 versus 250 is a big difference; with 500 numbers, dividing by 500 versus 499 barely matters. This calculator reports population variance and says so in the result label, so there is no ambiguity about which one you are looking at.
A worked example: five test scores and a spread-out set
Start with the default list: 10, 20, 30, 40, 50. The mean is 30. The gaps from the mean are −20, −10, 0, 10 and 20; squaring gives 400, 100, 0, 100 and 400, which add up to 1000. Divide by 5 and the population variance is 200. The standard deviation is the square root of 200, which is 14.14.
Now a set with a known spread: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. The squared gaps are 9, 1, 1, 1, 0, 0, 4 and 16, adding up to 32. Divide by 8 and the variance is 4, and the standard deviation is 2. The numbers sit close to the mean, and the small variance of 4 says so plainly.
Finally the edge case: 10, 10, 10. The mean is 10, every gap is zero, and the variance is 0 with a standard deviation of 0. Zero variance means no spread at all — every value is identical, and the mean describes the whole list perfectly.
Where variance actually gets used
Finance runs on variance. Two investments can have the same average return and very different risk, and variance is how that risk is measured. A fund whose monthly returns swing between −8% and +10% has a far higher variance than one that stays between +1% and +3%, even if both average the same. Investors who ignore variance are guessing about risk.
Manufacturing uses variance to judge consistency. A machine filling bottles to 500 millilitres should produce a tiny variance in fill levels; a large variance means the machine is drifting and some bottles will be short. Quality teams track variance daily because it catches a failing machine before customers do.
Schools and sports use it the same way. A bowler whose scores vary wildly has a high variance; a steady bowler has a low one. A standard deviation calculator reports the same spread in original units, which is often easier to quote in a report than the squared units of variance.
Weather forecasters track the variance of daily temperatures to describe how unsettled a season is. A month with a small temperature variance feels stable, while a large variance means hot days and cold snaps in the same week. Farmers watch that number because a single cold night can matter more than the monthly average.
Variance calculator vs standard deviation calculator
Variance and standard deviation describe the same spread in two forms. Variance is the average squared gap from the mean; standard deviation is its square root. For the default list the variance is 200 and the standard deviation is 14.14 — same data, same spread, different scale.
Standard deviation is the one to quote when you need a number in the original units. Saying marks vary by 14.14 marks makes sense; saying they vary by 200 squared marks does not. Variance is the one to use in further maths — combining variances, testing hypotheses, and building models all work in variance, not in standard deviation.
This calculator gives you both, plus the mean, so you can quote whichever fits the job. An average calculator gives the mean alone; here the mean is the starting point, and the variance tells you how much the numbers wander away from it. To compare the spread of two data sets on different scales, divide by the mean first: a coefficient of variation calculator expresses the spread as a percentage of the mean.
Common variance mistakes
The most common mistake is mixing up population and sample variance. If your list is the whole class, divide by N; if it is a sample of a bigger group, divide by N − 1. Using the wrong one changes the answer — 200 versus 250 for the default list — so check which one your textbook or your boss expects before you quote a number.
The second mistake is quoting variance in the original units. Variance is in squared units: if your data is in rupees, the variance is in squared rupees, which has no everyday meaning. Quote the standard deviation — 14.14 rupees — when you need a number people can picture.
The third mistake is forgetting that variance is sensitive to outliers. One huge value inflates the squared gaps enormously. In 4, 8, 15, 16, 23 and 42, the single value 42 contributes far more to the variance than the other five combined. Check the range calculator first if a variance looks unexpectedly large.
The fourth mistake is comparing variances across different units. A variance of 200 in marks cannot be compared with a variance of 200 in centimetres. Compare standard deviations, or better, compare the coefficient of variation — the standard deviation divided by the mean — when the units differ. A fifth mistake is using variance on data that is not measured on a proper scale. Variance needs numbers where equal gaps mean equal differences — marks and temperatures qualify, but ranks and ratings often do not. A variance of exam ranks is meaningless, because the gap between rank 1 and rank 2 is not the same as the gap between rank 10 and rank 11.
How to use this variance 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 — just paste it in. The population variance, the standard deviation, the mean and the count update live as you type, so you can watch the spread change as you add or remove values.
Check the count row first. If you pasted 12 numbers and the count says 11, one value did not parse — usually a thousands separator like 1,000, which the calculator reads as two numbers, 1 and 000. Remove the comma inside large numbers and the count will match.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. Use it for marks, measurements, returns, or timings, and pair it with the median calculator whenever you want the middle of your numbers as well as their spread.