Variance Calculator – Population & Sample

Variance Calculator

Paste numbers separated by commas, spaces, or new lines. Toggle decimal comma if needed.

Results

Enter your dataset then click Calculate.

Variance Calculator

This free Variance Calculator lets you quickly compute the mean, population variance (σ²), sample variance (s²), and standard deviation of a dataset. Simply paste your numbers separated by commas, spaces, or new lines, and get instant results with a detailed step-by-step breakdown.

What is Variance?

In statistics, variance measures how spread out a dataset is compared to its mean. It’s the average of the squared differences from the mean.

  • A small variance means data points are close to the mean.

  • A large variance means data points are more spread out.

Variance is expressed in squared units (e.g., cm², sec², $²).

Variance Formula

Population Variance (σ²)

$$ \sigma^2 = \frac{\sum (x_i - \mu)^2}{N} $$

Sample Variance (s²)

$$ s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1} $$

Where:

  • xᵢ = each value in the dataset
  • μ = population mean
  • = sample mean
  • N = population size
  • n = sample size

How to Use the Variance Calculator

  1. Enter or paste your dataset into the input box.

  2. Choose whether to use decimal point or decimal comma.

  3. Click Calculate.

  4. View results including:

    • Mean (μ)
    • Population variance (σ²)
    • Sample variance (s²)
    • Population and sample standard deviation (σ and s)
    • Step-by-step solution showing squared deviations

Worked Example

Dataset: 12, 15, 18, 20, 21

  1. Mean: (12 + 15 + 18 + 20 + 21) ÷ 5 = 17.2
  2. Deviations: -5.2, -2.2, 0.8, 2.8, 3.8
  3. Squared deviations: 27.04, 4.84, 0.64, 7.84, 14.44
  4. Population variance (σ²) = 54.8 ÷ 5 = 10.96
  5. Sample variance (s²) = 54.8 ÷ 4 = 13.7

So, the population variance = 10.96 and the sample variance = 13.7.

Variance vs Standard Deviation

  • Variance measures spread in squared units.
  • Standard deviation (SD) is the square root of variance, expressed in the same units as the data.

For example:

  • If variance = 9 (cm²), then standard deviation = 3 (cm).

Real-World Applications of Variance

  • Finance: measuring stock volatility and risk.

  • Science & Research: comparing variability in experiments.

  • Quality control: detecting inconsistent production.

  • Sports analytics: measuring performance variability.

  • Education: analysing spread of test scores.

FAQs

Q: Why divide by n−1 in sample variance?
A: It corrects bias when estimating population variance from a sample (Bessel’s correction).

Q: Can variance be negative?
A: No. Since it’s based on squared deviations, variance is always ≥ 0.

Q: What’s the main difference between variance and standard deviation?
A: Variance is in squared units, while standard deviation is the square root of variance (same units as the data).

Q: When should I use population vs sample variance?
A: Use population variance if you have the full dataset; use sample variance if working with a subset.

Was this calculator helpful?

Rate your experience to help us improve.

Thanks for rating! See the average and total ratings above.

Not rated yet—be the first to rate this calculator.