How to add error bars in Excel: standard and custom

The tutorial shows how to make and use error bars in Excel. You will learn how to quickly insert standard error bars, create your own ones, and even display individual error bars for each data point.

Many of us are uncomfortable with uncertainty because it is often associated with lack of data, ineffective methods or wrong research approach. In truth, uncertainty is not a bad thing. In business, it prepares your company for the future. In medicine, it generates innovations and leads to technological breakthroughs. In science, uncertainty is the beginning of an investigation. And because scientists love quantifying things, they found a way to quantify uncertainty. For this, they calculate confidence intervals, or margins of error, and display them by using what is known as error bars.

Error bars in Excel

Error bars in Excel charts are a useful tool to represent data variability and measurement accuracy. In other words, error bars can show you how far from the reported values the actual values might be.

In Microsoft Excel, error bars can be inserted in 2-D bar, column, line and area graph, XY (scatter) plot, and bubble chart. In scatter plots and bubble charts, both vertical and horizontal error bars can be displayed.

You can put error bars as a standard error, percentage, fixed value, or standard deviation. You can also set your own error amount and even supply an individual value for each error bar.
Error bars in Excel

How to add error bars in Excel

In Excel 2019, Excel 2016, and Excel 2013, inserting error bars is quick and straightforward:

  1. Click anywhere in your graph.
  2. Click the Chart Elements button to the right of the chart.
  3. Click the arrow next to Error Bars and pick the desired option:
    • Standard Error - displays the standard error of the mean for all values, which shows how far the sample mean is likely to be from the population mean.
    • Percentage - adds error bars with the default 5% value, but you can set your own percentage by choosing More Options.
    • Standard Deviation - shows the amount of variability of the data, i.e. how close it is to the average. By default, the bars are graphed with 1 standard deviation for all data points.
    • More Options… - allows specifying your own error bar amounts and creating custom error bars.

    Adding error bars in Excel

Picking More Options opens the Format Error Bars pane where you can:

  • Set your own amounts for fixed value, percentage and standard deviation error bars.
  • Choose the direction (positive, negative, or both) and end style (cap, no cap).
  • Make custom error bars based on your own values.
  • Change the appearance of error bars.

As an example, let's add 10 % error bars to our chart. For this, select Percentage and type 10 in the entry box:
A chart with custom percent error bars


  • To add standard error bars in Excel, you can simply select the Error Bars box without picking any option. The standard error bars will be inserted by default.
  • To customize the existing error bars, double-click them in the chart. This will open the Format Error Bars pane, where and you change error bars type, choose another color and do other customizations.

How to do error bars in Excel 2010 and 2007

In earlier versions of Excel, the path to error bars is different. To add error bars in Excel 2010 and 2007, this is what you need to do:

  1. Click anywhere in the chart to activate Chart Tools on the ribbon.
  2. On the Layout tab, in the Analysis group, click Error Bars and choose one of the following options:
    Adding error bars in Excel 2010

How to add custom error bars in Excel

The standard error bars provided by Excel work fine in most situations. But if you wish to display your own error bars, you can easily do that too.

To make custom error bars in Excel, carry out these steps:

  1. Click the Chart Elements button.
  2. Click the arrow next to Error Bars and then click More Options…
  3. On the last tab of the Format Error Bars pane, under Error Amount, select Custom and click the Specify Value button.
    Making custom error bars in Excel
  4. A small Custom Error Bars dialog box appears with two fields, each containing one array element like ={1}. You can now enter your own values in the boxes (without equality sign or curly braces; Excel will add them automatically) and click OK.

Specify your own values for positive and negative error bars.

If you do not want to display positive or negative error bars, enter zero (0) in the corresponding box, but don't completely clear the box. If you do that, Excel will think you simply forgot to input a number and it will retain the previous values in both boxes.

This method adds the same constant error values (positive and/or negative) to all data points in a series. But in many cases, you will want to put an individual error bar to each data point, and the following example shows how to do this.

