Variance Calculator

Measure population or sample variance from a numerical data set.

Enter your values

Change any field. The result is recalculated on this device.

Formula, example and assumptions
Variance4

Your result

Local calculation
Variance4

Variance measures spread around the mean in squared input units. Standard deviation converts that spread back to the original units; the sample or population setting changes both.

Data type
Population
See how this is calculated

Result breakdown

Standard deviation
2
Check the inputs and method

These are your current inputs, not the worked example further down the page.

Numbers
2, 4, 4, 4, 5, 5, 7, 9
Data type
Population

Method

x̄ = Σx/n. Population variance σ² = Σ(x − x̄)²/n. Sample variance s² = Σ(x − x̄)²/(n − 1). Standard deviation = √variance.

Read the worked example and assumptions

How this calculation works

Variance measures spread by averaging squared distances from the mean. Unlike standard deviation, its unit is squared: measurements in metres produce variance in square metres. Use this tool when a statistical formula needs variance directly; the companion deviation result restores the original unit.

x̄ = Σx/n. Population variance σ² = Σ(x − x̄)²/n. Sample variance s² = Σ(x − x̄)²/(n − 1). Standard deviation = √variance.

Worked example

This example uses illustrative inputs. Your current result is shown above.

For 2, 4, 4, 4, 5, 5, 7 and 9, x̄ = 5 and squared deviations total 32. In population mode, variance = 32 ÷ 8 = 4, and the associated standard deviation is 2.

Assumptions and limits

  • Use population mode for a complete group and sample mode for an estimate from sampled observations.
  • Sample variance requires at least two values.
  • Variance cannot be negative. A zero result means all entered observations are identical.

Questions people ask

Why is variance not in the original unit?

Each deviation is squared before averaging. Squaring prevents positive and negative deviations from cancelling but also squares the measurement unit.

Can I compare variance across different units?

Not directly. Changing metres to centimetres multiplies each measurement by 100 and the variance by 10,000. Convert to a common unit before comparing.

Related calculators