Concept · 4 min read

SD vs SEM vs 95% CI

Three error bars that look identical on a graph — and answer three completely different questions.

Advertisement
Updated November 2026 · Plain English · With formulas

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 barAnswers the questionFormula
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?

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:

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.

Make the graph, choose the error bar.

StatFlo draws bar graphs with SD, SEM or 95% CI — labelled, and reflected in the results.

Open StatFlo