Contact

VAR Function in Apple Numbers: Sample Variance and Examples

Statistical Intermediate Apple Numbers

Calculate sample variance in Apple Numbers with sample data, n-1 calculation, native limitations and common mistakes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =VAR(B2:B9) returns approximately 4.571428571428571 for the complete numeric fixture below. It calculates sample variance. Variance uses squared measurement units; the related standard deviation restores the original unit.

Availability and version history

  • Introduced: Original release and introduction date are not established by the checked references.
  • Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; no final supported-version endpoint is established.
  • Scope: Shared iWork reference. Function-specific historical availability across Mac, iPad, iPhone and iCloud is unverified.
  • Checked: October 14, 2026, against the official VAR reference. Independent exact/high-precision statistical calculations; no native Numbers test.

Syntax, types and denominator

=VAR(value, value…)

Supply a first value or collection, with optional additional compatible values or collections. The ellipsis describes repetition; do not type it into a formula. Apple requires at least two included values, even for its population functions, and says all values must have the same type. The documented types here are numbers or date/time values.

The companion standard-deviation entry explicitly includes durations; this variance entry does not. Treat that omission as an evidence limit, rather than proof of a native rejection or support by analogy. All worked inputs below are ordinary numbers.

For those numbers, sample variance divides the sum of squared deviations from their mean by nāˆ’1. That variance is the result returned by VAR. VARP uses the other denominator. Choose according to whether the observations constitute the whole population of interest or a sample from it, not according to which answer looks preferable.

Preserve the original numeric worksheet

Create a Numbers table named QualitySamples, with ten columns A:J and twelve rows, including one header row. Put Trial in A1 and Measurement in B1. Enter:

Row A: Trial B: Measurement
2 1 2
3 2 4
4 3 4
5 4 4
6 5 5
7 6 5
8 7 7
9 8 9

In D2 enter =VAR(B2:B9); expect approximately 4.571428571428571. Put =AVERAGE(B2:B9) in D3 for 5, and =COUNT(B2:B9) in D4 for 8. Keep measurement units in a heading or label rather than appending text to the numeric values.

In C2 enter =(B2-$D$3)^2 and fill through C9. The squared deviations are 9, 1, 1, 1, 0, 0, 4, 16, totaling 32. Enter =SUM(C2:C9) in D5 for that total.

Cell Formula Expected result
D6 =D5/(D4-1) 4.571428571428571
D7 =SQRT(D6) 2.138089935299395

This exposes the mean, count, deviations and denominator separately. The helper count is appropriate for this fully numeric fixture; do not assume it resolves the inclusion policy of every mixed-type dataset. Calculations should keep their unrounded results even when the display shows fewer decimal places.

Use F2:F6 in QualitySamples:

Cell Formula Expected result
F2 =VAR(3,7) 8
F3 =VAR(4,4,4) 0
F4 =VAR(B2:B9,5) 4
F5 =STDEV(B2:B9) 2.138089935299395
F6 =VARP(B2:B9) 4

The two-point sample has squared deviations 4 and 4 and divisor one. The constant sample has no spread. Adding a ninth reading of five leaves the original squared-deviation sum unchanged at 32 but makes the sample divisor eight.

F4 and F6 both give four, but they describe different inputs: nine sample values versus eight population values. Neither is a mere alternate spelling of VAR on the original sample.

Advanced: reconstruct the variance without a statistics function

The separate C-column already calculates deviations from the mean. Add a second check in H2 with =B2^2, then fill through H9. The squared readings are 4,16,16,16,25,25,49,81.

Cell Formula Expected result
J2 =SUM(B2:B9) 40
J3 =SUM(H2:H9) 232
J4 =(J3-J2^2/D4)/(D4-1) 4.571428571428571
J5 =J3-J2^2/D4 32

This is the identity ā€œsum of squares minus squared sum divided by countā€ for the centered squared-deviation total. Both reconstructions agree exactly for these small numbers.

It is a mathematical check, not a description of Apple’s internal algorithm. Subtracting nearly equal large totals can lose precision in finite-precision arithmetic, so do not treat this hand formula as a universally more accurate replacement for VAR. The explicit deviation calculation in C is easier to inspect here.

Reproduce Apple’s complete five-test grid

Create ClassScores, with ten columns A:J and nine rows, including a header row. Put Test A through Test E in A1:E1. Enter only these numbers in A2:E6; row numbers below are worksheet labels, not another data column.

Row A B C D E
2 75 82 90 78 84
3 100 90 95 88 90
4 40 80 78 90 85
5 80 35 95 98 92
6 90 98 75 97 88

Apple’s original numeric grid starts at row 1. This table shifts it down one row to retain headings, and every formula below uses the shifted range.

Result cell Formula Expected result Square-root standard deviation
G2 =VAR(A2:A6) 520 22.80350850198276
G3 =VAR(B2:B6) 602 24.53568829277059
G4 =VAR(C2:C6) 90.3 9.50263121456368
G5 =VAR(D2:D6) 65.2 8.07465169527454
G6 =VAR(E2:E6) 11.2 3.346640106136302

To reproduce the final column in cells H2:H6, enter =STDEV(A2:A6) in H2, then the corresponding B2:B6, C2:C6, D2:D6 and E2:E6 formulas in H3:H6. Keep these as five explicit column selections rather than filling a relative range vertically.

Test B has the greatest dispersion and Test E the least. Apple presents the selected students as an illustrative sample and cautions that it is not a statistically justified sampling design. The results do not establish teaching quality, fairness or whether the observations represent a wider population.

One eligible value is outside Apple’s documented minimum. The page does not give an exact displayed error token for that case. Do not assume a population function accepts one observation because another spreadsheet product does.

Numeric-looking text, errors and mixed-type ranges need their own checks. This guide does not extend the clean numeric fixtures to every coercion case. A visible number format alone is not proof that an imported cell holds a number. Selecting a header, a subtotal or the result itself also changes the dataset or can create a circular reference.

These formulas operate within the named table. For another table, use the formula editor to construct a qualified reference such as QualitySamples::B2:B9, following Apple’s reference guide. Formula arguments use English commas here; Apple’s function overview specifies semicolons when decimal-comma settings apply. The colon in a range stays a colon.

AVERAGE calculates the mean, COUNT checks a numeric fixture’s count and SQRT connects variance with standard deviation. STDEV supplies the companion statistic. Identical mathematical purposes across products do not establish matching type, error, locale or export behavior.