Standard error measures how far your sample average is likely to be from the true population average
Standard error tells you the margin of uncertainty around a sample mean. If you survey 100 people about their height and get an average of 5'7", the standard error tells you how much that average might shift if you surveyed a different group of 100 people. A smaller standard error means your sample average is more reliable; a larger one means more variability.
Excel does not have a single built-in function called "standard error," but you can calculate it in seconds using the STDEV function combined with the SQRT function, or by using STDEV.S (for sample data) divided by the square root of your sample size. The formula is straightforward: standard error equals the standard deviation divided by the square root of the number of observations.
Key Takeaways
- Standard error is calculated by dividing the standard deviation by the square root of the sample size.
- Use =STDEV.S(range)/SQRT(COUNT(range)) to calculate standard error for a sample in one formula.
- STDEV.S calculates sample standard deviation; use STDEV.P only if your data represents an entire population, not a sample.
- Standard error shrinks as your sample size grows, so larger samples give you more confidence in your average.
The one-line formula for standard error
The fastest way to calculate standard error in Excel is to type this formula into an empty cell:
=STDEV.S(A1:A50)/SQRT(COUNT(A1:A50))
Replace A1:A50 with the actual range of your data. This formula does three things: STDEV.S calculates the standard deviation of your sample, COUNT counts how many numbers are in that range, SQRT takes the square root of that count, and the division gives you the standard error. If your data is in cells B2 through B101, you would type =STDEV.S(B2:B101)/SQRT(COUNT(B2:B101)) instead.
Press Enter and Excel returns a single number — your standard error. That number is in the same units as your original data. If you measured weight in pounds, your standard error is also in pounds.
Breaking the formula into separate steps
If you want to see each piece of the calculation, you can build it across multiple cells. Put your data in column A, then in separate cells calculate the standard deviation, the sample size, and finally the standard error.
In cell C1, type =STDEV.S(A:A) to get the standard deviation. In cell C2, type =COUNT(A:A) to count your data points. In cell C3, type =C1/SQRT(C2) to divide the standard deviation by the square root of the count. Cell C3 now shows your standard error.
This approach takes more space but makes it easier to spot errors. You can see whether your standard deviation looks reasonable, whether your count is correct, and then check the final result. It also lets you reuse the standard deviation or count in other calculations without retyping the formulas.
The difference between STDEV.S and STDEV.P
Excel offers two standard deviation functions: STDEV.S for a sample and STDEV.P for a population. Use STDEV.S almost always. A sample is data you collected from a subset of a larger group — survey responses from 100 customers, test scores from one class, measurements from 50 manufactured items. A population is the entire group you care about.
STDEV.S divides by (n-1), where n is your sample size. STDEV.P divides by n. The difference matters most when your sample is small. If you use STDEV.P on sample data, your standard error will be artificially small, and you will underestimate the uncertainty in your average. Use STDEV.P only if you have measured every single item in the group you care about — which is rare in real work.
Why standard error matters more than standard deviation
Standard deviation tells you how spread out individual values are. Standard error tells you how much your sample average might vary from the true average. These are different things. A dataset with high spread (large standard deviation) can still have a small standard error if your sample is large enough.
When you report a finding — "the average response time was 4.2 seconds" — standard error is what lets you say how confident you should be in that 4.2. It is the foundation for confidence intervals and hypothesis tests. If your standard error is 0.1 seconds, you can say the true average is probably between 4.0 and 4.4 seconds. If your standard error is 1 second, the true average could be anywhere from 3.2 to 5.2 seconds, and your finding is much less useful.
Common mistakes when calculating standard error
The most common error is using STDEV.P instead of STDEV.S. If you are working with sample data — which you almost certainly are — STDEV.P will give you a standard error that is too small. Your confidence intervals will be too narrow, and you will overstate how much you know.
Another mistake is including blank cells or text in your range. If you type =STDEV.S(A1:A100)/SQRT(COUNT(A1:A100)) and some cells in that range are empty or contain labels, COUNT will skip them, but STDEV.S will too, so the formula still works correctly. However, if you manually count cells and type that number instead of using COUNT, you might get the count wrong. Always let Excel count for you.
A third mistake is forgetting that standard error depends on sample size. If you collect more data, your standard error shrinks automatically — the formula recalculates. This is correct behavior, not a bug. Larger samples give you more precise estimates of the true average.
Using standard error in confidence intervals
Once you have standard error, you can build a confidence interval — a range around your average that probably contains the true average. For a 95% confidence interval with a sample size of 30 or more, multiply your standard error by 1.96, then add and subtract that from your average.
If your average is 50 and your standard error is 2, then 1.96 × 2 = 3.92. Your 95% confidence interval is 50 ± 3.92, or roughly 46 to 54. This means if you repeated your study many times, about 95% of the time the true average would fall in that range.
For smaller samples (fewer than 30 observations), use the t-distribution instead of 1.96. Excel's TINV function can give you the right multiplier. Type =TINV(0.05, COUNT(A:A)-1) to get the t-value for a 95% confidence interval, where 0.05 is the significance level and COUNT(A:A)-1 is the degrees of freedom. Multiply that t-value by your standard error instead of using 1.96.
Frequently Asked Questions
Is standard error the same as standard deviation?
No. Standard deviation measures how spread out individual data points are. Standard error measures how much your sample average might differ from the true population average. Standard error is always smaller than standard deviation because it accounts for the fact that averages vary less than individual values do.
What sample size do I need for a reliable standard error?
Larger samples always give smaller standard error. There is no magic threshold, but 30 observations is a rough guideline where the t-distribution starts to look like the normal distribution. With 10 observations, your standard error is less reliable. With 100 or more, it is quite stable. The formula itself works at any sample size — it is just that very small samples have more uncertainty built in.
Can I calculate standard error if my data has outliers?
Yes, the formula works regardless. However, outliers inflate standard deviation, which inflates standard error. If you suspect outliers are distorting your results, you can investigate them separately or use robust methods, but the standard error calculation itself does not change. Report what the data shows, then note if outliers are present.
Why does my standard error change when I add more data?
Standard error shrinks as sample size grows because you have more information about the true average. This is correct. If you add 50 more observations to your dataset, your standard error will decrease, reflecting that your estimate is now more precise. This is a feature, not a problem.
Should I use standard error or standard deviation in my report?
Use both, but for different purposes. Report standard deviation to show how spread out your data is. Report standard error (or a confidence interval built from it) to show how confident you should be in your average. Many readers understand "the average was 50, plus or minus 5" (confidence interval) better than "the standard error was 2.5."