FormulaCraft

How to calculate standard deviation in Excel and Google Sheets

Topic:RANK & statistical aggregates
Excel & Google Sheets
=STDEV(B2:B100)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Click the cell for the result.
  2. 2Enter =STDEV(B2:B100) for a sample of data.
  3. 3Use =STDEVP(B2:B100) instead when the range is the complete population.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What is the difference between STDEV and STDEVP?

STDEV treats the data as a sample of a larger group; STDEVP treats it as the whole population. Use STDEV unless you truly have every data point.

More on RANK & statistical aggregates

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: