Example 1
- 1, 2, 3, 4, 5
2
What is σ² for 1, 2, 3, 4, 5? 2 (SSD=10, ÷5).
Enter a list of numbers in one field (comma, space, or semicolon). The calculator computes population variance σ² = Σ(xᵢ − x̄)² / n. For 1, 2, 3, 4, 5 the result is 2; for 1 and 3 it is 1. The panel also shows comparative s² with divisor n−1, but the primary result divides by n. This is not a sample-mode primary result.
Enter at least two numbers in the list.
One text field with a list. The denominator is n, not n−1. Fewer than two parsed numbers leave a blank result. An integer variance is a plain integer string; a fraction uses six decimals. Guide: variance: how to calculate.
Population variance σ² of n numbers is the mean of squared deviations from the arithmetic mean: first x̄ = (1/n) Σ xᵢ, then σ² = (1/n) Σ (xᵢ − x̄)². The calculator uses the numbers you enter in one list field. For 1, 2, 3, 4, 5 the mean is 3, the sum of squared deviations is 10, and σ² = 10/5 = 2.
The denominator is n, not n−1. A sample estimator with Bessel’s correction would divide by n−1 and for 1 and 3 would give 2; here the result is 1, because two squared ones are divided by 2. The panel shows s² only for comparison. The primary result is always population σ².
The list needs at least two parsed values. One number leaves a blank result, not zero. Commas, spaces, and semicolons separate entries; empty pieces drop out. Order does not change the result: 5, 4, 3, 2, 1 also gives 2. Equal values give σ² = 0, for example 2, 2, 2.
Standard deviation σ = √σ² returns to the data unit. Neighboring deviation pages take the square root with a fixed field count; here you stay with variance for any n ≥ 2. An integer result is a plain integer string; a fraction uses six decimal places.
Examples: 1, 2, 3, 4, 5 → 2; 2, 2, 2 → 0; 1, 3 → 1; the list 2, 4, 4, 4, 5, 5, 7, 9 → 4. That is the same /n convention as on the population standard-deviation calculators in this hub.
x̄ = (1/n) Σi=1n xi, σ² = (1/n) Σi=1n (xi − x̄)² when n ≥ 2; otherwise blank.
Equivalently: σ² = (1/n) Σ xi² − x̄² (computational identity; the calculator uses deviations from the mean).
Standard deviation: σ = √σ². Sample estimator (panel comparison only): s² = SSD / (n − 1).
Mathematical model: population variance with divisor n — NIST/SEMATECH e-Handbook (Measures of Scale); Wikipedia — Variance; MathWorld — Variance. This page does not apply Bessel’s correction in the primary result.
For a finite set of real numbers {x₁, …, xₙ} the arithmetic mean x̄ is the sum of the values divided by n. Population variance σ² is the mean of the squared deviations (xᵢ − x̄)² with the same denominator n. The unit of σ² is the square of the data unit (for example m² when the xᵢ are in meters). The calculator on this page reads a list from one text field, requires n ≥ 2, and returns σ² as computed in the browser.
Statistical literature distinguishes population variance σ² = E[(X − μ)²] (or its empirical counterpart with divisor n) from sample variance s² = (1/(n−1)) Σ (xᵢ − x̄)². The NIST/SEMATECH e-Handbook describes both scale measures; MathWorld and Wikipedia give definitions and the identity Var(X) = E(X²) − (E(X))². This calculator states plainly: the primary result is σ² with divisor n.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Mean squared deviation crystallized in the nineteenth century with error theory and least squares (Gauss, Legendre). Ronald Fisher popularized the term “variance” in early twentieth-century quantitative genetics and biometry: variance became a natural scale of spread because independent component variances add. Bessel’s correction (division by n−1) comes from losing one degree of freedom after estimating the mean from the same sample — it yields an unbiased estimator of an unknown population variance when observations are i.i.d.
Conceptually variance is neither “better” nor “worse” than standard deviation: they are two presentations of the same spread information. In finance, return variance is often a risk measure; in physics it describes fluctuations; in machine learning MSE is mean squared error — a close cousin of empirical variance relative to a chosen target. This calculator does not estimate model parameters or build confidence intervals; it computes descriptive σ² from the entered list.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Input: n ≥ 2 finite real numbers. Output: σ² ≥ 0. σ² = 0 if and only if all parsed values are equal. Shift by a constant c: the variance of {xᵢ + c} equals the variance of {xᵢ}. Scaling by λ: Var(λx) = λ² Var(x). For independent random variables the variance of a sum is the sum of variances; here the list is treated as a finite population of numbers, not as a sample from a stochastic model.
The computational identity σ² = (1/n) Σ xᵢ² − x̄² is equivalent to the deviation definition when the mean and sum of squares share the same arithmetic. The calculator first computes the mean, then SSD, then divides by n — following a readable teaching path. It does not weight observations or discard outliers.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Step 1. Tokenize the list field: commas, spaces, and semicolons separate entries; empty tokens drop out; a decimal comma inside a single token is equivalent to a period.
Step 2. Let n be the count of successfully parsed values. If n < 2, the result stays blank.
Step 3. x̄ ← (x₁ + … + xₙ) / n.
Step 4. SSD ← Σ (xᵢ − x̄)²; σ² ← SSD / n; σ ← √σ².
Step 5. Comparatively s² ← SSD / (n − 1) — only in the panel, not as the primary result.
Worked path for 1, 2, 3, 4, 5: x̄ = 15/5 = 3; deviations −2, −1, 0, 1, 2; squares 4, 1, 0, 1, 4; SSD = 10; σ² = 2; σ = √2 ≈ 1.414214 (the panel shows the root; the primary result is 2).
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Equal values: 2, 2, 2 → σ² = 0. Two numbers 1 and 3 → x̄ = 2, SSD = 2, σ² = 1 (with n−1 it would be 2). The list 2, 4, 4, 4, 5, 5, 7, 9 → x̄ = 5, SSD = 32, σ² = 4 (the same SSD as in the classic standard-deviation example with σ = 2). One number or an empty field → no result. Negative values are allowed: −2, 0, 2 give mean 0 and σ² = 8/3.
Non-numeric fragments are skipped; if fewer than two values remain after filtering, the result is blank or a parse error appears when no token is a number.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Computation uses Number (floating-point arithmetic, about 15–16 significant digits). For typical school and lab lists the result is stable. With very large |xᵢ| and small relative spread, the classical deviation formula is usually better numerically in floating-point arithmetic than a naive E(X²) − (E(X))²; the calculator uses the deviation form. Display: an integer σ² without a fractional part; otherwise with six decimal places.
The number-line diagram marks points and the mean (dashed line). For very long lists the first 24 points are drawn; n in the panel remains complete.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
Related: standard deviation (square root of variance), arithmetic mean, range max − min (another spread measure), mean absolute deviation, sample variance s². For σ alone with two or three fixed fields, use the neighboring deviation pages.
Sources NIST/SEMATECH e-Handbook of Statistical Methods — Measures of Scale; Wikipedia — Variance; MathWorld — Variance; standard descriptive-statistics textbooks (σ² vs s² definitions). CalcBoxer educational tool — not a substitute for full-sample statistical analysis or R/Python packages.
In teaching practice it helps to separate the mathematical formula from floating-point limits: this calculator shows the browser’s floating-point computation (about 15–16 significant digits), not a symbolic paper proof. When inputs are extreme, check the domain first, then floating-point range.
For 1, 2, 3, 4, 5 the mean is 3, SSD = 10, and population variance σ² = 2.
2
What is σ² for 1, 2, 3, 4, 5? 2 (SSD=10, ÷5).
0
What is σ² for 2, 2, 2? 0.
1
What is σ² for 1, 3? 1 (over n=2; s² would be 2).
4
What is σ² for 2, 4, 4, 4, 5, 5, 7, 9? 4 (σ=2).
25
What is σ² for 0, 10? 25.
2.666667
What is σ² for −2, 0, 2? ≈ 2.666667 (8/3).
It computes population variance σ² from a list: the mean of squared deviations from the arithmetic mean with denominator n (count of successfully parsed values). For 1, 2, 3, 4, 5 the result is 2.
No. It divides by n. That is population variance σ², not the unbiased sample estimator s² with Bessel’s correction. For 1 and 3 the result is 1; dividing by n−1 would give 2.
At least two successfully parsed numbers. With one value or an empty field the result panel returns to the placeholder — it does not show zero.
With commas, spaces, or semicolons. Entries 1, 2, 3 and 1 2 3 are the same list. Empty pieces after the split are dropped.
The primary result is σ² (square of the data unit). Standard deviation σ = √σ² returns to the original unit. The panel also shows σ as a supporting figure; neighboring deviation pages use a fixed field count.
The mean equals that shared value, the sum of squared deviations is 0, so σ² = 0. Example: 2, 2, 2 gives 0.
No. Variance depends on the values and their mean, not on order. The list 5, 4, 3, 2, 1 gives the same result 2 as 1, 2, 3, 4, 5.
An integer variance is shown as a plain integer string (for example 2). When the result is not an integer, the calculator prints six decimal places.
No. The currency and unit settings in the page header do not affect this result. The result unit is the square of the unit of the entered numbers.
The panel shows s² = SSD/(n−1) only as a comparison with Bessel’s correction. The primary result remains population σ² = SSD/n — matching this page’s computation.
Find the mean x̄, sum the squares (xᵢ − x̄)², divide by n: σ² = SSD/n. For 1, 2, 3, 4, 5: SSD = 10, σ² = 2.
Population σ² = 2. That is the first example: mean 3, SSD = 10, divisor n = 5.
σ² = 8/3 ≈ 2.666667 (mean 4, SSD = 8, ÷3). Sample s² = 8/2 = 4 — comparison only in the panel.
The primary result on this page always divides by n (population). The n−1 divisor (Bessel’s correction) appears only as comparative s² in the panel, not as the headline result.
25. Fifth example: mean 5, two squared deviations of 25 each, SSD = 50, σ² = 50/2 = 25.
Population and sample variance definitions below come from recognized sources. This page computes σ² with divisor n.
Page updated November 3, 2026.