Adding error bars in Excel helps show variability in your data, making charts more informative by indicating uncertainty or precision in measurements. This is essential for scientific, financial, or experimental data where margins of error matter. You need a dataset with at least two columns: one for values and one for error values (or calculated standard deviations/standard errors). Error bars can be added to column, bar, line, or scatter plots. They do not work with pie charts or area charts.
What You'll Need
- A Microsoft Excel workbook (2016 or later recommended)
- A chart already created from your data (column, bar, line, or scatter plot)
- Calculated error values (standard deviation, standard error, or custom upper/lower bounds) in separate columns
Step-by-Step
- Select your chart by clicking anywhere on it. The Chart Tools will appear at the top of Excel.
- Click the green plus icon (+) that appears next to the chart, or go to the Chart Design tab > Add Chart Element.
- Hover over "Error Bars" and click the downward arrow to open the options.
- Choose "Standard Error" to automatically apply a single error bar based on the standard error of the mean across all data points. Skip this step if you have custom values.
- If you want custom error values, select "More Options" at the bottom of the Error Bars menu. This opens the Format Error Bars pane on the right.
- In the Format Error Bars pane, under "Error Amount", select "Custom".
- Click the "Specify Value" button next to "Positive Error Value" and "Negative Error Value".
- In the dialog box that opens, select the range of cells containing your custom upper error values for "Positive Error Value". For example, if your upper error values are in column C, select C2:C10.
- Repeat for "Negative Error Value" and select the range containing your lower error values. If your data is symmetric (same value for upper and lower), you can use the same range for both.
- Click OK to close the dialog box. The error bars will now appear on your chart.
- Adjust the appearance: in the same Format Error Bars pane, change the cap width, line color, line style, or width using the options under "Line Color", "Line Style", and "Cap".
- For scatter plots, you can also add error bars for the X-axis values. In the Format Error Bars pane, switch from "Y Error Bars" to "X Error Bars" and repeat steps 7–10.
- Click outside the chart to finalize. Save your workbook.
Common Mistakes
- Using the wrong data range for custom error values — make sure the range matches the number of data points in your chart. If your chart has 5 data points, your error values must also have exactly 5 entries.
- Forgetting to set both positive and negative error values — if only one is set, Excel may default to using the same value for both, which can misrepresent asymmetrical uncertainty.
- Adding error bars to unsupported chart types like pie or area charts — these do not support error bars. Convert to a column or scatter chart first.
- Entering text instead of numbers in error value columns — Excel will ignore non-numeric entries and may show no error bars at all.
- Not verifying that the chart series matches the data range — if you’ve filtered or sorted your data after creating the chart, the error bars may reference the wrong cells.
Tips
- Use the STDEV.S function in Excel to calculate standard deviation for sample data, or STDEV.P for population data. For standard error, divide the standard deviation by the square root of the sample size (e.g., =STDEV.S(A2:A10)/SQRT(COUNT(A2:A10))).
- Label your error bars clearly in your report or presentation. Add a caption like "Error bars represent ±1 standard deviation" to avoid misinterpretation.
- Use different colors for X and Y error bars in scatter plots to distinguish them visually.
- For publication-quality charts, set the cap width to 10–20% for cleaner appearance. Avoid default thick lines.
- Always double-check that your error values are in the correct units and scale as your data — mismatched scales make error bars misleading.
- If you’re working with multiple series, apply error bars to each series individually. Excel does not apply them to all series automatically unless you select the entire chart before adding.
Troubleshooting
- No error bars appear: Confirm you selected the correct chart type. Check that your error value cells contain numbers, not text or blanks. Re-select the data range in the "Specify Value" dialog.
- Error bars are too long or too short: Double-check your error value calculations. If you used standard deviation but expected standard error, the scale will be wrong. Recalculate using the correct formula.
- Error bars appear on the wrong data points: This often happens if your data has been sorted or filtered after creating the chart. Recreate the chart from the original, unsorted dataset.
- Excel says "Reference is not valid": You likely selected a range that includes headers, merged cells, or non-contiguous data. Select only the numeric cells without titles or empty rows.
- Can’t find the Error Bars option: Make sure you’ve selected the chart itself (click on a data point or plot area). If you clicked on a chart title or legend, the Chart Tools won’t activate.
- Custom error bars reset after editing chart: Avoid changing the underlying data structure (like inserting/deleting rows) after adding error bars. If you must, reapply the custom values after the edit.