Skip to main content
📐 Statistics

Variance Calculator

Paste your data set to get the variance and standard deviation — with both population (÷N) and sample (÷n−1) formulas, the mean, and the sum of squared deviations.

Population & sample
Standard deviation
Mean & sum of squares
Any list size
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Variance — Quick answer

Variance is the average squared distance of each value from the mean.

population σ² = Σ(x−μ)² / N  ·  sample s² = Σ(x−μ)² / (n−1)

Worked example: 2,4,4,4,5,5,7,9 → mean 5, Σ(x−μ)² = 32 → population variance 4 (SD 2), sample variance 4.571 (SD 2.138).

Population vs sample (same data)

FormVarianceStd dev
Population (÷N)4.0002.000
Sample (÷n−1)4.5712.138

Standard deviation = √variance. Choose sample when in doubt.

📐 Variance Calculator

Paste numbers separated by commas, spaces or new lines.

Variance
Standard deviation
Mean
Count (n)

ℹ️ Variance is in squared units; standard deviation (its square root) is in the original units. Sample uses n−1; population uses N.

Variance measures spread: the average of the squared differences from the mean. Square the distance of every value from the mean, add them up, and divide — by N for a whole population or by n − 1 for a sample. The square root of variance is the standard deviation, which brings the figure back into the original units.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the population and sample variance formulas, recomputed in code.

The variance formulas

Population variance
σ² = Σ(x − μ)² / N
Sample variance
s² = Σ(x − μ)² / (n − 1)
Standard deviation
SD = √variance

First compute the mean. Then for each value, take its difference from the mean and square it; sum those squares to get the sum of squared deviations. Divide by N for a population or by n − 1 for a sample. Dividing by n − 1 — Bessel's correction — compensates for using the sample mean and gives an unbiased estimate of the true population variance.

Worked example — 2, 4, 4, 4, 5, 5, 7, 9

Mean
(2+4+4+4+5+5+7+9) / 8 = 5
Sum of squares
9+1+1+1+0+0+4+16 = 32
Variance
population 32/8 = 4  ·  sample 32/7 = 4.571

The squared deviations from the mean of 5 add to 32. As a population that's a variance of 4 (SD 2); as a sample it's 4.571 (SD 2.138). The sample figures are a little larger because they divide by 7 rather than 8.

Frequently Asked Questions

What is the variance formula?

Mean of squared deviations: population σ² = Σ(x−μ)²/N; sample s² = Σ(x−μ)²/(n−1).

Population vs sample variance?

Population divides by N (whole group); sample divides by n−1 (estimate from a sample). Sample is a bit larger.

Variance vs standard deviation?

SD = √variance. Set 2,4,4,4,5,5,7,9: population variance 4, SD 2. SD is in original units.

Why divide by n − 1?

Bessel's correction removes bias from using the sample mean. 32/7 = 4.571 vs population 32/8 = 4.

What does high variance mean?

Values are more spread out. Zero variance means all values are identical. Outliers inflate it strongly.

Need more math tools?

Explore standard deviation, z-score, mean/median/mode, percent error and more across the AI Calculator math suite.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export