Error Bar / Confidence Interval
Variant: Standard
Made-up data, for demonstration only
Variants
4 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Show the uncertainty of an estimate
Error Bar / Confidence Interval is a line drawn on either side of an estimate, such as a mean, to show spread or uncertainty. The chart must say whether the line stands for the SD, the SE or a confidence interval. This example shows the average satisfaction score on 5 service dimensions with 95% confidence intervals (made-up data).
How to read an Error Bar
- The dot is the mean. Here it is the average score from 1 to 5 on 5 service dimensions (made-up data).
- The line is the 95% confidence interval. Friendliness is 4.4 (range 4.28 to 4.52), overall satisfaction 4.2 (4.05 to 4.35), accuracy 4.0 (3.82 to 4.18), speed 3.6 (3.38 to 3.82) and value for money 3.3 (3.05 to 3.55).
- A short interval means a more precise estimate, when the intervals are of the same kind. Here every line is a 95% CI. Friendliness is the shortest (±0.12) and value for money the longest (±0.25).
- Value for money is the lowest. Its interval (3.05 to 3.55) lies below the intervals of overall satisfaction, accuracy and friendliness, but it still overlaps the interval for speed (3.38 to 3.82).
When you show error bars, say clearly what quantity they stand for and what confidence level they use.
When to use it
- You want to show the uncertainty of many estimates at once. Error bars are handy because one picture carries many estimates with their uncertainty.
- The data comes from a sample, not the whole population, such as a survey or an experiment.
- Readers must judge whether a difference is believable. The interval helps show whether two values are further apart than their uncertainty.
When not to use it
- You want to show how the real data is spread. Error bars on a mean do not show the shape of the distribution. Use a Box Plot, a Violin Plot or a Strip Plot.
- Readers may take the bar as a minimum to maximum range. This misunderstanding is called a deterministic construal error: believing that the true value cannot lie outside the line.
- You cannot say whether it is an SD, SE or CI. Without that, readers cannot interpret it.
- You want to give a single value with no interval you can compute. A number or a single dot is enough.
Common mistakes
1. Not saying what the line stands for
For the same data, the SD, the SE, or an 80, 95 or 99% CI give lines of different lengths. Add a label such as "bars = 95% confidence interval".
2. Judging a difference from whether the lines overlap
The rule of thumb about overlapping or non-overlapping lines is unreliable and should be avoided. The right way is to compute the confidence interval of the difference. If that interval does not include zero, the difference counts as significant. In this example the intervals for overall satisfaction and accuracy overlap, but that does not mean they differ or do not differ until you compute it.
3. Thinking a 95% interval means "a 95% chance the true value is in this range"
That is the definition of a Bayesian credible interval, not a confidence interval. A confidence interval is a range that would cover the true value with the stated frequency over repeated samples.
4. Cutting the axis so the lines look more different than they are
This example uses an axis from 2.5 to 5, which makes the differences look large. Try the "Full-scale axis" variant, which starts at 1, to compare the impression, and tell readers when the axis does not start at 0.
5. Not sorting
When there are many items, sort by the mean so they are easy to compare. Try the "Sort by value" variant.
Compared with similar charts
| Chart | How it differs | Choose it when |
|---|---|---|
| Error Bar / CI | An estimate with an uncertainty interval | Surveys and experiments |
| Box Plot | A box showing how the data is spread | You want the spread of the real data |
| Strip Plot | Every data point | There is little data |
| Dumbbell Chart | Two dots per category | You compare two times or two groups |
| Bar Chart | A bar for a single value | You do not need to show uncertainty |
Frequently asked questions
How are SD, SE and CI different?
The SD describes how spread out the data is. The SE of a mean is roughly the SD divided by the square root of the sample size. For a large sample, the distance from the mean to each end of a 95% CI is about 2 times the SE.
Do more data make the bars shorter?
In general, the SE and CI of a mean get narrower as the sample size grows and the spread stays the same.
Do overlapping lines mean there is no difference?
Not necessarily. You need to compute the confidence interval of the difference. Do not rely on the overlap rule of thumb.
Should I add caps to the ends?
There are pros and cons. Caps make the end points clear, but they add clutter when there are many lines. Consider leaving them off when there are many.
References
- Fundamentals of Data Visualization, ch. 16: Visualizing uncertainty · Claus O. Wilke · clauswilke.comUsed to confirm: how to show uncertainty
- Error bars in experimental biology · Cumming, Fidler and Vaux · pmc.ncbi.nlm.nih.govUsed to confirm: the difference between SD, SE and CI, and how to read overlapping intervals
Last updated 28 Nov 2026