/

Variance Calculator – Sample, Population Variance & Coefficient of Variation

Variance Calculator - Sample, Population Variance & Coefficient of Variation
Statistics Tool

Variance Calculator

Calculate sample variance (÷n−1) or population variance (÷n), coefficient of variation (CV%), and variance percentage (% change between two numbers) — three distinct calculations, clearly separated, with complete step-by-step working for each.

Tool 1 — Sample vs Population Variance Calculator
Sample s²: ? Population σ²: ?

Use SAMPLE Variance

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

Use this when your data is a sample drawn from a larger population — e.g. 30 patients out of a hospital's full patient base. Dividing by n−1 (Bessel's correction) prevents underestimating the true population variance.

Use POPULATION Variance

σ² = Σ(x−μ)² / n

Use this only when your data IS the entire population — e.g. test scores of every student in one specific class (not a sample of students). No correction is needed since you already have every value.

Separate values with commas, spaces, or new lines. Both sample and population variance are always calculated and compared side by side below.
4,8,6,5,3,7 (default)
Test scores example
Classic textbook set
Larger dataset (n=8)
Error

Sample Variance (s²)

Std Dev (s) = —

Population Variance (σ²)

Std Dev (σ) = —
Step-by-Step Working — Sample Variance
Tool 2 — Coefficient of Variation (CV) Calculator
CV = (σ/μ) × 100%  =  ?

Use case: CV is most useful for comparing variability between datasets with different units or different means — e.g. comparing the variability of weights measured in kilograms against heights measured in centimeters. Standard deviation alone cannot make that comparison meaningfully; CV can, because it is a unitless percentage.

CV Interpretation Guide (general convention, not an absolute rule):

CV < 15%Low variability — data points cluster tightly around the mean
15% – 35%Moderate variability
CV > 35%High variability — data points are widely dispersed relative to the mean
μ=5.5, σ=1.87
μ=100, σ=12
μ=50, σ=25 (high CV)
μ=70, σ=3.5 (low CV)
Error

Coefficient of Variation

CV = —

Step-by-Step Working
Tool 3 — Variance Percentage (% Change Between Two Numbers)

Important: this tool calculates percent change / variance between two single numbers (e.g. budget vs actual, last year vs this year) — not the statistical variance of a dataset. For the statistical variance of a full data set (mean, deviations, sample vs population), use Tool 1 above.

% variance = ((new−old)/|old|)×100  =  ?
Revenue: $50k → $58k
Budget: 120 → 90
No change: 200 → 200
Negative old: −50 → −20
Error

Variance Percentage (% Change)

% variance = —

Step-by-Step Working
Variance Formulas — Interactive Reference
1 Sample Variance s² = Σ(x−x̄)²/(n−1)

