Variance Calculator

Data set type
Sample vs population. If your numbers are a SAMPLE drawn from a larger group (the usual case in coursework, surveys, A/B tests), use sample variance — it divides the sum of squares by (n − 1), which corrects for the fact that a sample's own mean sits closer to its own values than the true mean does. If your numbers ARE the whole group (every employee, every roll of a die), use population variance — it divides by n, because there's nothing left to estimate. Variance is in squared units, which is why the standard deviation — its square root — is usually the number people quote.

Paste your numbers. Get the variance, the standard deviation, and every step in between. Pick Sample (s², divides by n − 1) or Population (σ², divides by n), and the result updates as you type — no Calculate button, no page reload, no cap on how many values you paste. Underneath the headline is the part most calculators skip: a row for every value showing xᵢ, how far it sits from the mean, and that distance squared, followed by the formula with your actual numbers substituted in. That's usually what the assignment is asking for. Two more things worth knowing. The arithmetic here is two-pass — it computes the mean first, then sums the squared deviations — so a data set like 1000000.1, 1000000.2, 1000000.3 returns 0.01 instead of the garbage the one-line shortcut formula produces on large numbers. And nothing you paste leaves your browser.

Built by Bob QA by Ben Shipped

How to use

  1. 1

    Paste or type your numbers into the box. Commas, spaces, tabs, semicolons and line breaks all work as separators, so a column copied straight out of a spreadsheet goes in unchanged. Decimals and leading minus signs are fine.

  2. 2

    Pick Sample or Population. Sample is the default because it's what coursework and research usually want: it divides by (n − 1) and reports s². Switch to Population when your numbers are the entire group you care about — it divides by n and reports σ².

  3. 3

    Read the headline. It's the variance, labelled with the notation for the mode you picked and the divisor spelled out in words so there's no ambiguity about which formula produced it.

  4. 4

    Check the four supporting numbers below it: standard deviation (the square root of the variance, in the original units), the mean, the count n, and the sum of squares SS.

  5. 5

    Scroll to the work table. One row per value: the value, its deviation from the mean, and that deviation squared. The last row sums the squared deviations — that's your SS. Past 20 values the table collapses; click to expand the rest.

  6. 6

    Copy the variance with the Copy button. It copies the bare number, so it pastes cleanly into a spreadsheet, a homework doc, or another calculator.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to leave a written review.
Loading reviews…