Variance calculator
Get variance, standard deviation, median and range for any list of numbers in one step.
anındahesapla Editör Ekibi · Updated:
For the list 4, 8, 15, 16, 23, 42, the result shown is a sample variance of 182. Those six values average out to 18, and variance condenses how far each one strays from that mean into a single squared measure. Matching standard deviations follow: 13.4907 for a sample and 12.3153 for a whole population.
One text box drives the tool. Once you type your values, it lists the variance alongside the mean, median, mode, minimum, maximum, range and count. Seeing the centre and the spread side by side makes it clear which values are stretching the distribution and how much.
Result
182
Variance (sample): 182
Result in all units
Step-by-step solution
What variance measures
Variance is a measure of spread. It tells you how widely the values in a data set are scattered around their mean. Each value is compared with the mean, the differences are squared, the squares are added up and that total is divided by a suitable number. Squaring stops positive and negative deviations from cancelling each other out, and it gives extra weight to values that sit far from the centre. Tightly clustered data produces a small variance, while scattered data produces a large one.
There are two versions. Population variance divides the sum of squares by the number of values. Sample variance divides by one less than that number, a correction that offsets the tendency of a sample to understate the spread of the larger group it was drawn from. This calculator reports sample variance as its main result and shows the standard deviation in both forms. Because of the squaring, variance carries the square of the data's unit: heights in centimetres give a variance in square centimetres. Taking the square root brings you back to the original unit, and that value is the standard deviation.
In practice, variance turns up wherever consistency is being judged. A teacher can check how evenly exam scores are spread, a production line can monitor whether part dimensions stay consistent, and an investor can gauge how much returns swing from period to period. It also underpins regression, analysis of variance and many hypothesis tests. Two groups with the same mean can look identical until their spread is compared.
How to calculate variance
Only one field appears on the form. You supply the values, and the tool finds the mean, adds up the squared deviations and reports the result as sample variance. Take the default data, 4, 8, 15, 16, 23, 42. Six values give a mean of 18, and the median of 15.5 sits halfway between the two middle values, 15 and 16. Since no value repeats, the mode field stays empty. With a minimum of 4 and a maximum of 42, the range is 38. Squaring each distance from 18, adding those squares and dividing by one less than the count gives a sample variance of 182. Its square root, the sample standard deviation, is 13.4907, while dividing by the full count instead yields a population standard deviation of 12.3153. A mean sitting above the median signals that the value 42 is pulling the distribution to the right. Here is the process in order.
- Type your values in the numbers field, putting a comma or a space between them.
- Enter any decimal values in a consistent format and leave out units or extra symbols.
- The tool works out the mean and measures how far each value sits from it.
- Those deviations are squared and summed, then divided by one less than the count to give the sample variance.
- Review the variance together with both standard deviations and the other summary figures.
| Statistic | Value |
|---|---|
| Count | 6 |
| Mean | 18 |
| Median | 15.5 |
| Mode | none |
| Minimum | 4 |
| Maximum | 42 |
| Range | 38 |
| Variance (sample) | 182 |
| Std deviation (sample) | 13.4907 |
| Std deviation (population) | 12.3153 |
Decimal commas cause a frequent slip. Because commas also split entries, a figure typed with a comma as its decimal mark may be read as two separate entries, which changes the count and shifts every figure that depends on it. Separating entries with spaces only avoids that clash. Stray letters, empty entries and percent signs should be removed before the calculation runs.