How to add SD error bars and individual data points to an Excel bar graph
Clicking “Standard Deviation” in Excel’s error bar menu does not give each group’s SD. The correct way is to calculate the SD yourself and point Custom error bars at those cells. This guide shows that step by step with a worked example, then overlays the individual data points that journals increasingly ask for. If you just need the figure, the free calculator below draws it from pasted values.
- The “Standard Deviation” button is not each group’s SD. Point Custom error bars at cells calculated with STDEV.S
- SEM is
=STDEV.S(range)/SQRT(COUNT(range)). State which one you used and n in the legend - Draw individual points as a scatter series (x = 1, 2, 3 plus a small offset) on top of the bars
- The smaller the n, the more showing the points helps readers judge the spread
Shortcut: paste a table, get bars + SD + points (free)
Paste a table with one column per group (group names in the first row) straight from Excel into the calculator below. You get a bar graph with SD error bars and individual points, plus ANOVA and multiple-comparison results (significant pairs get a bracket and stars). “Save as PNG (free)” lets you keep the image. Your numbers stay in your browser.
Your numbers are processed only in this browser. Nothing is sent to a server (it is gone when you close the page).
Paste one column per group (group names in the first row) or a long table with two columns: group | value. Group sizes may differ. Blanks, N/A and #DIV/0! are treated as missing; decimal commas (12,5), thousands separators (1,234) and ID columns (ID, Mouse …) are understood.
For two groups, the t test calculator fits better. To switch error bars to SEM or 95% CI, use the graph screen (free).
Step by step in Excel
The example uses made-up data: three groups measured five times each, entered in rows 2–6 of columns A–C.
1. Calculate the mean, SD and SEM in cells
| Row | What | Formula (column A; same for B and C) | Example (Control / Drug A / Drug B) |
|---|---|---|---|
| 8 | Mean | =AVERAGE(A2:A6) | 12.64 / 14.64 / 13.60 |
| 9 | SD | =STDEV.S(A2:A6) | 0.67 / 0.75 / 0.76 |
| 10 | n | =COUNT(A2:A6) | 5 / 5 / 5 |
| 11 | SEM | =A9/SQRT(A10) | 0.30 / 0.34 / 0.34 |
2. Make the bar graph and set Custom error bars
- Select the group names (A1:C1) and, holding Ctrl, the means (A8:C8), then choose Insert > Column chart.
- Select the chart, click the + (Chart Elements) button, then the arrow next to Error Bars > More Options.
- In Format Error Bars, set Direction to Both and Error Amount to Custom, then click Specify Value.
- Clear the Positive Error Value box and select the SD cells (A9:C9); set Negative Error Value to the same A9:C9 and click OK. For SEM, use A11:C11 instead.
3. Overlay the individual data points (add a scatter series)
Make a separate two-column table: x position and value. The first bar sits at x = 1, the second at 2 and the third at 3; offset the points slightly so they do not overlap.
| Column E: x position | Column F: value | Note |
|---|---|---|
| 0.88 | 12.1 | Control, 1st (1 − 0.12) |
| 0.94 | 13.4 | Control, 2nd (1 − 0.06) |
| 1.00 | 11.8 | Control, 3rd |
| 1.06 / 1.12 | 12.9 / 13.0 | Control, 4th and 5th |
| 1.88–2.12 | 14.2–15.5 | Drug A (offset within 2 ± 0.12 in the same way) |
| 2.88–3.12 | 13.0–14.4 | Drug B |
- Right-click the chart > Select Data > Add, and add a new series with column F as its values.
- Right-click the chart > Change Chart Type > Combo, and set the new series to Scatter. Leave Secondary Axis unticked.
- Edit that series again in Select Data: set Series X values to column E and Series Y values to column F.
- Right-click the points > Format Data Series: choose a built-in circle marker with white fill and an outline in the bar colour. Lighter bars make the points easier to see.
For a different colour per group, add one scatter series per group in the same way.
Common mistakes
- Leaving the Standard Deviation button on: as noted above, it is not each group’s SD.
- Using STDEV.P: for experimental data use STDEV.S (n − 1).
- One-sided error bars: set Direction to Both and fill in the negative value too.
- Not saying SD or SEM: always write the type and n in the legend (“mean ± SD, n = 5”). See SD vs SEM vs 95% CI.
- Points that are not independent: plotting every well or cell from one experiment inflates n. For repeated experiments, plot the mean of each run, as in a SuperPlot.
Why show the points
Bars and error bars alone cannot distinguish an outlier, two clusters or an n of 3 when the mean and SD are the same. Weissgerber and colleagues surveyed papers in top physiology journals, found that most continuous data were shown as bar graphs, and recommended figures that show individual data points (univariate scatterplots, i.e. dot plots) especially when n is small (PLOS Biology 2015).
Example legend
To add significance brackets and stars, see how to add significance asterisks in Excel.
Sources: Microsoft Support, “Add, change, or remove error bars in a chart” (custom error bars and the Standard Deviation / Standard Error formulas, checked 2026-11-10); Weissgerber TL, et al. Beyond bar and line graphs: time for a new data presentation paradigm. PLOS Biol 2015;13(4):e1002128. Menu names can differ slightly between Excel versions.
FAQ
What does Excel’s “Standard Deviation” error bar actually show?
According to Microsoft’s formula, it is a single value calculated from the plotted values (the bar heights), not the spread of each group’s measurements. To show each group’s SD, calculate it with STDEV.S and select those cells under Custom > Specify Value.
STDEV.S or STDEV.P?
For experimental data (a sample), use STDEV.S (divides by n − 1); that is the SD normally reported in papers. STDEV.P is for when you have measured the whole population.
How do I show SEM error bars?
SEM = SD / √n, so calculate =STDEV.S(A2:A6)/SQRT(COUNT(A2:A6)) and select that cell under Custom. Which to use is covered in the SD vs SEM guide.
My error bars only go up
Either the direction is set to Plus or the Negative Error Value is still 0. Set the direction to Both and use the same SD cells for the negative value. Some fields do use upward-only bars, so follow your target journal.
The dots are offset from the bars
The scatter series has usually gone onto the secondary axis. In Change Series Chart Type, untick Secondary Axis for the scatter series; x positions 1, 2 and 3 then sit on the centres of the first, second and third bars.
Does this work in Excel for Mac?
Yes. According to Microsoft, on the Mac error bars are set from Chart Design > Add Chart Element > Error Bars. The calculator on this page runs in the browser, so it works on a Mac too.
Related guides
Product and journal names are trademarks or registered trademarks of their respective owners.