How to make individual error bars in Excel

To begin with, enter all the error bar values (or formulas) into separate cells, usually in the same columns as the original values. And then, tell Excel to graph error bars based on that range.

In this example, we will make individual standard deviation error bars.

Supposing, you have 3 columns with sales numbers. You have calculated an average (B6:D6) for each column and plotted those averages in a chart. Additionally, you found the standard deviation for each column (B7:D7) by using the STDEV.P function, and now you want to display those numbers in your graph as standard deviation error bars. Here's how:

  1. Perform steps 1 - 3 described above.
  2. In the Custom Error Bars dialog box, delete the contents of the Positive Error Value box, put the mouse pointer in the box (or click the Collapse Dialog icon next to it), and select a range in your worksheet (B7:D7 in our case).
  3. Do the same for Negative Error Value If you do not want to display negative error bars, type 0.
  4. Click OK.

Adding custom standard deviation error bars

Important note! Be sure to delete the entire contents of the entry boxes before selecting a range. Otherwise, the range will be added to the existing array like shown below, and you will end up with an error message:


It is quite difficult to spot this error because the boxes are narrow, and you cannot see all the contents.

If all done correctly, you will get individual error bars, proportional to the standard deviation values that you've calculated:
Individual error bars in Excel chart

How to add horizontal error bars in Excel

For most chart types, only vertical error bars are available. Horizontal error bars can be added to bar charts, XY scatter plots, and bubble charts.

For bar charts (please do not confuse with column charts), horizontal error bars are the default and only available type. The screenshot below shows an example of a bar chart with error bars in Excel:
A bar chart with error bars in Excel

In bubble and scatter graphs, error bars are inserted for both x values (horizontal) and y values (vertical).

If you'd like to only insert horizontal error bars, simply remove vertical error bars from your chart. Here's how:

  1. Add error bars to your chart as usual.
  2. Right-click any vertical error bar and choose Delete from the pop-up menu.

Delete vertical error bars.

This will remove vertical error bars from all data points. You can now open the Format Error Bars pane (for this, double-click on any of the remaining error bars) and customize the horizontal error bars to your liking.
Customize horizontal error bars in Excel chart.

How to make error bars for a specific data series

Sometimes, adding error bars to all data series in a chart could make it look cluttered and messy. For example, in a combo chart, it often makes sense to put error bars to only one series. This can be done with the following steps:

  1. In your chart, select the data series to which you want to add error bars.
  2. Click the Chart Elements button.
  3. Click the arrow next to Error Bars and pick the desired type. Done!

The screenshot below shows how to do errors bars for the data series represented by a line:
Adding error bars for a specific data series

As the result, the standard error bars are inserted only for the Estimated data series that we selected:
Standard error bars are inserted for only one data series.

How to modify error bars in Excel

To change the type or appearance of the existing error bars, perform these steps:

  1. Open the Format Error Bars pane by doing one of the following:
    • Click the Chart Elements button > Error Bars > More Options…
    • Right-click error bars and select Format Error Bars from the context menu.
    • Double-click the error bars in your chart.
  2. To change type, direction and end style of the error bars, switch to the Options tab (the last one).
  3. To change the color, transparency, width, cap, join and arrow type, go to the Fill & Line tab (the first one).

Customizing error bars in Excel

How to delete error bars in Excel

To remove all error bars from your graph, click anywhere within the chart, then click the Chart Elements button and clear the Error Bars check box. The shortest instruction ever :)

To delete error bars for a specific data series, click on that data series to select it, then click the Chart Elements button and uncheck the Error Bars box.

If a data series has both vertical and horizontal error bars and you wish to delete the "extras", right-click the superfluous bars, and choose Delete from the context menu.

That's how you do error bars in Excel. I thank you for reading and hope to see you on our blog next week!

Practice workbook for download

Excel Error Bars examples (.xlsx file)

You may also be interested in

