Error bars explained: SD, SEM or 95% CI, which to use and how to label them

Short answer

Error bars can show three different things, so always say which:

  • SD (standard deviation): how spread out the data are. Use it to describe variation.
  • SEM (standard error of the mean): how precise the mean is. Always smaller than the SD (SD divided by the square root of n).
  • 95% CI (confidence interval): a range built so that, over repeated experiments, 95% of such ranges contain the true mean. Best for comparing groups.

In the legend, write what the bars show and n, for example "mean ± SD, n = 8 mice per group". For very small n, show the individual points instead.

An error bar without a label is one of the most common problems in figures, and one of the easiest to fix. The same data can give a long bar or a short one, depending on whether it shows the standard deviation, the standard error or a confidence interval. If the legend does not say which, readers cannot tell what the figure shows.

Nature's initial submission page asks authors to make sure "error bars are defined throughout the figures". This guide explains what each kind means, with a worked example, which to use, how to read overlap, and the exact words to put in the legend.

Cropped screenshot of the statistical information section of Nature's initial submission guide, with the publisher's name above it. It asks for a statistics section in the Methods, error bars defined throughout the figures, the exact n values used for all statistics including error bars, how many times representative results were repeated, exact P values, F values and t values with degrees of freedom, and a clear definition of the replicates.
From the publisher's own page: Nature's initial submission guide, read 15 November 2026. GoFigures is not affiliated with Nature.How this was made: A cropped screenshot of the publisher's own page, taken on 15 November 2026 and framed with the publisher's name.
Three panels showing the same made-up data, eight points each for Control (blue, around 47) and Treated (orange, around 57), with a mean and error bar beside each group. In the Mean ± SD panel the bars are long, about 5 to 6 units each way. In the Mean ± SEM panel they are short, about 2 units. In the Mean ± 95% CI panel they are in between, about 4.5 to 5 units, and the two groups' bars just about touch.
The same data (n = 8 per group) with three kinds of error bar. Dots are the individual values. Made-up data.How this was made: I drew this in Python from made-up data, computing each kind of error bar.

SD, SEM and 95% CI at a glance

The three common error bars compared.
SD SEM 95% CI
What it shows Spread of the data Precision of the mean Range likely to hold the true mean
Gets smaller with more data? No Yes (divided by √n) Yes
Best for Describing variation Comparing means, with care Comparing means
Size in the example (control, n = 8) ±5.35 ±1.89 ±4.47

What each error bar means

In the example, the control group has eight values with a mean of 47.5 and the treated group a mean of 56.9 (made-up data). Here is what each kind of bar shows for the control group.

Standard deviation (SD)

The SD describes how spread out the individual values are: ±5.35 here. It does not get smaller when you add more data, because it describes the data, not the mean. Krzywinski and Altman put it simply: "Error bars based on s.d. inform us about the spread of the population."

Standard error of the mean (SEM)

The SEM describes how precisely you know the mean: the SD divided by the square root of n. Here that is 5.35 / √8 = ±1.89. It shrinks as n grows. Because it is always smaller than the SD, an unlabelled SEM bar can make data look less variable than they are.

95% confidence interval (CI)

The 95% CI is the mean plus or minus about two SEMs; for small samples, the multiplier comes from the t distribution (2.36 for n = 8). Here that is ±4.47. Cumming and colleagues describe it this way: "95% CIs capture μ on 95% of occasions, so you can be 95% confident your interval includes μ," where μ is the true mean.

Which one should you use?

It depends on what you want the reader to see:

  • To show how variable the data are: SD.
  • To compare group means: 95% CI, or SEM if your field expects it. Cumming and colleagues advise that "it is usually appropriate to show inferential error bars, such as SE or CI, rather than SD" when comparing groups.
  • When n is very small (say 3 to 5): show the individual points. Cumming and colleagues say that for such small n it is "better to simply plot the individual data points"; Krzywinski and Altman give the same advice.
  • For technical replicates: no error bars for inference. Cumming's Rule 3: error bars and statistics "should only be shown for independently repeated experiments, and never for replicates."