Used when your dataset is a sample drawn from a larger population. Dividing by n−1 (Bessel's correction) prevents systematically underestimating the true population variance.

2 Population Variance σ² = Σ(x−μ)²/n

Used only when your dataset IS the entire population, not a sample of it. No bias correction is needed because every value is already accounted for.

3 Standard Deviation σ (or s) = √variance

Standard deviation is simply the square root of variance. It is expressed in the same units as the original data, unlike variance which is in squared units — this makes standard deviation more intuitive to interpret.

4 Coefficient of Variation CV = (σ/μ)×100%

A unitless, relative measure of variability — ideal for comparing spread across datasets with different scales or units.

5 Variance Percentage (% Change) %Δ = ((new−old)/|old|)×100

This is a business/finance concept — percent change between two single numbers. It is unrelated to the statistical variance of a dataset in Tool 1.

6 Bessel's Correction — Why n−1? n−1 corrects downward bias

A sample's mean is calculated from the same data used to measure spread, which makes squared deviations systematically smaller than the true population's. Dividing by the smaller n−1 (instead of n) inflates the result just enough to correct this bias.

7 Variance → Standard Error SE = s/√n

Standard error builds directly on standard deviation, which comes from variance. Explore this next step with our Standard Error Calculator.

8 Variance → t-Test & Margin of Error t = diff/SE, MOE = crit×SE

Every t-test and margin of error calculation is ultimately built on variance. See these in action with our T-Test Calculator and Margin of Error Calculator.

Variance, CV & % Change — Quick Reference
Formula Quick Lookup
ConceptFormulaNotes
Sample varianceΣ(x−x̄)²/(n−1)Click to load example
Population varianceΣ(x−μ)²/nClick to load example
Standard deviation√varianceSame units as data
Coefficient of variation(σ/μ)×100%Click to load example
Variance percentage (% change)((new−old)/|old|)×100Click to load example
Sample vs Population — Side by Side
AspectSamplePopulation
Denominatorn − 1n
Symbolσ²
Mean symbolμ
Use whenData is a subset of a larger populationData IS the entire population
Bias correction?Yes — Bessel's correctionNo correction needed

What Is Variance?

This variance calculator computes sample variance, population variance, coefficient of variation, and variance percentage — three genuinely distinct calculations that share the word "variance" but answer very different questions. This page is the foundational statistics tool beneath our entire stats calculator suite, since variance and standard deviation feed directly into standard error, t-tests, and margin of error.

Variance measures how spread out a set of numbers is around its mean. It is calculated by finding the average of the squared differences between each data point and the mean. Variance is denoted σ² for a population or s² for a sample — the small "squared" symbol is a reminder that variance itself is expressed in squared units.

variance = average of squared deviations from the mean σ² (population) or s² (sample) — √variance = standard deviation (σ or s)

Because variance is in squared units (e.g. cm² if your data is in cm), it is not always intuitive on its own. Its square root — standard deviation — brings the measure back to the original units, which is why standard deviation is usually reported alongside, or instead of, raw variance.

This page is foundational: variance and standard deviation are the building blocks of nearly every other statistics calculator. Standard error builds directly on standard deviation, which comes from variance — explore that next step with our Standard Error Calculator, or see variance in action inside a T-Test Calculator and Margin of Error Calculator.

Sample Variance vs Population Variance — The Key Difference

This is the single most common point of confusion in introductory statistics. Both sample variance and population variance measure the same underlying idea — spread of data around a mean — but they use slightly different formulas, and choosing the wrong one is a frequent source of error.

Population Variance — Divide by n

Population variance is used when your dataset represents the entire population you care about — every single member, with nothing left out. Formula: σ² = Σ(x − μ)² / n. No correction is applied because you already have complete information; there is no estimation involved.

Sample Variance — Divide by n−1 (Bessel's Correction)

Sample variance is used when your dataset is only a sample drawn from a larger population — you don't have every value, just a subset. Formula: s² = Σ(x − x̄)² / (n−1). Notice the denominator is n−1, not n. This adjustment is called Bessel's correction.

Why n−1? The Intuition Behind Bessel's Correction

Here's the key insight: when you calculate a sample mean (x̄), you are using the very same data you'll use to measure spread. The sample mean is, by construction, the value that minimizes the sum of squared deviations for that specific sample — which means the sample's squared deviations are always a bit smaller than the true population's squared deviations would be around the true population mean (μ). In other words, samples systematically underestimate the true population variance if you divide by n.

Dividing by the smaller number n−1 instead of n makes the resulting sample variance slightly larger, which exactly corrects this downward bias on average. This makes sample variance an unbiased estimator of the true population variance — a mathematically important property.

Population variance: σ² = Σ(x−μ)²/n  |  Sample variance: s² = Σ(x−x̄)²/(n−1) Same numerator, different denominator — the entire distinction lives in n vs n−1

Example — The Same Dataset, Two Different Variances

  1. Dataset: 4, 8, 6, 5, 3, 7 (n = 6)
  2. Mean: (4+8+6+5+3+7)/6 = 33/6 = 5.5
  3. Sum of squared deviations: Σ(x−mean)² = 17.5
  4. If this is a sample: s² = 17.5/(6−1) = 17.5/5 = 3.5
  5. If this is the entire population: σ² = 17.5/6 = 2.92
  6. Notice sample variance (3.5) is always larger than population variance (2.92) for the same data — this is Bessel's correction inflating the estimate to correct for bias.

How to Calculate Variance — Step-by-Step

Whether you're computing sample variance or population variance, the process follows the same four steps — only the final division differs.

  1. Step 1 — Find the mean. Add all data points and divide by the count: mean = Σx/n.
  2. Step 2 — Find the deviations. Subtract the mean from each data point: (x − mean) for every value.
  3. Step 3 — Square each deviation. This removes negative signs and emphasizes larger deviations: (x − mean)².
  4. Step 4 — Average the squared deviations. Sum them all, then divide by n (population variance) or n−1 (sample variance).

Worked Example 1 — Sample Variance

  1. Data (sample): 10, 12, 23, 23, 16, 23, 21, 16 (n = 8)
  2. Mean: (10+12+23+23+16+23+21+16)/8 = 144/8 = 18
  3. Squared deviations: (10−18)²=64, (12−18)²=36, (23−18)²=25×3=75, (16−18)²=4×2=8, (21−18)²=9
  4. Sum = 64+36+75+8+9 = 192
  5. Sample variance: s² = 192/(8−1) = 192/7 ≈ 27.43
  6. Sample standard deviation: s = √27.43 ≈ 5.24

Worked Example 2 — Population Variance

  1. Data (entire population): 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)
  2. Mean: (2+4+4+4+5+5+7+9)/8 = 40/8 = 5
  3. Squared deviations: (2−5)²=9, (4−5)²=1×3=3, (5−5)²=0×2=0, (7−5)²=4, (9−5)²=16
  4. Sum = 9+3+0+4+16 = 32
  5. Population variance: σ² = 32/8 = 4
  6. Population standard deviation: σ = √4 = 2

Coefficient of Variation Explained

The coefficient of variation (CV) re-expresses standard deviation as a percentage of the mean, producing a unitless number that lets you compare variability across datasets that have completely different units or scales.

CV = (σ / μ) × 100% standard deviation divided by the mean, expressed as a percentage
CV RangeInterpretation
< 15%Low variability — data clusters tightly around the mean
15% – 35%Moderate variability
> 35%High variability — data widely dispersed relative to the mean

These thresholds are a general convention, not an absolute rule — always interpret CV in the context of what's typical for your specific field or data type.

Worked Example — Comparing Two Datasets with CV

  1. Dataset A (weights in kg): mean = 70, standard deviation = 3.5 → CV = (3.5/70)×100 = 5% (low variability)
  2. Dataset B (heights in cm): mean = 170, standard deviation = 25.5 → CV = (25.5/170)×100 = 15% (borderline moderate)
  3. Raw standard deviations (3.5 vs 25.5) look wildly different because they're in different units — but CV reveals Dataset B is actually proportionally three times more variable relative to its own mean.

How to Calculate Variance Percentage (% Change)

In business and finance contexts, "variance" often means something entirely different from statistical variance: the percent change between two single numbers — such as a budget vs actual figure, or this year's revenue vs last year's. This is not the same as the statistical variance of a dataset covered in Tool 1 above.

% variance = ((new value − old value) / |old value|) × 100 a positive result means an increase; a negative result means a decrease

Worked Example 1 — Revenue Variance

  1. Last year's revenue (old value): $50,000
  2. This year's revenue (new value): $58,000
  3. % variance = ((58,000 − 50,000)/|50,000|) × 100 = (8,000/50,000)×100 = +16%
  4. Interpretation: revenue increased by 16% year-over-year.

Worked Example 2 — Budget Variance

  1. Budgeted amount (old value): $120,000
  2. Actual spend (new value): $90,000
  3. % variance = ((90,000 − 120,000)/|120,000|) × 100 = (−30,000/120,000)×100 = −25%
  4. Interpretation: actual spend came in 25% under budget — a favorable variance in most budgeting contexts.

Variance vs Standard Deviation

Variance and standard deviation measure exactly the same underlying concept — spread of data — but express it differently:

AspectVarianceStandard Deviation
Formulaaverage of squared deviations√variance
UnitsSquared units (e.g. cm²)Same units as data (e.g. cm)
Symbolσ² (population), s² (sample)σ (population), s (sample)
InterpretabilityLess intuitive (squared scale)More intuitive — directly comparable to the data

Because standard deviation is on the same scale as the original data, it's typically the number reported to a general audience, while variance remains essential for the underlying mathematics — including every calculation that flows from it, like standard error and confidence intervals.

Worked Examples

1. Sample Variance — Small Dataset

  1. Sample: 3, 6, 9, 12, 15 (n=5)
  2. Mean = 45/5 = 9
  3. Squared deviations: 36+9+0+9+36 = 90
  4. s² = 90/(5−1) = 90/4 = 22.5; s = √22.5 ≈ 4.74

2. Population Variance — Small Dataset

  1. Population: 3, 6, 9, 12, 15 (n=5, same numbers, but now treated as the full population)
  2. Mean = 9; sum of squared deviations = 90
  3. σ² = 90/5 = 18; σ = √18 ≈ 4.24
  4. Compare to sample variance above (22.5) — population variance is always smaller for identical data.

3. Coefficient of Variation — Comparing Test Scores Across Classes

  1. Class A: mean = 75, SD = 5 → CV = (5/75)×100 ≈ 6.7% (low variability, consistent performance)
  2. Class B: mean = 75, SD = 20 → CV = (20/75)×100 ≈ 26.7% (moderate variability — much more inconsistent, despite the identical mean)

4. Coefficient of Variation — Zero or Near-Zero Mean Caution

  1. Mean = 0.5, SD = 0.4 → CV = (0.4/0.5)×100 = 80%
  2. Note: CV becomes unstable and can be misleading when the mean is close to zero — always sanity-check CV results in this scenario.

5. Variance Percentage — Stock Price Change

  1. Stock price last month (old value): $45
  2. Stock price this month (new value): $38
  3. % variance = ((38−45)/45)×100 ≈ −15.56% — a decline of about 15.6%

6. Variance Percentage — Handling a Negative Old Value

  1. Old value: −50 (e.g. a loss of $50k)
  2. New value: −20 (a smaller loss of $20k)
  3. % variance = ((−20−(−50))/|−50|)×100 = (30/50)×100 = +60%
  4. Interpretation: the loss improved by 60% — always divide by the absolute value of the old figure to keep the direction of change meaningful.

Frequently Asked Questions

What is variance?
Variance measures how spread out a set of numbers is from their mean. It is calculated by averaging the squared differences between each data point and the mean. Variance is denoted σ² (population) or s² (sample), and its square root is the standard deviation (σ or s), which is expressed in the same units as the original data.
What is the difference between sample and population variance?
Population variance divides the sum of squared deviations by n (the total population size). Sample variance divides by n−1 instead of n — this is called Bessel's correction. It is used because a sample's variance tends to underestimate the true population variance, and dividing by the smaller number n−1 corrects this bias, producing a more accurate estimate.
What is coefficient of variation used for?
The coefficient of variation (CV) is used to compare the relative variability of datasets that have different units or very different means — something raw standard deviation cannot do. For example, CV lets you meaningfully compare the variability of weights measured in kilograms against heights measured in centimeters, since CV is a unitless percentage: CV = (standard deviation / mean) × 100%.
How do you calculate variance percentage?
Variance percentage (in the business/finance sense) measures the percent change between two single numbers, such as budget vs actual or last year vs this year. Formula: % variance = ((new value − old value) / |old value|) × 100. This is different from the statistical variance of a dataset — it compares only two numbers, not a full set of data points.
Why do we divide by n-1 for sample variance?
We divide by n−1 (Bessel's correction) because a sample mean is calculated from the same data used to measure spread, which makes the sample's squared deviations systematically smaller than the true population's squared deviations. Dividing by n−1 instead of n inflates the result slightly, correcting this downward bias and producing an unbiased estimate of the population variance.
What is the formula for variance?
Population variance: σ² = Σ(x − μ)² / n. Sample variance: s² = Σ(x − x̄)² / (n − 1). In both formulas, you subtract the mean from each data point, square the result, sum all the squared differences, then divide by n (population) or n−1 (sample).
What is the difference between variance and standard deviation?
Variance (σ² or s²) is the average of squared deviations from the mean, expressed in squared units (e.g. cm²). Standard deviation (σ or s) is the square root of variance, expressed in the same units as the original data (e.g. cm). Standard deviation is generally easier to interpret because it is on the same scale as the data itself.
What counts as a high coefficient of variation?
As a general guideline (not an absolute rule): CV below 15% typically indicates low variability, 15–35% indicates moderate variability, and above 35% indicates high variability relative to the mean. These thresholds vary by field — always interpret CV in the context of what is typical for your specific type of data.
Can variance be negative?
No. Variance can never be negative because it is calculated by averaging squared deviations, and a squared number is always zero or positive. Variance equals zero only when every data point in the dataset is identical (no spread at all).
How is variance used in other statistics calculators?
Variance is the foundation beneath most inferential statistics. Standard deviation (√variance) feeds directly into standard error (SE = s/√n), which in turn is the core building block of t-tests (t = difference / SE) and margin of error (MOE = critical value × SE). Understanding variance is the essential first step before using any of these downstream calculators.

Related Calculators

Quick Formulas
s² = Σ(x−x̄)²/(n−1) Sample Variance
σ² = Σ(x−μ)²/n Population Variance
σ or s = √variance Standard Deviation
CV = (σ/μ)×100% Coefficient of Variation
%Δ = ((new−old)/|old|)×100 Variance Percentage
Most Searched
Sample var: [4,8,6,5,3,7]
Pop var: [10,12,23...]
CV: μ=5.5, σ=1.87
% change: $50k→$58k
% change: 120→90

Free chemistry, physics, biology & math calculators with step-by-step solutions. Trusted by 100,000+ students. Solve any science problem instantly!

Newsletter

Subscribe to our Newsletter to be updated. We promise not to spam.

Copyright © 2026 SciSolveLab. All Rights Reserved

Scroll to Top