Ad Space — Top Banner

Variance Calculator

Calculate population variance and sample variance from a data set.
Understand how spread out your data is with this fundamental statistics measure.

Variance and Standard Deviation

What Is Variance?

Variance measures how far a set of numbers is spread out from their average (mean). A variance of zero means all values are identical. A large variance means the values are very spread out.

Variance is the foundation of standard deviation — the most widely used measure of spread in statistics.

The Two Variance Formulas

Population Variance (σ²) — use when you have data for every member of the group:

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

Sample Variance (s²) — use when your data is a sample from a larger population:

s² = Σ(xᵢ − x̄)² / (N − 1)

Where:

  • xᵢ = Each individual value
  • μ (or ) = Mean of the data
  • N = Number of values

Why Divide by N−1 for Samples?

Dividing by N−1 (instead of N) is called Bessel’s correction. When estimating population variance from a sample, the sample mean is already optimized to minimize the sum of squared deviations, making it systematically underestimate the true population variance. Dividing by N−1 corrects this bias. Friedrich Bessel, a German mathematician and astronomer, introduced this correction in the 19th century.

Standard Deviation

Standard deviation is simply the square root of variance:

σ = √σ² (population) or s = √s² (sample)

Standard deviation has the same units as the original data (e.g., dollars, centimeters), making it easier to interpret than variance. Variance is squared units, which is harder to reason about directly.

Standard Error

The standard error estimates how much the sample mean varies from sample to sample:

SE = s / √N

A smaller standard error means you can be more confident that your sample mean is close to the true population mean.

Coefficient of Variation

For comparing variability between datasets with different means or units:

CV = (Standard Deviation / Mean) × 100

A CV of 5% means the standard deviation is 5% of the mean — useful for comparing variability across different scales.

Practical Example

Test scores: 72, 85, 90, 78, 88, 95, 74, 82, 88, 79

  • Mean = 83.1
  • Deviations: (−11.1)², (1.9)², (6.9)², … etc.
  • Sample variance = 59.0
  • Sample standard deviation = 7.68

This means most scores fall within about 7.68 points of the average.

Real-World Uses

  • Finance: Variance and standard deviation measure investment risk (volatility). A portfolio with higher variance has less predictable returns.
  • Manufacturing: Quality control uses variance to monitor product consistency — high variance means inconsistent production.
  • Science: Error analysis and experimental repeatability.
  • Education: Comparing how spread out student performance is across classes or schools.

Ad Space — Bottom Banner

Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.