Variance Calculator

Calculate sample or population variance from a data set. Enter values to see variance, standard deviation, and the sum of squared deviations.

Variance measures how far values spread from the mean. Sample uses n-1 (Bessel correction).

Results will appear here.
Calculation details
Every figure above is calculated locally in your browser from the assumptions shown. No inputs are sent anywhere. See the methodology section below for the formulas used.
Use this resultShare the current inputs, or ask ChatGPT to explain the calculation in context.
Ask an AI to explain this result
Share this result

Planning estimate only, not financial, tax, or legal advice. Verify assumptions and current rules before making decisions.

This tool runs in your browser. Your calculator inputs and results are never transmitted to us or to ad/affiliate partners. Ads and sponsored links may set third-party cookies to serve and measure them, but they never receive your calculation values. If you explicitly save a scenario, its permitted fields stay in local browser storage until you clear them. See our Privacy Policy.

Use this result

Share the current inputs or ask ChatGPT to explain the calculation in context.

More options
Report a calculation issue
Direct answer

What does this calculator estimate?

For the data set 2, 4, 6, 8 (mean 5), the population variance is ((2-5)^2 + (4-5)^2 + (6-5)^2 + (8-5)^2) / 4 = 5.0, so the population standard deviation is about 2.24. The sample variance divides by n - 1 = 3 instead, giving 6.67 and a sample standard deviation of about 2.58.

  • Population variance divides by the number of values n; sample variance divides by n - 1 (NIST).
  • Standard deviation is the square root of variance and is in the same units as the data.
  • A variance of 0 means every value is identical.

What variance measures

Variance quantifies spread: the average squared distance of values from the mean. A variance of 0 means identical values; larger variance means wider spread. The standard deviation (its square root) is in the data's original units, making it the more readable metric.

Limitations to watch for

Squaring amplifies outliers — variance is sensitive to extreme values. Units are squared (dollars²), so use SD for interpretation. Sample vs population choice matters: use n−1 when estimating from a sample.

How to use it in practice

Use it to compare consistency: lower variance = more consistent results (quality control, portfolio risk, test stability). Report the standard deviation alongside the mean for context.

['Enter the numbers.', 'Choose population or sample.', 'Read variance and standard deviation.']

What variance measures

Variance measures how spread out data is: the average squared distance from the mean. A dataset where every value equals the mean has zero variance; one with extreme values has large variance. The square makes large deviations count disproportionately, which is why variance is sensitive to outliers.

Population vs. sample variance

Population variance divides by N (all data points); sample variance divides by N−1 to correct for the bias of estimating from a sample. The same dataset gives different numbers under the two formulas, so choosing the right one matters: use population for a complete set, sample when your data is a sample of a larger group.

Variance vs. standard deviation

Standard deviation is the square root of variance, returning the measure to the original units. A variance of 16 means a standard deviation of 4. Standard deviation is usually the more interpretable number; variance is the building block for it and for statistical tests.

A worked example

For the dataset [2, 4, 4, 4, 5, 5, 7, 9], the mean is 5. Population variance is the average of the squared deviations: (9+1+1+1+0+0+4+16)/8 = 4.0. Sample variance divides by 7 instead, giving about 4.57. The calculator shows both so the choice is explicit.

When variance matters in practice

Variance is central to quality control (consistency of a process), finance (volatility of returns), and experiment design (spread within groups). A tool with low variance in its measurements is predictable; a stock with high variance is volatile. The calculator gives the number; the context decides what it means.

Transparent methodology

How this calculator works

Reviewed 2026-08-25 · BoringToolsKit Editorial Team

Formula

Variance = Σ(xᵢ − mean)² ÷ n (population) or ÷ (n − 1) (sample). Standard deviation = √variance.

Worked example

For [2, 4, 6]: mean = 4; population variance = ((2−4)² + (4−4)² + (6−4)²) ÷ 3 ≈ 2.667; sample variance = 4.

Assumptions to verify

  • At least two numbers are provided.
  • The mode (population/sample) matches the context.
  • Values are numeric.

Frequently asked questions

What is variance?

The average squared distance of values from the mean — a measure of spread. [2,4,6] has population variance ≈ 2.667.

How is variance calculated?

Square each value's deviation from the mean, sum them, and divide by n (population) or n−1 (sample).

Population or sample — which do I use?

Sample (n−1) when your data is a sample of a larger population — the standard in research.

What's the difference between variance and standard deviation?

SD is the square root of variance — in the original units, so it's easier to interpret.

Why is variance sensitive to outliers?

Squaring makes large deviations dominate — one extreme value inflates the number.

What does a variance of 0 mean?

All values are identical — no spread at all.

How is variance used in finance?

It measures volatility: higher variance means more risk in returns.

What is variance in statistics?

The average squared distance from the mean — a measure of how spread out the data is.

What is the difference between population and sample variance?

Population divides by N; sample divides by N−1 to correct estimation bias.

How do I interpret variance?

Larger variance means more spread; the standard deviation (its square root) is easier to interpret in the original units.

Why is variance squared?

Squaring makes large deviations count more and removes negative signs so deviations don't cancel out.

Cite this tool

BoringToolsKit. “Variance Calculator.” boringtoolskit.com/variance-calculator/ (reviewed 2026-08-25). Free to reference in articles, syllabi, and answer posts with a link.

Privacy: Inputs and results stay in this browser. Any future sponsored recommendation or advertisement will be clearly labeled and kept separate from the calculation.