How to Find Standard Error in Excel (Step-by-Step Guide)
Standard error tells you how much a sample mean is likely to vary from the true population mean. It is a key measure in statistics, research, and data analysis, because it helps you judge whether a result is precise or uncertain. In Excel, you can find standard error in a few steps, using the standard deviation and the sample size. This guide shows you the formula, walks through a worked example, and explains how to use Excel functions and charts to present standard error clearly.
Standard error is not the same as standard deviation, although the two are related. Standard deviation describes how spread out individual values are. Standard error describes how spread out sample means would be if you repeated the study many times. As your sample gets larger, standard error usually gets smaller, because a larger sample gives a more precise estimate of the mean.
The Standard Error Formula
The formula for standard error is: standard error = standard deviation divided by the square root of the sample size. In symbols, SE = SD / SQRT(n), where SD is the standard deviation of your sample and n is the number of observations.
In Excel, you can calculate this in one formula if your data are in a range, for example A2:A21. The formula is =STDEV.S(A2:A21)/SQRT(COUNT(A2:A21)). STDEV.S calculates the sample standard deviation, SQRT calculates the square root, and COUNT counts the number of numeric values in the range.
Use STDEV.S for a sample, which is the usual case in research and surveys. Use STDEV.P only when your data include the entire population, not a sample from it. Choosing the wrong version will give a slightly different result, so check which one matches your data before you report a value.
Step-by-Step: Find Standard Error in Excel
Step 1: Enter your data in a single column, with one value per row, and no blank rows inside the range. Add a clear heading in the first row, such as Score, so you can identify the data later.
Step 2: Click a blank cell where you want the standard error to appear. Type =STDEV.S( then select your data range, then type )/SQRT(COUNT( then select the same range again, then type )) and press Enter. For data in A2:A21, the complete formula is =STDEV.S(A2:A21)/SQRT(COUNT(A2:A21)).
Step 3: Check the result. If your standard deviation is 12 and your sample size is 36, your standard error is 12 divided by 6, which is 2. Use a simple example like this to verify that your formula is working before you rely on it for real data.
Step 4: If you prefer to see the intermediate steps, calculate standard deviation in one cell with =STDEV.S(A2:A21), calculate sample size in another cell with =COUNT(A2:A21), and then divide the first cell by the square root of the second. This approach makes your workbook easier to audit, because each step is visible.
Step 5: Format the result to a sensible number of decimal places, usually two or three, depending on your field. Select the cell, open Format Cells, and choose Number with the required decimal places. Avoid reporting too many decimals, because they imply more precision than the data support.
Worked Example
Suppose you survey 25 customers and their satisfaction scores have a sample standard deviation of 10. The sample size is 25, and the square root of 25 is 5, so the standard error is 10 divided by 5, which is 2. This means the sample mean is likely to be within about 2 points of the true population mean, on average, if you repeated the survey.
If you increase the sample to 100 customers with the same standard deviation, the square root of 100 is 10, so the standard error falls to 1. This shows why larger samples give more precise estimates, and why standard error is useful when you compare studies with different sample sizes.
Standard Error, Standard Deviation, and Confidence Intervals
| Measure | What it shows | Excel formula example |
|---|---|---|
| Standard deviation | Spread of individual values | =STDEV.S(A2:A21) |
| Standard error | Precision of the sample mean | =STDEV.S(A2:A21)/SQRT(COUNT(A2:A21)) |
| Mean | Average value | =AVERAGE(A2:A21) |
| 95% confidence interval | Range likely to contain the true mean | Mean plus or minus about 1.96 times standard error |
A confidence interval uses standard error to give a range, rather than a single point estimate. For a 95 percent confidence interval, you can approximate the interval as the mean plus or minus 1.96 times the standard error, for large samples. Excel also has a CONFIDENCE.T function that can calculate the margin directly, which is useful for smaller samples.
Add Standard Error Bars to a Chart
To show standard error in a chart, first create a column or bar chart from your means. Click the chart, then click the plus icon for Chart Elements, then check Error Bars and choose More Options. In the Format Error Bars pane, choose Custom, then select the cells that contain your standard error values for both the positive and negative error values.
Error bars help readers see at a glance whether two means are clearly different or whether their uncertainty overlaps. Always label the bars in a note or caption, so readers know whether they show standard error, standard deviation, or a confidence interval, because those measures are often confused.
Common Problems and Fixes
If Excel returns an error, check that your range contains numbers, not text, and that there are no blank cells counted incorrectly. COUNT counts only numeric cells, so text labels in the range are ignored, which is usually what you want, but a number stored as text will also be ignored and will reduce your sample size.
If your standard error looks too large, check for outliers or data entry errors that inflate the standard deviation. If it looks too small, check that you divided by the square root of the sample size, not by the sample size itself, which is a common mistake. For other Excel techniques, see our guides to Excel nested IF statements, counting characters in an Excel cell, and converting Excel to Google Sheets.
Frequently Asked Questions
What is standard error in Excel?
Standard error is the standard deviation divided by the square root of the sample size. In Excel, calculate it with =STDEV.S(range)/SQRT(COUNT(range)). It measures how precise a sample mean is as an estimate of the population mean.
What is the difference between standard deviation and standard error?
Standard deviation describes the spread of individual values in a sample. Standard error describes the spread of sample means if you repeated the study many times. Standard error is always smaller than standard deviation when the sample size is greater than one.
Should I use STDEV.S or STDEV.P for standard error?
Use STDEV.S when your data are a sample from a larger population, which is the usual case. Use STDEV.P only when your data include the entire population. Using the wrong function will change the standard error slightly.
How do I add standard error bars in Excel?
Create a chart from your means, click Chart Elements, check Error Bars, choose More Options, then choose Custom and select the cells containing your standard error values. Label the bars clearly, so readers know they show standard error.
Can standard error be zero?
Standard error can be zero only if all values in the sample are identical, so the standard deviation is zero, or in theory with an infinitely large sample. In practice, a zero standard error usually means all values are the same, or that a formula or range is wrong.
[…] references change when the table goes. While you are working in Excel, you may also want to know how to find the standard error in Excel, how to count characters in an Excel cell, or how to convert Excel to Google […]