Variance Calculator
About this tool
About Variance Calculator
Variance measures how far a set of numbers spreads out from its mean, and it is the step every standard deviation, ANOVA and regression builds on. Paste your values, say whether they are a sample or a whole population, and the calculator shows the variance together with the working: the mean, each value's deviation from it, the squared deviations, their sum, and the division by n − 1 for a sample or N for a population. The standard deviation, which is the square root of the variance, is shown alongside. The working table can be downloaded as CSV. Values can be separated by commas, spaces or new lines, so a column from a spreadsheet pastes straight in, and anything that isn't a number is listed so you can fix it. Results match Excel's VAR.S and VAR.P. All arithmetic happens in your browser.
Built and maintained by Abhi JainUpdated
How to Calculate Variance
- 1
Enter the data
Type or paste your numbers into the Data box, or click Sample.
- 2
Choose Sample or Population
Select Sample (n − 1) or Population (N).
- 3
Read the working
See the variance, the steps and the table of squared deviations. Download the table if you need it.
Variance Calculator: questions and answers
What is the formula for variance?
Sample variance: s² = Σ(x − x̄)² / (n − 1). Population variance: σ² = Σ(x − μ)² / N. Subtract the mean from each value, square, add up, then divide.
Why is variance in squared units?
Because the deviations are squared. If the data is in centimetres, the variance is in square centimetres. Take the square root to get the standard deviation, which is back in centimetres.
Can variance be negative?
No. It is a sum of squares divided by a positive number, so it is zero when all values are equal and positive otherwise.
Which Excel function matches?
Sample matches VAR.S (and VAR); Population matches VAR.P (and VARP).
More Standard Deviation Calculator presets
Related tools
- Statistics CalculatorMean, median, mode, standard deviation, quartiles, outliers and skewness for any list of numbers.
- Percentile CalculatorFind the value at any percentile or the percentile rank of a value, with Excel-compatible methods.
- CSV AnalyzerProfile every column of a CSV: types, missing values, unique counts, min, max, mean, median, histograms and outliers.
- Mock Data GeneratorGenerate realistic fake data from a schema as JSON, CSV, SQL or TypeScript, with a seed.