Home  /  Blog  /  Finance & Stats
Finance & Stats

Standard Error Formula in Excel — How to Calculate the Standard Error

By admin 29 November 2026 Finance & Stats

You take a sample, average it, and report the average as if it were the average of the whole group. How far off could you be? That is what the standard error tells you: how precisely your sample average estimates the population average. It is not the same as the standard deviation — the standard deviation is about how spread out the data is, and the standard error is about how much the average would move if you took another sample. Excel has no built-in function for it, but one formula does the job: the sample standard deviation divided by the square root of the sample size. This guide gives you that formula first, works it through on five numbers with a by-hand check, and covers the sample-size effect, the confidence interval, and the mistakes that catch everyone.

Quick takeaway: Excel has no standard error function. One formula does it.

  • =STDEV.S(range)/SQRT(COUNT(range)) — the standard error of the mean.
  • STDEV.S is the sample standard deviation. COUNT is how many numbers are in the range.
  • A bigger sample means a smaller error — but to halve it, you must quadruple the sample.
  • Standard deviation is about the data. Standard error is about the average.
Standard Error Formula in Excel — How to Calculate the Standard Error

The Formula — STDEV.S Divided by the Square Root of COUNT

=STDEV.S(A2:A6)/SQRT(COUNT(A2:A6))
PartWhat it does
STDEV.S(range)The sample standard deviation — how spread out the data is
COUNT(range)The sample size — how many numbers are in the range
SQRT(...)The square root of the sample size
The divisionTurns the spread of the data into the precision of the average

In words: SE = s ÷ √n, where s is the sample standard deviation and n is the sample size. The result goes by two names: standard error, and SEM — the standard error of the mean. They are the same figure.

Worked Example — Five Numbers, Step by Step

The data: 10, 12, 15, 20, 25, in A2:A6.

  1. Find the mean. (10 + 12 + 15 + 20 + 25) / 5 = 82 / 5 = 16.4.
  2. Find the sample standard deviation. =STDEV.S(A2:A6) gives 6.11. Check it by hand: the distances from the mean are −6.4, −4.4, −1.4, 3.6 and 8.6. Squared, they are 40.96, 19.36, 1.96, 12.96 and 73.96. Added, they are 149.2. Divided by n − 1 = 4, that is 37.3. The square root is 6.11.
  3. Find the sample size. =COUNT(A2:A6) gives 5.
  4. Divide. =STDEV.S(A2:A6)/SQRT(COUNT(A2:A6)) = 6.11 / √5 = 6.11 / 2.236 = 2.73.

So the standard error is 2.73. The sample average is 16.4, and the standard error says the average of another sample of five would typically land within about 2.73 of it. The full guide to the standard deviation itself is the standard deviation formula article.

Standard Deviation vs Standard Error — The One Line

MeasureWhat it describesFormula
Standard deviationHow spread out the data is=STDEV.S(range)
Standard errorHow precisely the average estimates the population average=STDEV.S(range)/SQRT(COUNT(range))

A wide spread gives a big standard deviation. A big sample gives a small standard error, even when the spread is wide — because the average of many numbers is steadier than the numbers themselves. If you are describing the data, report the standard deviation. If you are reporting an average as an estimate, report the standard error with it.

Sample Size — To Halve the Error, Quadruple the Sample

The square root is the whole story of sample size. The standard error falls as the square root of n grows, so it falls slowly:

Sample sizeStandard error (SD = 10)
252.00
1001.00
4000.50

To halve the error, from 2.00 to 1.00, the sample must grow from 25 to 100 — four times bigger. To halve it again, from 1.00 to 0.50, it must grow to 400. That is why small samples are expensive to improve: each halving costs four times the data. It is also why the standard error is worth reporting — it tells the reader how much the sample size bought.

Turn It Into a Confidence Interval

The standard error is the building block of a confidence interval — the range the true average probably sits in. For a larger sample, the 95% interval is:

mean ± 1.96 × SE

A fill-weight sample with a mean of 500.7 g and a standard error of 0.66 g gives 500.7 ± 1.96 × 0.66 = 500.7 ± 1.29, which is 499.41 to 501.99 g. For a small sample, use CONFIDENCE.T instead: =CONFIDENCE.T(0.05, STDEV.S(range), COUNT(range)) gives the margin directly. The average itself is the average formula guide.

Common Mistakes

MistakeWhat happensFix
You used STDEV.P instead of STDEV.SThe standard error is understated — 2.44 instead of 2.73 on the five numbersUse STDEV.S for a sample
You used COUNTA instead of COUNTThe sample size is too big — text and labels countCOUNT counts numbers only; that is what STDEV.S used
You used ROWS instead of COUNTThe sample size is too big — blanks countUse COUNT, not ROWS
You used STEYXThat is the standard error of a regression prediction, not of the meanUse the STDEV.S/SQRT(COUNT) formula
You expected the error to halve when the sample doublesIt falls by the square root, not by halfTo halve it, quadruple the sample
Your range has one number#DIV/0! — STDEV.S divides by n − 1, and 1 − 1 is 0A standard error needs at least two numbers
You reported the standard error as if it were the standard deviationThe reader thinks the data is tighter than it isReport the standard deviation for the data, the standard error for the average

Frequently Asked Questions

What is the standard error formula in Excel? =STDEV.S(range)/SQRT(COUNT(range)). For example, on the data 10, 12, 15, 20, 25, the formula gives 2.73.

Is there a standard error function in Excel? No. Excel has no built-in standard error function. You build it from STDEV.S, SQRT and COUNT in one formula.

What is the difference between standard deviation and standard error? Standard deviation measures how spread out the data is. Standard error measures how precisely the sample average estimates the population average. The standard error is the standard deviation divided by the square root of the sample size.

Should I use STDEV.S or STDEV.P in the standard error formula? STDEV.S, which uses the n − 1 method. STDEV.P is for a whole population, and it understates the standard error for a sample — 2.44 instead of 2.73 on the five numbers in this article.

How do I calculate the standard error of the mean in Excel? =STDEV.S(range)/SQRT(COUNT(range)). The standard error of the mean (SEM) is the same figure as the standard error.

How does sample size affect standard error? It falls as the square root of the sample size grows. To halve the error, you must quadruple the sample: with a standard deviation of 10, the error is 2.00 at n = 25, 1.00 at n = 100, and 0.50 at n = 400.

How do I calculate a confidence interval from the standard error? For a larger sample, mean ± 1.96 × SE gives the 95% interval. For a small sample, use =CONFIDENCE.T(0.05, STDEV.S(range), COUNT(range)) for the margin.

That is the standard error formula in Excel: one line, STDEV.S divided by the square root of COUNT, and no built-in function to find. The number it gives you is the precision of your average — how far another sample’s average would typically land from yours — and it is the number that turns an average into an estimate worth reporting. Remember the two things that matter: use STDEV.S, not STDEV.P, and count with COUNT, not COUNTA or ROWS, because the sample size must be the numbers STDEV.S actually used. And remember the square root: to halve the error, quadruple the sample. From here, the next statistics to learn are the ones this formula is built on — the standard deviation formula and the average formula — and the full learning order for the whole site is on the Excel Formulas hub.


About admin

Author of Excel formula guides on this blog.

View all guides by admin →

Keep Learning

Related guides