20 responses to "How to add error bars in Excel: standard and custom"

  1. Jared says:

    On mac, the scatter plot does not have horizontal errors by default. There is no option to add them. I have not seen the issue using a windows version.

  2. Frank Dean says:

    Thank you Svetlana! Very helpful.


    please guide me on how to draw clustered bar graph

  4. علی says:

    I have charts in Excel that show me the form, but I make the slightest change to the data or image size I get an error 2 and help when an error is fixed after opening the application.

  5. Sameer Esak says:

    How do i assign error bars of different lengths to different points on a graph? Currently Excel will only allow me to assign error bars all of the same length to the points.

    • Emily says:

      Hello, did you figure out how to do this? Thanks. xx

      • Marilyn says:

        Same question. I am plotting Averages on a simple bar graph and each data point (average) has a different set of numbers and different error for each bar on the graph. Is there a way to plot error bars of different lengths on same graph?

    • Sunny93 says:

      Set up 2 new columns in your table - one for positive error and the other for negative error. Fill these with the error values you want to use.
      When selecting the type of error bar, choose 'Custom'. Click the 'Specified Value' button. You should see a cell pop up where you can enter a values for positive and negative with a little chart at the end. Click the chart button and it will allow you to highlight the column in your table with your chosen values. Do this for positive and negative, hit enter and you should be good to go.

  6. Surakiat A. says:

    How to show labels for error bar values in chart?

  7. Anonymous says:

    What do you do when you are trying to add individual error bars but Excel only allows you to add either the positive or negative but not both? I have had situations where Excel blocks you from putting the same data into both but I cannot figure out how to fix this. I delete all contents before highlighting the required data.

  8. Anonymous says:

    For anyone still watching this page, it's very tedious if you have a lot of data but its possible. Create a new series with just the one data point and add the error bar that you want. From there you change the fill and outline of your datapoint to "none" so that its effectively hidden. Do this for each point and you can have individual error bars for each datapoint.

  9. Ayesha Ilyas says:

    Thank you so much for this valuable information. You have explained very clearly. It was of great help to me.

  10. Erin says:

    Just got a new update to Excel and they took away the custom error bars option. I need to find new software now.

  11. Mohamed Benbella says:

    Think your for a very very interesting documents posters. I found what I'm looking for They really responded to what I'm looking for.

    Thinks again

  12. Dean says:

    Your instruction for how to delete error bars is frivolous. I have multiple series and for some reason there are vertical and horizontal error bars for every series. How do I delete the extras?

    • Hi Dean,

      To delete the extras, right-click the unwanted error bars (vertical or horizontal) on the chart, and choose Delete from the context menu. Repeat this for each data series.

      We show how to remove only the vertical error bars in the "How to add horizontal error bars in Excel" example. Please check it out for the detailed instructions with a screenshot.

      I've also added this instruction to the "Delete error bars" section. Thank you for your question :)

  13. HXK says:

    Thanks Svetlana, you must have the patience of a saint - Excel is one of the most staggeringly bad pieces of software out there - nothing seems to be intuitive, when it comes to graphing its much easier to just export as CSV and write a program in python (matplotlib) or R (which I will do from now on). I mean why does Excel default to BOTH horizontal and vertical error bars when this is hardly ever used? Why do I have to set up the x, y data as contiguous columns or rows - this software has been around for nearly 40 years, if Microsoft spent a bit more on basic development instead of on legal/marketing we could have the option of highlighting any two columns and it would default them to x, y? Also why does the error bars 'more options' dialog just exit the "+" function sometimes, no error message? Only way past this was to delete the graph and start over. Extremely frustrating. So so frustrating! Anyway thanks again, your instruction and much perseverance got me there in the end.

  14. Cindy says:

    Thank you so much for this how-to! I had to plot several bar charts with error bars of different lengths for every bar. I had no idea how to do this, but your instructions were simple and clear and I have now managed to successfully create all the bar charts necessary.

Post a comment

Thank you for your comment! When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to your query. We cannot guarantee that we will answer every question, but we'll do our best :)