Enter your data
Type or paste numbers separated by commas, spaces, or new lines. Example: 2, 4, 4, 4, 5, 5, 7, 9
Paste a list of numbers and instantly calculate variance, standard deviation, and mean. Choose sample or population variance, see a step-by-step breakdown, then save or share the result.
Type or paste numbers separated by commas, spaces, or new lines. Example: 2, 4, 4, 4, 5, 5, 7, 9
Variance is one of the most important “spread” statistics in math and data analysis. It answers a simple question: How much do these numbers vary? If two datasets have the same average, the one with higher variance is the one with bigger swings. That matters in school (statistics homework), in science (measurement noise), and in finance (risk).
There are two common formulas: population variance and sample variance. They look almost identical, but they divide by a different number at the end. That small change makes a big difference in interpretation.
For a dataset of n values: x1, x2, …, xn, the mean (average) is:
Next, compute each deviation from the mean: (xi − x̄). If you summed deviations directly, positives and negatives would cancel out, often producing 0. That would be useless as a measure of spread. So variance squares deviations to keep everything positive and to penalize bigger gaps more strongly.
The “sum of squared deviations” is:
Here’s where population vs sample splits:
In the population formula, μ is the true population mean (not just the average of your list). In the sample formula, x̄ is your sample mean, and dividing by (n − 1) is called Bessel’s correction. It slightly increases the result to correct for the fact that a sample tends to underestimate the true population variance when you use the sample mean.
Variance is in “squared units” (if your data is in dollars, variance is dollars²). That’s why standard deviation is so popular: it converts spread back into the original units.
In practice: use variance for formulas (like in probability and machine learning), and use standard deviation for human intuition (because it’s easier to interpret).
Let’s walk through a classic dataset: 2, 4, 4, 4, 5, 5, 7, 9. This is common in textbooks because it produces clean steps.
Same dataset, but treat it as a sample. Only the final division changes:
Both results describe the same spread, but the sample version is slightly larger. That’s intentional: sample variance compensates for using the sample mean rather than the true population mean.
If all numbers are identical (like 10, 10, 10, 10), then every deviation from the mean is 0. Sum of squares is 0 → variance is 0 → standard deviation is 0. That’s the “no spread” case.
This page calculates variance in a browser-friendly, copy-paste-first way. Here’s the exact flow:
The calculator accepts numbers separated by commas, spaces, tabs, or new lines. It also ignores empty items. If you paste something like “3, 4, five, 6”, it will flag it, because “five” isn’t a number. That’s important for trust: a single typo can throw off variance drastically.
Once the list is clean, we compute the mean x̄ by summing all values and dividing by n. The mean is the anchor point of the variance calculation.
For every value xi, the calculator computes a deviation from the mean (xi − x̄), then squares it. Squaring has two benefits: it avoids negative cancellations and gives extra weight to outliers.
Next, it adds all the squared deviations to get Σ(xi − x̄)². Then it divides:
Finally, it takes the square root of variance to compute standard deviation. This is usually the number people want to interpret (spread in original units).
The colored meter is not a scientific scale—variance doesn’t have a universal “max.” Instead, we map a quick preview using the coefficient of variation idea: std dev divided by the absolute mean (when mean isn’t near zero). This gives a rough, share-friendly “how spread out is it compared to the mean?” signal.
Everything runs locally in your browser, and “Save Result” stores a small history in localStorage so you can compare multiple datasets without creating an account.
Variance is the average squared distance from the mean. Standard deviation is the square root of variance, so it’s in the same units as your original data. Most people interpret standard deviation more easily.
Use sample variance when your dataset is a sample drawn from a larger population (surveys, experiments, batches). Use population variance only when you have the complete population. If you’re unsure, sample variance is usually correct for statistics problems.
Because using the sample mean makes the spread look slightly smaller on average. Dividing by (n − 1) corrects this bias and produces an “unbiased” estimator of population variance under common assumptions.
No. Variance is based on squared values, so it’s always 0 or positive. If you ever see a negative variance, it’s a calculation or rounding error.
Squaring deviations is what keeps them positive and emphasizes outliers. The tradeoff is the unit becomes squared. That’s why standard deviation (square root) is often preferred for interpretation.
The calculator computes using full precision first, then rounds for display. If you round too aggressively, you may hide important differences—especially in homework where exact steps matter. Use 4–6 decimals for safety.
Variance still works normally. The “spread meter” uses a rough normalization by mean for a share-friendly preview, and if the mean is near 0 it switches to a safer fallback so it doesn’t explode.
Jump to related tools (math + popular favorites):
MaximCalculator provides simple, user-friendly tools. Always treat results as educational estimates and double-check important numbers elsewhere.