# VARP

The **VARP** function returns the population variance of a dataset. It measures how widely values are spread from the mean when the data represents the entire population. The calculation uses **n** in the denominator.

### Syntax

```javascript
VARP(number1, [number2], ...)
```

### Arguments

The **VARP** function syntax has the following arguments:

* number1, number2, ... - The numeric values for which you want to calculate the population variance. Required.

### Example

<pre class="language-javascript"><code class="lang-javascript"><strong>VARP(10, 20, 30)
</strong>// Returns 66.67
<strong>VARP(10, 20, 30, 40, 50)
</strong>// Returns 200
</code></pre>

You can use the VARP function to analyze how widely values are spread from the mean by calculating the population variance for metrics such as sales, revenue, or performance scores.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F2ZB4XbHg2ZOCukgR53TX%2F2026-02-17_14h33_08.png?alt=media&#x26;token=9990a6bb-c095-423f-9d7d-c773135e0740" alt=""><figcaption><p>VARP function</p></figcaption></figure>

{% hint style="info" %}
We used the [**SELECT**](https://docs.inforiver.com/formula-syntax/measure-column-selection-functions/select) function to select a range of columns from 1 to 4 for the 'Revenue' measure (2022 Revenue - 2025 Revenue)
{% endhint %}

### Excel Equivalent

[VARP](https://support.microsoft.com/en-us/office/varp-function-26a541c4-ecee-464d-a731-bd4c575b1a6b)

{% hint style="info" %}
[**VARS** ](https://docs.inforiver.com/formula-syntax/statistical-functions/vars)calculates the sample variance using (n − 1) in the denominator and should be used when working with a sample dataset, whereas **VARP** calculates the population variance using (n) in the denominator and should be used when working with the entire population.
{% endhint %}

### FAQs

**Q1. How is VARP calculated?**

VARP (Population Variance) is calculated by taking the sum of squared deviations from the mean and dividing it by n.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F7qkGkIQHmqb9G1nY01Ea%2F2026-02-17_14h36_45.png?alt=media&#x26;token=b6fae2a8-0b74-4928-be55-e65598cf5d2f" alt="" width="195"><figcaption></figcaption></figure>

Where:

* x = each value in the dataset
* <img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fslitpr0n5IIdqR8vSl7J%2Fimage.png?alt=media&#x26;token=4d5395e4-8978-4933-b791-684a3e9cd48a" alt="" data-size="line"> = mean of the values
* n = number of values

It measures how widely the values are spread from the mean by calculating the population variance, which represents the average squared deviation from the mean when the data represents the entire population.
