# STDEVP

The **STDEVP** function returns the population standard deviation of a dataset. It measures how widely values are dispersed from the mean, assuming the data represents the entire population. The calculation uses *(n)* in the denominator.

### Syntax

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

### Arguments

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

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

### Example

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

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

<figure><img src="/files/fjm7zMnTQVa8HvhvrNa9" alt=""><figcaption><p>STDEVP function</p></figcaption></figure>

{% hint style="info" %}
We can also use the [**SELECT**](/planning-sheets/formula-syntax/measure-column-selection-functions/select.md) function to select a range of columns from 1 to 4 for the 'Revenue' measure (2022 Revenue - 2025 Revenue)

<pre><code><strong>STDEVP(SELECT([Revenue], 1, 4))
</strong></code></pre>

{% endhint %}

### Excel Equivalent

[STDEVP](https://support.microsoft.com/en-us/office/stdevp-function-1f7c1c88-1bec-4422-8242-e9f7dc8bb195)

{% hint style="info" %}
[**STDEVS**](/planning-sheets/formula-syntax/statistical-functions/stdevs.md) calculates the sample standard deviation using *(n − 1)* in the denominator and should be used when working with a sample dataset, whereas **STDEVP** calculates the population standard deviation using *(n)* in the denominator and should be used when working with the entire population.
{% endhint %}

### FAQs

**Q1. How is STDEVP calculated?**

STDEVP (Population Standard Deviation) is calculated by taking the square root of the sum of squared deviations from the mean, divided by *(n)*.

<figure><img src="/files/0vKE63JliZnTNQ6xsETg" alt="" width="257"><figcaption></figcaption></figure>

Where:

* x = each value in the dataset
* <img src="/files/7kgTtFg5mZ5tcXpS74Op" 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 standard deviation, which is the square root of the [population variance](/planning-sheets/formula-syntax/statistical-functions/varp.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/statistical-functions/stdevp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
