Contact

VAR.P Function in LibreOffice Calc — Tested Examples

Statistical Beginner LibreOffice Calc

Calculate complete-population variance in LibreOffice Calc with VAR.P. Reproduce a cell dataset, compare sample variance and check text, blanks, single values and squared units.

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

Quick answer: VAR.P calculates variance for the entire supplied population using divisor n. Its output is in squared units; VAR.S uses a different sample divisor.

Availability and version history

  • Introduced: LibreOffice 4.2.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Calculates variance based on the entire population. For the complete population 2,4,6, the variance is 8/3, roughly 2.667.

Syntax and arguments

=VAR.P(Number1 [; Number2; ...])

Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).

Argument Explanation
Number1 First number or cell range to include.
Number2; ... Optional additional numbers or ranges; the Help documents up to 255 arguments.

A single range can supply multiple observations for the population variance.

Official VAR.P syntax and arguments.

Worked examples

Example 1: Calculate population variance

=VAR.P(2;4;6)

Expected result: 2.6666666666666665. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Population variance of 1, 2, 3

=VAR.P(1;2;3)

Expected result: 0.6666666666666666. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

For the complete population 2,4,6, the variance is 8/3, roughly 2.667.

Mistakes and troubleshooting

  • Check inputs and assumptions: Population variance uses n, not n−1. Report the definition clearly.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

Additional worked application and edge cases

Population definition and units

VAR.P divides the sum of squared deviations from the mean by n, the number of included observations. Use it when the supplied data is the entire population you intend to describe. The number of rows alone does not establish whether data is a population or a sample.

The result has squared units. If observations are in millimetres, variance is in square millimetres. A standard deviation uses the square root of variance and returns to the original units.

Stepwise example: all four items in a small population

Put 2, 4, 4, 6 in A2:A5, representing all four items under study. Enter =VAR.P(A2:A5) in C2.

The independently expected result is 2. The mean is4, squared deviations are4,0,0,4, and their total8 is divided by four observations. =SQRT(C2) gives approximately 1.4142135624 as the population standard deviation.

A matching sample-variance formula =VAR.S(A2:A5) would instead divide8 by3 and return approximately 2.6666666667. That is the sample estimator, not a more precise version of the population calculation. Select the definition based on the study, not the preferred numerical answer.

Second example: one observation and no observations

For a single numeric observation 7 in D2, =VAR.P(D2) is expected to return 0: its deviation from its own mean is zero. This is mathematically different from an empty set, for which no mean or population variance is defined.

A referenced range with no included numeric observations yields a division-by-zero condition in the inspected population-variance implementation. Do not replace that result with zero unless absence of data is intentionally encoded that way. Zero variance normally means the included observations are equal, not that there were none.

Advanced application: audit included data types

Add text pending in A6, leave A7 genuinely empty and put ="8" in A8. For the referenced range =VAR.P(A2:A8), text and empty cells are ignored; the expected variance remains 2 for the four numeric observations.

The text8 is not an extra observation8. If it should be included, explicitly parse it under the intended locale before calculating. An actual added numeric8 would change the dataset and its variance. Keep logical flags and labels outside a measurement range; Calc’s numeric treatment of logical values and direct-literal coercion should not be assumed identical to another spreadsheet’s rules.

Error cells are not ordinary text to discard and may propagate an error. Count or inspect the included observations rather than trusting a plausible variance from an incomplete import.

Numerical precision and equivalent names

Large common offsets combined with tiny differences can expose finite-precision limitations. Preserve original measurement precision and avoid prematurely rounding values. A small variance relative to the scale of the numbers deserves a numerical check, not an automatic conclusion that all observations are identical.

VARP is the older compatible population-variance name in Calc; it does not represent a second statistical definition to calculate alongside VAR.P. This guide upgrades the existing VAR.P route only. VARPA differs because it treats text as zero and should not be substituted without reviewing the data policy.

LibreOffice documents VAR.P since 4.2 with its Microsoft compatibility namespace. The original tested formulas and optional-argument syntax above remain unchanged.

Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.

COUNT · AVERAGE · SUM

Tested version and primary reference

2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.

Detailed reference checked October 17, 2026