Showing the individual points as well as the bar is a good habit at any n: readers see the spread directly. Our post on 12 common mistakes in scientific figures explains why bar graphs alone can hide small samples.

How to read overlapping error bars

This is where most readers go wrong. Overlap or a gap between bars is not a significance test.

  • SEM bars: Krzywinski and Altman show that with n = 10, SEM bars that just touch correspond to P = 0.17, not 0.05. For independent groups with n of 10 or more, Cumming and colleagues give a rough rule: a gap of about one SEM between the bars means P ≈ 0.05.
  • 95% CI bars: for independent groups with n of 10 or more, CI bars that overlap by about half of one arm mean P ≈ 0.05, and bars that just touch mean P ≈ 0.01.
  • Any bars: "In general, a gap between bars does not ensure significance, nor does overlap rule it out" (Krzywinski and Altman).
  • Same group over time: none of these rules apply to repeated measures on the same subjects (Cumming's Rule 8).

In the example, the 95% CI bars for the two groups just about touch, and a t-test on the made-up data gives P = 0.006, roughly what the rule of thumb suggests. Still, report the test and its P value; do not ask readers to judge from the bars.

How to label error bars in the legend

Cumming's Rule 1: "when showing error bars, always describe in the figure legends what they are." Rule 2: give "the value of n". Put both in one short sentence. Lines you can adapt:

Data are mean ± SD; n = 8 mice per group.
Bars show mean ± SEM of n = 3 independent experiments; dots are the mean of each experiment.
Points are individual values; lines show the mean and 95% confidence interval; n = 12 patients per group. P values from a two-sided t-test.

Say what n counts (mice, cells, independent experiments), and name the statistical test. Our figure legend guide shows where this sentence sits in a full legend.

Common error bar mistakes

  • No label: the reader cannot tell SD from SEM from CI.
  • No n, or n that counts technical replicates as if they were independent.
  • SEM chosen because it looks smaller, without saying so.
  • Error bars on n = 2 or 3 with no individual points shown.
  • Different kinds of bar in different panels of the same figure without saying so.
  • Judging significance from overlap instead of reporting the test.

For the full list of figure problems, see 12 common mistakes in scientific figures, and for the steps before this, how to make figures for a research paper. This post explains how to show error bars; for which test to use, ask a statistician.

Questions

What is the difference between SD and SEM?

The SD shows how spread out the data are. The SEM shows how precisely you know the mean: the SD divided by the square root of n. The SEM is always smaller and shrinks with more data; the SD does not.

Should I use SD or SEM for error bars?

Use SD to show how variable the data are, and SEM or a 95% confidence interval to compare means. Whichever you choose, say which in the legend and give n. For very small n, show the individual points.

What do overlapping error bars mean?

Not much on their own. With n = 10, SEM bars that just touch correspond to P = 0.17, and 95% CI bars can overlap by about half an arm at P = 0.05. Report the statistical test rather than relying on overlap.

How do I write error bars in a figure legend?

One sentence with what the bars show and what n is, for example "Data are mean ± SD; n = 8 mice per group." Add the statistical test if you show P values.

What is a 95% confidence interval error bar?

A range around the mean built so that, over repeated experiments, 95% of such ranges would contain the true mean. It is about two SEMs either side of the mean, a little more for small samples.

Should I show error bars when n = 3?

Show the three individual points, with or without a mean line. Error bars from three values are very uncertain, and the points tell readers more.

Sources

Sources (3)
  1. Error bars in experimental biologyJournal of Cell Biology · checked 2 November 2026 · Cumming G, Fidler F, Vaux DL. 2007;177(1):7 to 11. doi:10.1083/jcb.200611141.
  2. Error barsNature Methods · checked 2 November 2026 · Krzywinski M, Altman N. 2013;10:921 to 922. doi:10.1038/nmeth.2659.
  3. Initial submissionNature · checked 2 November 2026 · Error bars defined.

Changes: 15 November 2026, a cropped screenshot of the source page added, read that day. 2 November 2026, first published.

ShareEmail

Spotted an error, or a rule that has changed? Please write to support@gofigures.app and I will correct it and note the change on this page.

Join the waiting list

We only use your email for GoFigures. Leave any time. Privacy