VAR Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel VAR function estimates the variance of a population from a sample (dividing by n−1). It is a legacy name — Microsoft now recommends VAR.S, which is identical.


Quick answer:
=VAR({1,2,3,4,5,6,7,8,9,10}) sample variance ≈ 9.167

Syntax

=VAR(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first value or range of the sample.
number2, ...OptionalUp to 254 more values or ranges. Text and logical values in references are ignored.

How to use it

VAR treats your data as a sample of a larger population, dividing by n−1. It is the square of the sample standard deviation (STDEV).

=VAR({1,2,3,4,5,6,7,8,9,10}) // sample variance ≈ 9.167

If your data is the whole population, use VARP (divide by n) instead, which gives a slightly smaller value.

Use the modern name: =VAR.S(...) is the supported replacement and returns the same value. The .S marks it as the “sample” variance (vs. VAR.P for a population).

Try it: interactive demo

Live demo

Pick a VAR example to see the formula and its result.

Result:

Practice workbook

📊
Download the free VAR practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Is VAR the same as VAR.S?
Yes — VAR.S (Excel 2010+) is the sample variance (divides by n−1) and returns identical results. VAR is kept for backward compatibility.
What is the difference between VAR and VARP?
VAR (sample) divides by n−1; VARP (population) divides by n. Use VAR for a sample, VARP for the entire population.
How does VAR relate to STDEV?
Variance is the square of standard deviation: VAR = STDEV^2. Both use the n−1 sample correction.
Should I switch to VAR.S?
For new work, yes — it is the supported name and clarifies the sample-versus-population choice. Existing VAR formulas keep working.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: VAR.S · VAR.P · VARP · STDEV · STDEVP