PMT Function in Excel — With Examples (Loan Payment, Mortgage, Savings)
Learn the PMT function in Excel: monthly loan and mortgage payments, the negative sign, total interest, and savings goals.
Read Guide →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(A2:A6)/SQRT(COUNT(A2:A6))
| Part | What 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 division | Turns 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.
The data: 10, 12, 15, 20, 25, in A2:A6.
=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.=COUNT(A2:A6) gives 5.=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.
| Measure | What it describes | Formula |
|---|---|---|
| Standard deviation | How spread out the data is | =STDEV.S(range) |
| Standard error | How 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.
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 size | Standard error (SD = 10) |
|---|---|
| 25 | 2.00 |
| 100 | 1.00 |
| 400 | 0.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.
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.
| Mistake | What happens | Fix |
|---|---|---|
| You used STDEV.P instead of STDEV.S | The standard error is understated — 2.44 instead of 2.73 on the five numbers | Use STDEV.S for a sample |
| You used COUNTA instead of COUNT | The sample size is too big — text and labels count | COUNT counts numbers only; that is what STDEV.S used |
| You used ROWS instead of COUNT | The sample size is too big — blanks count | Use COUNT, not ROWS |
| You used STEYX | That is the standard error of a regression prediction, not of the mean | Use the STDEV.S/SQRT(COUNT) formula |
| You expected the error to halve when the sample doubles | It falls by the square root, not by half | To halve it, quadruple the sample |
| Your range has one number | #DIV/0! — STDEV.S divides by n − 1, and 1 − 1 is 0 | A standard error needs at least two numbers |
| You reported the standard error as if it were the standard deviation | The reader thinks the data is tighter than it is | Report the standard deviation for the data, the standard error for the average |
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.
Learn the PMT function in Excel: monthly loan and mortgage payments, the negative sign, total interest, and savings goals.
Read Guide →Learn the percentile formula in Excel: 90th, 75th and 95th percentiles, quartiles, and PERCENTILE.INC vs EXC — with worked examples.
Read Guide →Learn the p value formula in Excel: T.TEST, what 0.05 means, one-tailed vs two-tailed, and the mistakes to avoid.
Read Guide →