Variance Calculator

Paste a dataset, choose population or sample, and see the variance with every step needed to check the math.

Sample or population

Decimal, negative, and scientific-notation values are supported.

Variance type

Calculation steps

Each value, its deviation from the mean, and the squared deviation.

ValueMeanDeviationSquared deviation
48.0000-4.000016.0000
68.0000-2.00004.0000
88.00000.00000.0000
108.00002.00004.0000
128.00004.000016.0000
Sum of squared deviations40.0000
Formula

Choose the denominator by intent

Population: σ² = Σ(xᵢ − μ)² / N

Sample: s² = Σ(xᵢ − x̄)² / (n − 1)

Variance uses squared units. Standard deviation takes the square root so the spread returns to the original units.

Method reference: NIST Measures of Scale →
Interpret the result

Lower variance means values stay closer to the mean. Higher variance means the dataset is more spread out. Compare variance only when the datasets use compatible units and definitions.

Worked example

For 4, 6, 8, 10, 12, the mean is 8. The squared deviations are 16, 4, 0, 4, and 16, for a total of 40. Population variance is 40 ÷ 5 = 8. Sample variance is 40 ÷ 4 = 10.

Frequently asked questions