STDEV.S in Google Sheets: Sample Standard Deviation
Use STDEV.S in Google Sheets with three worked numeric examples, CSV practice data, interpretation checks, and software-specific documentation notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Name relationship: Google’s catalogue lists STDEV.S as an alias/reference to STDEV; the linked help may use that canonical name.
- Checked: October 14, 2026; official STDEV.S reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Quick answer
Use STDEV.S in Google Sheets to estimate standard deviation from a sample, using a variance denominator of n minus one. The working example below describes support resolution times; its result is measured in minutes. 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 Google Sheets.
Syntax and arguments
STDEV.S(value1, [value2, ...])
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 primary numeric examples avoid relying on text or logical-value conversion; separately documented type boundaries are explained below.
When this calculation is useful
Use the sample measure when the observed records stand in for a larger process, period or population. More rows do not automatically make a data set a complete population: a thousand sampled tickets can still be a sample of a year’s activity. Write the intended population beside the result.
The output has the same measurement units as the input, which makes it easier to interpret than variance. It is not the average absolute distance from the mean, an uncertainty interval, or the standard error of the mean. The function also cannot correct selection bias or decide whether observations are sufficiently representative for your interpretation.
Set up the practice data
A shared support log with one row per resolved ticket provides the scenario. Enter the following numeric observations into A2:A8, one per row, with a header in A1. Use a spare result cell outside the input range.
| Cell | Minutes |
|---|---|
| A2 | 8 |
| A3 | 12 |
| A4 | 10 |
| A5 | 9 |
| A6 | 12 |
| A7 | 15 |
| A8 | 7 |
Download the Google Sheets STDEV.S 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.S(A2:A8)
Expected result: 2.760262 (displayed to six decimal places).
The numeric count is 7, the mean is 10.428571, and the sum of squared deviations is 45.714286. Divide by 6 (n minus one), then take the square root to return to the original measurement units.
Example 2: Check the denominator with three known numbers
=STDEV.S(2,4,6)
Expected result: 2.
The mean is 4 and the squared deviations are 4, 0 and 4, for a total of 8. The sample denominator is 2, 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.S(F2:F5)
Expected result: 4.618802 (displayed to six decimal places).
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: referenced text and direct text are different
In a separate J2:J5 range enter numeric 2,4,6 and the formula ="pending". Google explicitly says text in a referenced cell is ignored by STDEV, the catalogue-linked name for STDEV.S.
=STDEV.S(J2:J5)
Expected result: 2, from the three numeric observations. The text label is not a zero measurement. A directly supplied text argument, as in =STDEV.S(2,4,"pending"), has a documented error expectation; the source does not assign its exact code here.
This contrast does not settle every Boolean, numeric-text, formula-empty or mixed-error case. Keep those cases separate rather than treating one documented text rule as a universal coercion table.
Advanced example: duplicated samples change the denominator effect
=STDEV.S(2,4,6)
=STDEV.S(2,4,6,2,4,6)
Expected results are 2 and approximately 1.788854. Both datasets have mean 4, but the first has squared-deviation total 8 divided by 2, while the second has total 16 divided by 5.
Duplicating all observations preserves relative frequencies and population standard deviation, but not this sample-size adjustment. An accidental duplicate import must not be interpreted as six independent new measurements merely because the formula still calculates.
Advanced example: compare the same seven-record sample
For the original A2:A8 log:
=STDEV.P(A2:A8)*SQRT(COUNT(A2:A8)/(COUNT(A2:A8)-1))
=SQRT(VAR.S(A2:A8))
Both independently modeled results are approximately 2.760262. The first rescales population standard deviation using n=7; the second takes the square root of sample variance, 160/21, approximately 7.619048.
This check relies on an identical accepted numeric range. Counting a different range or converting text inconsistently can invalidate the comparison without changing either function’s mathematical definition.
Advanced example: make a minimum-data policy visible
For a separately validated numeric input range K2:K10, a reporting formula can state a missing-sample policy:
=IF(COUNT(K2:K10)<2,"Need two numbers",STDEV.S(K2:K10))
With only numeric 5 supplied, the label is Need two numbers. With numeric 5 and 5, the result is 0. With numeric 2,4,6, it is 2. Google independently documents #DIV/0! when the function itself receives fewer than two values.
The guard does not validate units, identify source errors or prove representativeness. Inspect the data first; COUNT is an observation-count check, not a complete cleaning step.
Unit and argument scope
For numeric 20,40,60, expected sample standard deviation is 20 and sample variance is 400. A tenfold unit conversion changes standard deviation tenfold and variance one hundredfold.
Google says Sheets supports more than the nominal 30 arguments described in the legacy syntax. This guide does not benchmark a maximum argument count or a large array. Worksheet cells remain the scope; the separate one-column BigQuery syntax is not substituted into these formulas.
Check the mathematics and interpretation
Subtract the mean from each observation and square each difference. Add the squared differences and divide by n minus one. 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
There is only one observation. Sample variance needs a denominator greater than zero, so at least two numeric observations are required. A blank report is not evidence of zero variability. Validate the numeric count first.
The result differs from a population calculation. For the same n numeric observations, sample standard deviation is population standard deviation multiplied by the square root of n/(n minus one). A different denominator is not a rounding defect.
Unexpected text or errors are mixed into the input. Review the original cells rather than assuming every application ignores the same values. Do not replace a failed calculation with zero: zero has the specific meaning that included numeric observations do not vary.
Google Sheets notes and compatibility
Google lists STDEV.S as an alias of STDEV in its function catalogue; the dedicated help page uses the older name. The dotted spelling is used in the examples so the name matches the Excel comparison guide.
The support-log example uses ordinary worksheet cells, not a BigQuery data column. Some Google help pages also show Connected Sheets syntax; that is not the syntax being demonstrated here. A ticket’s duration is entered as a number of minutes, not as a time-of-day text label.
For a shared log, agree on whether reopened tickets form new observations and whether each row represents one ticket or one agent action. Keep that decision consistent before comparing reporting periods. When collaborators paste data, inspect a small sample of numeric cells and confirm the selected range still ends at the intended row.
The examples use English function names and commas. Adjust the argument separator to the file’s locale as needed, while keeping decimal values and cell references intact. No import/export or native Google Sheets execution was performed for this guide.
For the same statistical question in other programs, see STDEV.S in Microsoft Excel, STDEV.S in ONLYOFFICE, STDEV.S 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.P, VAR.S, VAR.P. Browse the Google Sheets function library for the other published guides.
Editorial verification: Complete article and dedicated Google reference reviewed on October 14, 2026. All three original numeric examples, added arithmetic and rank models, original CSV inputs and related links were checked independently. Exact approved availability/history text is retained. Documentation-based errors are distinguished from observed results. No native Google Sheets execution, maximum-size benchmark or round-trip workbook certification was performed. Input types and errors not explicitly established by the cited function source remain held.