Σ
SDCalc
IntermediateVisualization·11 min

Standard Deviation Error Bars in Charts: SD vs SE vs CI

Learn when chart error bars should show standard deviation, standard error, or confidence intervals, with formulas, a worked dataset, and reporting criteria.

By Standard Deviation Calculator Team · Statistics Education Team·Published

Quick Answer

Use standard deviation (SD) error bars when the chart should show how spread out the raw observations are. Use standard error (SE) error bars when the chart should show uncertainty in the estimated mean. Use confidence interval (CI) error bars when readers need a plus-or-minus range around the mean at a stated confidence level.

Core formulas for mean charts

SD = s; SE = s / sqrt(n); 95% CI error bar = t* x s / sqrt(n)

Do not leave error bars unlabeled

A chart caption that only says "error bars shown" is incomplete. State whether the bars are SD, SE, or CI, and include n for each group.

A student or analyst often reaches this question after making a bar chart of group means and realizing the software can draw several kinds of error bars. My role as a statistics educator is to make the chart answer one specific question: are we showing variation among observations, precision of the mean, or a confidence interval for the population mean?

If you need the raw spread first, calculate it with the mean and standard deviation calculator or the sample standard deviation calculator. If the chart is about uncertainty in a mean, pair this guide with Standard Error vs Standard Deviation, Building Confidence Intervals, and the standard error of the mean calculator.

What Error Bars Answer

The same dataset can produce three valid-looking charts with three different messages. The mistake is not the arithmetic; it is choosing an error bar that answers the wrong question.

SD bars answer

How much do individual observations vary around their group mean?

SE bars answer

How precisely have we estimated the group mean from this sample?

CI bars answer

What interval of plausible population means is supported by this sample and confidence level?

For charts aimed at nontechnical readers, 95% CI bars are often easier to defend than SE bars because the caption can explain the interval directly. SD bars are still the right choice when the visual purpose is spread, such as comparing variability in test scores, response times, fill weights, or lab replicates.

SD vs SE vs CI

Error bar typeFormula for each side of barBest useCommon misread
Standard deviationsShow spread of raw observations inside each groupReaders may treat it as uncertainty in the mean
Standard errors / sqrt(n)Show sampling precision of the meanBars look smaller as n grows, even if raw variability is unchanged
95% confidence intervalt* x s / sqrt(n)Show an inferential interval around the estimated meanOverlap rules are rough and depend on design, sample size, and variance assumptions

Decision criterion

If your sentence starts "individual values usually vary by...", use SD. If it starts "the estimated mean is precise to about...", use SE. If it starts "a plausible range for the population mean is...", use a confidence interval.

Worked Example

Here is a concrete teaching dataset we use when reviewing chart captions. An analyst compares completion times, in seconds, for two checkout flows. Each flow was tested by eight users.

FlowObserved times (seconds)MeanSample SD
A48, 52, 47, 55, 51, 50, 54, 4950.752.66
B42, 44, 41, 46, 43, 45, 44, 4243.381.69
1

Compute SD bars

Flow A gets +/- 2.66 seconds and Flow B gets +/- 1.69 seconds. These bars describe user-to-user spread.
2

Compute SE bars

SE_A = 2.66 / sqrt(8) = 0.94 seconds. SE_B = 1.69 / sqrt(8) = 0.60 seconds. These bars describe mean precision.
3

Compute 95% CI bars

With n = 8, df = 7, and t* about 2.365, CI_A half-width = 2.365 x 0.94 = 2.22 seconds. CI_B half-width = 2.365 x 0.60 = 1.41 seconds.
4

Match the bar to the objective

For a usability report about typical variation between users, show SD. For a decision about whether Flow B is faster on average, show 95% CI or run the relevant test.

Interpretation

Flow B has a lower mean completion time (43.38 s vs 50.75 s) and less user-to-user spread (SD 1.69 s vs 2.66 s). A chart with SD bars tells the reader Flow B was both faster and more consistent in this sample. A chart with 95% CI bars tells the reader the estimated mean time is also more precise for Flow B.

This example also shows why SE bars can be misleading in presentations. They are much shorter than SD bars, so a casual reader may think the raw data are tightly clustered. The smaller SE only means the sample mean is estimated more precisely. For more on that distinction, see Margin of Error vs Standard Error.

How to Label the Chart

A good caption removes ambiguity before the reader has to guess. Put the statistic, sample size, and interval level directly in the figure note.

  • For SD bars:Bars show mean +/- 1 sample standard deviation; n = 8 users per flow.
  • For SE bars:Bars show mean +/- 1 standard error; n = 8 users per flow.
  • For CI bars:Bars show 95% confidence intervals for the mean using the t distribution; n = 8 users per flow.

Do not infer too much from visual overlap alone. Two 95% CI bars that overlap slightly can still correspond to a statistically detectable difference, and two SD bars that overlap tell you very little about the difference between means. If the decision is formal, use the chart as a summary and report the test or interval that matches the study design.

Reporting Checklist

  • State whether bars show SD, SE, or CI; never rely on the visual alone.
  • Report n for every group, especially when group sizes differ.
  • Use SD bars for raw variability and CI bars for inference about means.
  • Use t-based CI bars for small samples unless a known population standard deviation justifies a z interval.
  • Avoid bar charts for small samples when dot plots or boxplots would show the data pattern more honestly.
  • Check whether outliers, skew, paired observations, or unequal variances change the appropriate analysis.

Pre-publish self-check

Before publishing a chart, ask: Is there a worked number behind each bar? Can a reader scan the caption and know what the bars mean? Does the chart teach more than a generic definition of standard deviation?

Weakest Section Rewrite

Weak version: "Error bars help show uncertainty in charts."

Concrete version: "In the checkout-flow chart above, Flow A's SD bar is +/- 2.66 seconds, its SE bar is +/- 0.94 seconds, and its 95% CI half-width is +/- 2.22 seconds. Those three bars answer different questions, so the caption must name the one used."

That concrete substitution is the standard to use in your own reporting: name the statistic, show the number, and connect the visual choice to the decision.

Further Reading

Sources

References and further authoritative reading used in preparing this article.

  1. NIST/SEMATECH e-Handbook of Statistical Methods: Confidence Limits for the MeanNIST
  2. Cumming, Fidler, and Vaux: Error bars in experimental biologyJournal of Cell Biology
  3. GraphPad Statistics Guide: Error barsGraphPad