Enter any dataset and instantly get the population or sample variance, standard deviation, mean, and a full per-value deviation breakdown.
| Value | Deviation (x − mean) | Squared Deviation |
|---|
Enter a dataset to calculate its variance
A variance calculator measures exactly how spread out a dataset is around its average, expressed in squared units. Enter any list of numbers and this free variance calculator instantly returns the mean, the population or sample variance, the standard deviation, and a full per-value deviation breakdown — so you see the working, not just the final number. Variance is the mathematical foundation beneath standard deviation, and it underlies core techniques in finance, quality control, and machine learning. Whether you need a population variance calculator for a complete dataset or a sample variance calculator to estimate a larger group's spread, this tool shows every step of statistics variance from raw data to result.
Variance is the average of the squared deviations of every value from the mean. Squaring each deviation ensures values above and below the mean don't cancel out, and it weights larger deviations more heavily. A higher variance means the data is more widely scattered from its average; a variance of zero means every value is identical. Because the squaring step changes the units (e.g. dollars become dollars²), variance is often paired with its square root, standard deviation, for easier interpretation.
This tool is built for students learning statistics variance, teachers grading assignments on data spread, data scientists profiling features before machine learning, finance professionals modeling portfolio risk, quality engineers monitoring process consistency, and researchers running ANOVA or confidence-interval calculations. Anyone who needs a fast, accurate variance and standard deviation calculator can use it.
Variance is the building block behind nearly every advanced statistical technique — standard deviation, confidence intervals, hypothesis tests, ANOVA, and regression all rely on it. It gives a single, mathematically well-behaved number that describes dispersion, making it possible to combine variability estimates across groups (as in ANOVA) in ways that simpler measures like range cannot support.
Portfolio managers use variance of returns to quantify investment risk and model diversification through covariance. Manufacturers track process variance across batches to catch inconsistency before it causes defects. Researchers use variance in ANOVA and t-tests to determine whether group differences are statistically meaningful. Machine learning practitioners use variance for feature scaling and to evaluate how much a model's predictions fluctuate.
How this calculator computes both population and sample variance
Sample variance divides by n−1 instead of n, a slightly larger divisor that corrects the downward bias of estimating a population's spread from a smaller sample.
Variance is expressed in squared units of the original data (e.g. dollars²). Its square root, standard deviation, returns to the original unit for easier interpretation.
Because every deviation is squared before averaging, a single extreme value can inflate variance far more than it inflates a simple average or median.
From entering data to reading the deviation breakdown
Type or paste your numbers into the Data Set box, separated by commas, spaces, or line breaks.
Select Sample if your data is a subset of a larger population, or Population if it represents the entire group being studied.
The calculator computes the mean, every deviation, and the variance instantly.
The highlighted result box shows the Sample or Population Variance matching your selected mode, plus standard deviation, mean, and count.
Check the Value, Deviation, and Squared Deviation columns to see exactly how each data point contributes to the total variance.
Toggle between Sample and Population without re-entering your data to see how the divisor (n vs n−1) changes the result.
The calculator's own default dataset: 2, 4, 4, 4, 5, 5, 7, 9
A small dataset of 8 values: 2, 4, 4, 4, 5, 5, 7, 9. We'll compute both the sample and population variance, plus their standard deviations.
Explanation: the sample variance (≈4.5714) is larger than the population variance (4) because dividing by n−1 instead of n always produces an equal or larger value — this is exactly the bias correction Bessel's correction applies when your data is only a sample.
What a high or low variance actually tells you
| Result Pattern | What It Means | Example |
|---|---|---|
| Variance close to 0 | Values cluster very tightly around the mean; low variability | Dataset 5,5,5,6 → variance ≈ 0.19 |
| Variance large relative to mean² | High relative variability — values are widely spread compared to their average size | Mean 10, variance 64 → highly variable |
| Variance = 0 | Every value in the dataset is exactly identical | Dataset 7,7,7,7 → variance = 0 |
| Sample variance > Population variance (same data) | Expected — Bessel's correction (÷ n−1) always produces an equal or larger value than ÷ n | 32÷7 ≈ 4.57 vs 32÷8 = 4 |
Typical ranges: there's no universal "good" or "bad" variance — because it's in squared units, it must be judged relative to the mean, or converted to standard deviation for an intuitive scale. Comparing standard deviation to the mean (coefficient of variation) is often more useful for judging relative spread.
Manual verification: pick any one row from the Deviation Breakdown table, confirm value − mean equals the listed deviation, square it, and check it matches the squared-deviation column. Then confirm the sum of all squared deviations divided by n (or n−1) equals the displayed variance, and its square root equals the displayed standard deviation.
Where measuring squared dispersion actually matters
Check homework on population vs sample variance and the deviation-squaring method step by step.
Quickly verify variance and standard deviation answers for entrance and certification tests.
Use variance for feature scaling, PCA, and understanding model evaluation metrics like MSE.
Quantify investment risk as the variance of historical returns, a core input to portfolio theory.
Compare process variance across production batches to detect inconsistency early.
Compute variance for ANOVA, t-tests, and confidence interval calculations.
Compare variance in performance metrics between players, teams, or seasons.
Quantify how much temperature or rainfall varies around a seasonal average.
Assess within-group variance before determining whether a difference between groups is meaningful.
Model the variance of claims or losses to price risk more accurately.
See how consistent (or unpredictable) your monthly spending or income really is.
Measure how much responses vary around the average rating or score.
Compare the variance of scores across different classes or exam versions.
What this variance calculator does well, and where care is still needed
The two modes side by side
| Aspect | Population (σ²) | Sample (s²) |
|---|---|---|
| Divisor | N (full dataset size) | n − 1 (Bessel's correction) |
| Use when | Data IS the entire group being studied | Data is a subset used to estimate a larger population |
| Formula | σ² = Σ(x−μ)² ÷ N | s² = Σ(x−x̄)² ÷ (n−1) |
| Result size (same data) | Always ≤ sample result | Always ≥ population result |
| Typical example | Every student's score in one class | A survey sample used to estimate a national average |
Summary: This variance calculator gives you an instant, free way to compute population or sample variance, standard deviation, and a full deviation breakdown from any dataset. Pair it with related tools like the Standard Deviation Calculator and Normal Distribution Calculator for a fuller statistical picture.
Common questions about variance
Trusted educational references to go deeper on the statistics behind this calculator
Explore other statistics tools