Categories📊 StatisticsVariance Calculator

Variance Calculator

Calculate sample variance (s²) and population variance (σ²).

There you go.
Sample (s²)
22.554
Population (σ²)
19.734
Mean: 12.375 | N = 8
Guide & Educational Reference
How to Use the Variance Calculator
  1. 1Enter your data points in the text area, separated by commas, spaces, or line breaks.
  2. 2The calculator displays two results side by side: the sample variance (s²) and the population variance (σ²).
  3. 3The mean and dataset size (N) are shown below for reference.
What Is Variance?

Variance measures how far each value in a dataset is from the mean, on average. It is calculated by averaging the squared differences from the mean. Because the differences are squared, variance is always zero or positive. A variance of zero means all values are identical. Variance is the foundation for standard deviation — the standard deviation is simply the square root of the variance.

Formulas: Population vs. Sample
Population Variance (σ²)

Used when the data represents the entire population. Divides the sum of squared differences by N.

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

Used when the data is a sample from a larger population. Divides by (N − 1) to correct for estimation bias (Bessel's correction).

s² = Σ(xᵢ − x̄)² / (N − 1)
Worked Example
Dataset: 4, 8, 6, 5, 3 (N = 5)
Mean = 5.2 → Squared differences: (4−5.2)²=1.44, (8−5.2)²=7.84, (6−5.2)²=0.64, (5−5.2)²=0.04, (3−5.2)²=4.84 → Sum = 14.8
Population σ² = 14.8 / 5 = 2.96 | Sample s² = 14.8 / 4 = 3.70
Data set: 3, 5, 8, 10, 14 (population)
Mean = 8; Σ(x−8)² = 25 + 9 + 0 + 4 + 36 = 74; Population variance = 74 / 5
Population variance = 14.8
Same data as a sample
Sample variance = 74 / (5 − 1)
Sample variance = 18.5
Important Considerations
  • Use Population Variance (σ²) when your dataset includes every member of the group you are studying.
  • Use Sample Variance (s²) when your data is a sample from a larger population and you want to estimate the full population's variability.
  • Variance is expressed in squared units (e.g., if your data is in metres, variance is in square metres). To return to the original units, take the square root to get the standard deviation.
  • With only one data point, the sample variance is undefined because the denominator (N − 1) equals zero.
Frequently Asked Questions

What is the difference between variance and standard deviation?

Standard deviation is the square root of variance. They both measure dispersion, but standard deviation is in the same units as the original data, while variance is in squared units.

Why does the sample variance divide by (N − 1) instead of N?

Dividing by (N − 1) is called Bessel's correction. It compensates for the fact that a sample tends to underestimate the true population variance. This correction makes the sample variance an unbiased estimator of the population variance.

Why is variance always zero or positive?

Each term is a squared difference from the mean, and squares cannot be negative. A variance of zero means every value is identical.

When should I use the sample version?

When your numbers are a sample drawn from a larger population you want to describe. Use the population version when your data already covers the entire group.

Related Statistics Calculators