Two bar graphs with identical bars can tell different stories, depending on what the little whisker on top represents. This ambiguity is real — and it is why journals require you to state which one you used.
The three candidates
| Error bar | Answers the question | Formula |
|---|---|---|
| SD — standard deviation | "How spread out is the raw data?" | s (the usual sample SD) |
| SEM — standard error of the mean | "How precisely do we know the mean?" | SD ÷ √n |
| 95% CI — confidence interval | "What range of true means is compatible with the data?" | mean ± t × SEM |
Why they differ — the √n
Everything hinges on one fact: SEM shrinks as your sample grows, while SD does not. SD describes your data; SEM describes your estimate of the mean. With 100 values, the mean is known roughly ten times more precisely than with 1 value (√100 = 10) — even if the raw spread is identical.
This is why SEM bars look smaller than SD bars whenever n > 1, and why an SEM bar can make a noisy group of 3 measurements look impressively tight. That is not cheating — it is just a different question being answered.
Which one should you use?
- Want to show the variability of your data? Use SD. This is the most honest picture of the raw spread.
- Want to show how well you know the mean? Use SEM. Common in life sciences and physiology.
- Want to convey statistical precision and testability? Use 95% CI. If two groups' 95% CIs clearly separate, the difference will usually be significant. Confidence intervals are increasingly preferred because they show both the effect size and the precision at once.
The rule that prevents trouble: whatever you choose, say it in the figure caption — "mean ± SEM, n = 12". A graph that does not say which bar it is has not fully communicated.
A worked example
Take a group with mean 24.2, SD = 1.36, n = 20:
- SD bar: 24.2 ± 1.36 — the spread of individual values.
- SEM bar: 24.2 ± 0.30 — 1.36 ÷ √20 — the precision of the mean.
- 95% CI: 24.2 ± 0.64 — roughly 2.09 × SEM with 19 degrees of freedom — the plausible range for the true mean.
Same data, three bars differing by a factor of four. Nothing changed except the question.
The one comparison to avoid
Comparing a study that uses SEM with one that uses SD will make the first look more precise. When reading papers — or writing them — always check the caption before comparing error bars across figures.
In StatFlo: the bar graph has an "Error Bars" selector — SD, SEM, 95% CI or none — and the results table and interpretation switch to match your choice automatically.