In Excel: divide the sample standard deviation by the square root of the sample size: =STDEV.S(A2:A101)/SQRT(COUNT(A2:A101)).
On this page7
Put the observations in one column with no text or blanks mixed in.
Enter =STDEV.S(range)/SQRT(COUNT(range)) — STDEV.S for a sample, STDEV.P only when the column is the entire population.
Use COUNT rather than COUNTA so text entries cannot inflate the sample size.
For the whole descriptive set at once, enable the Analysis ToolPak and run Data ▸ Data Analysis ▸ Descriptive Statistics, which reports Standard Error directly.
To show it on a chart, select the series ▸ Chart Elements ▸ Error Bars ▸ More Options ▸ Custom, and point at the cell holding the standard error.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
The standard error measures how precisely a sample mean estimates the population mean, where the standard deviation measures how spread out the individual observations are. Excel has no STDERR function, so it is built from two: STDEV.S for the sample standard deviation and COUNT for the sample size. Because of the square root, quadrupling the sample halves the standard error. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “calculate standard error in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
100 delivery times have a standard deviation of 4.2 hours. =STDEV.S(A2:A101)/SQRT(COUNT(A2:A101)) gives 4.2/10 = 0.42 hours. A rough 95% interval around the mean is therefore plus or minus 1.96 × 0.42, about 0.82 hours — narrow enough to quote, which the raw 4.2 was not. It is the number that decides whether a difference between two averages is worth acting on, and quoting the standard deviation in its place makes every comparison look inconclusive. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. Here is the takeaway for “calculate standard error in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Reporting the standard deviation and calling it the standard error, which overstates the uncertainty of the mean by a factor of the square root of n.
- Using
COUNTA, which counts labels and notes and shrinks the result. - Using STDEV.P on a sample, which divides by n instead of n-1 and biases the estimate low.
- Building a 95% interval with 1.96 on a sample of eight, where the t distribution is materially wider.
Frequently asked questions
Is SEM the same as standard error?
Yes. SEM is the standard error of the mean, and the formula is the same.
Does Excel have a standard error function?
No. Combine STDEV.S with SQRT and COUNT, or read it from the Descriptive Statistics output of the Analysis ToolPak.
How do I add standard-error bars to a chart?
Select the series, Chart Elements ▸ Error Bars ▸ More Options, choose Custom and point both the plus and minus boxes at the cell holding the value.
STDEV.S or STDEV?
STDEV.S is the current name; STDEV is the legacy alias kept for compatibility and returns the same number.
Other ways people ask this
On the way here you may have searched this as “calculate standard error in excel” and “how to calculate standard error of the mean in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “calculate standard error in excel”, “how to calculate standard error of the mean in excel” all point at the one operation explained on this page, which is why they all lead here.