STDEV.P in Microsoft Excel: Population Standard Deviation
Understand STDEV.P and legacy STDEVP population standard deviation, denominator choice, direct-versus-reference inputs and migration cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Microsoft marks this function as introduced in Excel 2010. Version-marker reference.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official STDEV.P reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Quick answer
Use STDEV.P in Microsoft Excel to calculate standard deviation for the whole population you have chosen to describe, using a denominator of n. The working example below describes daily order totals; its result is measured in orders. The official reference supports the function’s identity and purpose.
This guide separates documentation review from application testing. The expected numbers are independently calculated, not screenshots or results captured from Microsoft Excel.
Syntax and arguments
STDEV.P(number1, [number2], ...)
Numeric inputs: individual numbers or cell ranges holding the observations. One range can contain many observations; a header is not a measurement.
Additional inputs: optional extra numeric values or ranges. Omit the square brackets shown in the syntax notation when entering a formula. The numeric-only examples avoid relying on text or logical-value conversion.
When this calculation is useful
Use the population measure when the range contains every observation in the population defined by your question. For example, all completed tickets in a fixed reporting period can form a complete population for describing that period. The same records can still be a sample when the question concerns future periods.
The result is expressed in the original measurement units. It is a measure of spread, not a tolerance limit or a forecast. A high result may be driven by a few unusual records or by several different groups being mixed together. Review the data rather than treating one dispersion number as an explanation of why the process varies.
Set up the practice data
An operations workbook with one row per trading day provides the scenario. Enter the following numeric observations into A2:A9, one per row, with a header in A1. Use a spare result cell outside the input range.
| Cell | Orders |
|---|---|
| A2 | 240 |
| A3 | 180 |
| A4 | 420 |
| A5 | 240 |
| A6 | 300 |
| A7 | 540 |
| A8 | 120 |
| A9 | 360 |
Download the Microsoft Excel STDEV.P practice data (CSV). Import it into a new, blank sheet starting at A1, with a comma as the file delimiter and the header row retained. The CSV contains input values only, not formulas or native test results. Blank spacer columns place the requested position in D2 and any additional test data in column F. Keep observations numeric rather than importing them as text.
Three worked examples
Example 1: Measure spread in the working register
=STDEV.P(A2:A9)
Expected result: 127.279221 (displayed to six decimal places).
The numeric count is 8, the mean is 300, and the sum of squared deviations is 129600. Divide by 8 (n), then take the square root to return to the original measurement units.
Example 2: Check the denominator with three known numbers
=STDEV.P(2,4,6)
Expected result: 1.632993 (displayed to six decimal places).
The mean is 4 and the squared deviations are 4, 0 and 4, for a total of 8. The population denominator is 3, and the square root of that variance gives standard deviation.
Example 3: Do not confuse real zeros with missing data
For this check, use F2:F5 containing 0, 0, 8, 8, in that order. These values are included in the practice file.
=STDEV.P(F2:F5)
Expected result: 4.
All four observations are real measurements, including both zeros. The mean is 4 and the squared deviations total 64. Excluding the zeros would leave two equal values and falsely describe this group as having no spread.
Advanced example: shift and rescale the observations
=STDEV.P(12,14,16)
=STDEV.P(-6,-12,-18)
Expected results are approximately 1.632993 and 4.898979. The first dataset adds 10 to every value in the original 2,4,6 control, which shifts the mean but leaves all deviations unchanged. The second multiplies those original values by -3, so standard deviation grows by the absolute scale factor 3.
A negative multiplier reverses order, but cannot produce a negative standard deviation. Its variance grows by 9, from 8/3 to 24, and the square root returns the measure to the original transformed units.
Advanced check: equal groups can have a dispersed combined population
=STDEV.P(10,10)
=STDEV.P(30,30)
=STDEV.P(10,10,30,30)
The expected outputs are 0, 0 and 10. Within each two-record group, all values are equal. Across the combined population the mean is 20, each squared deviation is 100 and the population variance is 100.
Averaging the first two standard deviations gives zero and loses the difference between group means. Recalculate from the combined observations rather than assuming subgroup spread summaries can be averaged.
Advanced example: show the population/sample relationship
For the original eight-day register:
=STDEV.P(A2:A9)*SQRT(COUNT(A2:A9)/(COUNT(A2:A9)-1))
Expected result: approximately 136.067210, equal to the independently calculated STDEV.S result for those same eight values. The population result is approximately 127.279221, and the factor is SQRT(8/7).
This identity compares two denominators on the same numeric data. It does not decide which population the report should describe or establish that a sample was selected without bias.
Check the mathematics and interpretation
Subtract the mean from each observation and square each difference. Add the squared differences and divide by n. Take the square root for standard deviation; the answer returns to the original measurement units. This mathematical definition is used to check the numbers in the examples, independently of the spreadsheet software. Keep stored results at full available precision and round only the final presentation when a report requires it. The displayed expectations above are rounded where necessary; a different number of displayed decimal places is not by itself a calculation error.
Common mistakes and troubleshooting
The population was not defined. Write down which records the range is meant to contain and which period they cover. A result can be mathematically correct while describing the wrong group.
The result differs from a sample calculation. The population calculation divides squared deviations by n, rather than n minus one. For the same nonconstant numeric data it is smaller than the sample standard deviation.
A zero or empty result is overinterpreted. Repeated equal numeric observations have zero spread; missing observations do not establish that fact. Count usable observations and review text, missing cells and errors before interpreting the output. Single-observation handling is deliberately not used in these examples.
Excel input placement and a controlled mixed-type check
Microsoft distinguishes values typed directly in the argument list from values inside a reference. Its reference rule excludes ordinary text, logical values and empty cells, while numeric-looking text and logical values typed directly as arguments are counted.
In a separate J2:J7 range enter 2, 4, 6, =“8”, =TRUE() and a genuinely empty cell, in that order. The numeric reference inputs are 2,4,6, so =STDEV.P(J2:J7) has expected result 1.632993 (rounded where needed).
By contrast:
=STDEV.P(2,4,6,"8",TRUE)
The documented direct-argument conversion model includes 2,4,6,8,1. Their mean is 4.2 and squared deviations total 32.8, producing an expected result of 2.561250. These independent type controls do not certify every locale’s text-number conversion.
The source also says reference error values are ignored while another sentence says error arguments cause errors. That wording is insufficient for a certified mixed-error rule here. No error-containing range result is asserted: inspect and resolve source errors separately before interpreting the statistic. Unusable direct text and direct errors are documented to cause errors, but their complete native error-code matrix remains untested.
Microsoft Excel notes and compatibility
The Microsoft function reference is the source for this guide’s Excel name and purpose. The reviewed Excel help distinguishes values supplied as arguments from values inside referenced arrays or ranges. Keep imported observations numeric rather than depending on automatic conversion of text or logical values.
For the daily order workbook, keep one comparable trading day per row. Exclude a grand-total row from the statistical input; it is not another trading day. When combining weeks, check that repeated dates are legitimate records rather than duplicated imports. The formula cannot make that distinction for you.
These examples use English function names and comma-separated arguments. A workbook configured for another regional separator may require semicolons. The data addresses stay the same. Test a copied formula on a small known input after an import or file conversion; this guide is not a certification of every Excel edition or exchange format.
For the same statistical question in other programs, see STDEV.P in Google Sheets, STDEV.P in ONLYOFFICE, STDEV.P in SoftMaker PlanMaker. These links identify corresponding measures, not a guarantee that names, mixed-data rules, error codes or file conversions are identical.
Related functions and evidence
MEDIAN, LARGE, SMALL, RANK.EQ, STDEV.S, VAR.S, VAR.P. Browse the Microsoft Excel function library for the other published guides.
Editorial verification: Complete article and direct Microsoft reference reviewed on October 14, 2026. All three original numeric examples, added arithmetic models, original CSV inputs and related links were checked independently. Exact approved availability/history text is retained. No native Excel execution, maximum-size benchmark or round-trip workbook certification was performed. Mixed-error coercion, unsupported input types and unassigned edge-case error codes remain explicitly unverified.
Legacy STDEVP compatibility contract
=STDEVP(number1,[number2],...) requires its first argument and accepts up to 255 number arguments in the current documentation; a range or array can supply many observations. It estimates whole-population standard deviation, using denominator n. The documented renamed counterpart is STDEV.P.
Microsoft distinguishes direct arguments from ranges: directly supplied logical values and numeric text are counted; blank cells, text and logical cells in references are ignored. Direct errors and unconvertible text cause errors. The legacy page also says referenced errors are ignored, which conflicts with Microsoft’s NA propagation guidance. Do not build a cleaning rule on that sentence; error-cell propagation requires native verification. The STDEVPA family changes treatment of nonnumeric inputs and is not a spelling replacement.
Original legacy example and independent check
On a fresh sheet enter 2, 4, 6, 10 in A2:A5. =STDEVP(A2:A5) independently targets 2.9580398915. The mean is 5.5 and squared deviations sum to 12.25+2.25+0.25+20.25=35; the final calculation is SQRT(35/4). The result is in the original measurement units.
Migration traps
Changing to the sample counterpart changes the denominator from four to three for these four observations. Preserve the statistical purpose and the way inputs are supplied, rather than merely matching a familiar suffix. At least one usable numeric observation is needed for the population denominator. The current legacy page does not enumerate an insufficient-data error code, so this mathematical constraint is not presented as a native error test. These independent sums and square roots do not certify floating-point equivalence across Excel versions.
Compatibility and verification scope
Checked October 19, 2026 against the Microsoft legacy STDEVP reference. Its current Applies To list includes Microsoft 365 (Windows/Mac), Excel 2024 and 2021 (Windows/Mac), 2019 and 2016. The Excel 2010 function-change reference places the renamed counterpart in that transition and retains old names for backward compatibility. This does not date the original legacy function’s introduction. Compatibility status is not retirement: no removal release or last-working build is established here. Keep old-workbook compatibility needs in view, test before migration, and do not assume identical numerical behavior across versions. This addition is a documentation review with independent calculations; it supplies no native Excel evidence.