Skip to the content.

Add error bars to bar graphs

1. Using Excel

Imagine you do an experiment with two groups of plants. You measure how much plants grow after a certain period of time without treatment (control) and with treatment. There are four plants for the control group and four plants for the treatment group.

Your data look like this (there are no error bars):

Bar graph data
To add the standard deviation as error bars to your graph follow these steps:
  1. Click on the chart to reveal the "Chart Elements" button
Chart elements button
  1. Click the "Chart Elements" button and navigate to "Error Bars" > "More Options..."
Error bars > More Options

The "Format Error Bars" menu will open on the right-hand side of the Excel window.

  1. Click on the "Error Bar Options" menu that looks like three vertical bars. Then, select the "Custom" error amount at the bottom and click on the "Specify Value" button.
Error Bar Options > Custom > Specify Value
  1. A new window will appear that says "Custom Error Bars" at the top. In both, the "Positive Error Value" and "Negative Error Value" fields select the cells with your calculated standard deviations.
Enter error values

You are done! The error bars are now in your graph, and each bar has its corresponding error value.

Final result

Note that each bar has its own error value. In other words, each category (control or treatment) has a different size of error bar corresponding to each category's standard deviation.

Excel version used: Microsoft 365 (Version 2105)


Additional resources


Created by Juan Martinez-Francois.

These materials are open access and distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.