STDEV Function in Apple Numbers: Sample Standard Deviation
Calculate sample standard deviation in Apple Numbers with exact syntax, sample data, independently checked results, and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =STDEV(B2:B9) returns approximately 2.138089935299395 for the complete numeric fixture below. It calculates sample standard deviation. Standard deviation uses the original measurement unit; it does not return the mean.
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 STDEV reference. Independent exact/high-precision statistical calculations; no native Numbers test.
Syntax, types and denominator
=STDEV(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, date/time values or durations.
The companion variance entry lists numbers and date/time values but does not explicitly list durations. The numeric square-root identity does not expand that documented type list. All worked inputs below are ordinary numbers.
For those numbers, sample variance divides the sum of squared deviations from their mean by n−1. Taking its square root gives STDEV. STDEVP 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 MeasureLog, 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 =STDEV(B2:B9); expect approximately 2.138089935299395. 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.
Direct arguments and a ninth reading
Use F2:F6 in MeasureLog for these independent controls:
| Cell | Formula | Expected result |
|---|---|---|
| F2 | =VAR(B2:B9) |
4.571428571428571 |
| F3 | =STDEV(3,7) |
2.8284271247461903 |
| F4 | =STDEV(4,4,4) |
0 |
| F5 | =STDEV(B2:B9,5) |
2 |
| F6 | =STDEVP(B2:B9) |
2 |
F5 adds a ninth observation at the original mean. The squared-deviation total stays 32, while the sample divisor becomes eight. F6 instead uses the original eight observations with a population divisor of eight. Their matching answer comes from different datasets and definitions.
A smaller result in F5 is not by itself evidence of an improved process. An added observation exactly at the mean changes the statistic without reducing any original deviation. Keep track of the selected records and sampling design when comparing periods.
Advanced: standard deviation scales with the unit
Create SampleUnits, with four columns and eleven rows. Enter 2,4,4,4,5,5,7,9 in A2:A9 as centimetres. In B2 enter =10*A2 and fill through B9 for millimetres: 20,40,40,40,50,50,70,90.
Put =STDEV(A2:A9) in D2 for approximately 2.1380899353, and =STDEV(B2:B9) in D3 for approximately 21.3808993530. In D4 enter =D3/D2; expect 10. In D5 enter =VAR(B2:B9)/VAR(A2:A9); expect 100.
The physical measurements have not become more variable. The units changed: standard deviation scales by ten and variance by one hundred. Compare like units and equivalent definitions before interpreting a larger displayed number.
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 | Variance for the same column |
|---|---|---|---|
| G2 | =STDEV(A2:A6) |
22.8035085019828 | 520 |
| G3 | =STDEV(B2:B6) |
24.5356882927706 | 602 |
| G4 | =STDEV(C2:C6) |
9.50263121456368 | 90.3 |
| G5 | =STDEV(D2:D6) |
8.07465169527454 | 65.2 |
| G6 | =STDEV(E2:E6) |
3.3466401061363 | 11.2 |
To reproduce the final column in cells H2:H6, enter =VAR(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.
Input limits, table references and related functions
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 MeasureLog::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. VAR supplies the companion statistic. Identical mathematical purposes across products do not establish matching type, error, locale or export behavior.