01
How to make a bar chart with error bars
- Paste the values of each group, separated by commas, spaces or line breaks. A column copied from a spreadsheet works.
- Name the groups and the Y axis.
- Choose what the error bars show, and keep the individual values visible if the groups are small.
- Download the SVG to edit in Illustrator, Inkscape or PowerPoint, or the PNG to drop straight into a manuscript.
02
SD, SEM or 95% CI: which error bar?
| Error bar | Shows | Use when |
|---|---|---|
| ± SD | spread of the individual values | you describe how variable the data are |
| ± SEM | precision of the mean, SD ÷ √n | you compare means; always state n |
| 95% CI | range that should contain the true mean | you want readers to judge differences by eye |
The three look alike on the page and mean different things, so the legend must say which one is drawn. For five values with SD 0.466, the SEM is 0.208 and the 95% CI half-width is 0.578: the same data, bars of three different lengths.
SEM = SD ÷ √n · 95% CI = mean ± t(n − 1) × SEM
Source: Cumming, Fidler & Vaux, Error bars in experimental biology, J Cell Biol 2007;177:7–11, rule 1 (say in the legend what the bars are) and rule 2 (state n).
03
Why show the individual values
A bar hides the shape of the data: very different samples can share a mean and an SD. Many journals now ask for the individual values to be drawn over the bars when groups are small. Keep "Show individual values" on, or switch to the box plot, which shows the median, quartiles and outliers instead of a mean.
04
File formats
- SVG is a vector file. Text stays text and every bar is a shape, so you can change fonts, colours and sizes later without loss.
- The PNG is 2,700 pixels wide, which is 9 inches at 300 dpi, enough for a full-width figure in most journals.
- Colours come from the Okabe-Ito palette, which stays distinguishable for readers with the common forms of colour blindness.
05
Common mistakes with error bars
- Drawing SEM and calling it SD. With six values the SEM is the SD divided by √6, so the bar is 2.45 times shorter: 0.118 instead of 0.288 for the example Control group.
- Reading SEM bars that just touch as “no difference”. Two groups of three whose SEM bars meet end to end give t = 1.41 and p = 0.23 (Welch): not significant, but bars that do not overlap would not prove significance either. Run the test.
- Starting the axis above zero. The example means, 4.35 and 5.47, give one bar 26% taller than the other from zero; start the axis at 4 and the second bar looks 4.2 times taller. This tool always starts bar charts at zero.
- Leaving out n. Error bars mean little without the group size, which is why the n of each group is printed under its bar.
Trust
How this page is checked
- The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
- Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.
Cite this page
Sciloom. (2026). Bar chart with error bars maker. Zebra Nine Studio Inc. https://sciloom.si/bar-chart-with-error-bars
Frequently asked questions
Should error bars be SD or SEM?
Use SD to show how variable the measurements are and SEM or a 95% confidence interval to show how precisely the mean is known. Whichever you choose, say so in the legend and give n.
Can I edit the chart afterwards?
Yes. Download the SVG and open it in Illustrator, Inkscape, Affinity Designer or PowerPoint. Labels are real text and each bar is a separate shape.
Is my data uploaded?
No. The chart is drawn in your browser and the numbers are not sent to a server.
When should I use a box plot instead of a bar chart?
When the data are skewed, have outliers, or you have enough values per group (roughly ten or more) for quartiles to mean something. A box plot shows the median and spread without assuming a symmetric distribution.