Blog
Statistics on data

Variance calculator online

Variance is the average squared distance from the mean. It is the quantity the mathematics is actually built on, even though the standard deviation — its square root — is what people report, because variance comes out in squared units and nobody thinks in square minutes.

Your data never leaves this device

Your data

Paste a table straight from Excel or Google Sheets, or drop a CSV file. Nothing is uploaded anywhere — the whole calculation runs inside this browser tab.

CSV, TSV or plain text. Files saved in windows-1251 are detected and re-read automatically, so Cyrillic headers do not turn into garbage.

Parsing options

Columns

Result

The drawing library is downloaded only when you press the button, and only on this page.

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

Sample formula Divisor n−1, matching Excel VAR.S
Population formula Divisor n, matching Excel VAR.P
Units Squared units of your data — minutes², roubles², kilograms²
Relationship Variance is the square of the standard deviation; both are shown
Additivity Variances of independent quantities add; standard deviations do not
Minimum rows 2 for the sample formula

When it misleads you

How it is calculated

Every value is compared to the mean, the difference is squared, and the squares are summed. Dividing that sum by n gives the population variance; dividing it by n−1 gives the sample variance.

The n−1 divisor exists because the mean was estimated from the same data the deviations are measured against. That makes the deviations systematically a little too small, and the smaller divisor compensates. This is Bessel’s correction, and it is why almost every statistics course and spreadsheet defaults to n−1.

The main practical reason to look at variance rather than the standard deviation is additivity: if two quantities are independent, the variance of their sum is the sum of their variances. Standard deviations cannot be added that way, which is why variance is the quantity that appears inside formulas even when it never appears in reports.

Both divisors are always computed and displayed together. The mismatch between a tool using n and a textbook using n−1 is the single most common source of "why do I get a different answer" — showing both removes the question.

Questions and answers

Should I report variance or standard deviation?

Standard deviation, in almost every case. It is in the same units as your data and can be compared to the mean directly. Variance is the working quantity behind the scenes.

Why does my variance look enormous?

Because it is in squared units. A delivery time varying by about 4 minutes gives a variance around 16, which sounds alarming until you take the square root.

n or n−1?

n−1 for a sample, n for a complete population. Sampled data is the normal case. Both are shown here so you can match whichever convention your source used.

Can variance be negative?

No. It is an average of squares, so it is always zero or positive. A variance of exactly zero means every value in the column is identical.

Is my file uploaded?

No. Everything is computed locally in your browser.

The opposite tool

Need it the other way round? Standard deviation calculator Spread in the same units as your data, sample and population

Related tools

All tools