CalculatorsToolsGuides 日本語
BenchFig › Guides › How to add SD error bars and individual data points to an Excel bar graph
Publication figures

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.

Updated: BenchFig日本語
Key points
  • 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.

Table layout
Test
Comparisons

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

0246810121416ControlDrug ADrug BValue
A. Bars only (close to Excel’s default)
05101520ControlDrug ADrug BValue
B. Bars + SD + individual points
The same data (n = 5 each, made up). In A neither the spread nor n is visible. In B, bars = mean, error bars = SD, dots = samples. Drawn with BenchFig.

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

RowWhatFormula (column A; same for B and C)Example (Control / Drug A / Drug B)
8Mean=AVERAGE(A2:A6)12.64 / 14.64 / 13.60
9SD=STDEV.S(A2:A6)0.67 / 0.75 / 0.76
10n=COUNT(A2:A6)5 / 5 / 5
11SEM=A9/SQRT(A10)0.30 / 0.34 / 0.34

2. Make the bar graph and set Custom error bars

  1. Select the group names (A1:C1) and, holding Ctrl, the means (A8:C8), then choose Insert > Column chart.
  2. Select the chart, click the + (Chart Elements) button, then the arrow next to Error Bars > More Options.
  3. In Format Error Bars, set Direction to Both and Error Amount to Custom, then click Specify Value.
  4. 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.
The Standard Deviation and Standard Error buttons do not give per-group values. According to Microsoft’s formulas, both are calculated from the plotted values (here, the three bar heights). In this example “Standard Deviation” gives 1.00, unrelated to the group SDs (0.67, 0.75, 0.76).

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.

A long table, one point per row. Adjust the offset (about 0.05–0.15) to the bar width.
Column E: x positionColumn F: valueNote
0.8812.1Control, 1st (1 − 0.12)
0.9413.4Control, 2nd (1 − 0.06)
1.0011.8Control, 3rd
1.06 / 1.1212.9 / 13.0Control, 4th and 5th
1.88–2.1214.2–15.5Drug A (offset within 2 ± 0.12 in the same way)
2.88–3.1213.0–14.4Drug B
  1. Right-click the chart > Select Data > Add, and add a new series with column F as its values.
  2. Right-click the chart > Change Chart Type > Combo, and set the new series to Scatter. Leave Secondary Axis unticked.
  3. Edit that series again in Select Data: set Series X values to column E and Series Y values to column F.
  4. 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

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

Bars show mean ± SD; dots are individual samples (n = 5).

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.

Switch between SD, SEM and 95% CI, with pointsPaste your table into the graph screen for bar + dot plots, error bars (SD, SEM, 95% CI) and significance stars, formatted for publication. Free, no sign-up.
Open for free →
Your own data, all the way to the final figure.Loading your files, saving, and journal-ready export (PDF, TIFF, PNG, SVG) are in BenchFig Pro for Windows, updated based on researchers’ requests: ¥3,980/year (2 PCs), with lab and perpetual licenses too.
About the app →

Related guides

Product and journal names are trademarks or registered trademarks of their respective owners.