Error barsHow far a value could be off.
A dot for each average, a line for how far it could be off. Which differences are real, and which could be chance.
- Answers How sure is this number?
- Your data an estimate with a low and a high end per group
- Groups about 2 to 15
- Range often a 95% interval
- Excel and Power BI error bars on a chart
What are error bars?
Error bars draw a line through each value, from its likely low end to its likely high end, with short caps at both ends. The value is an estimate, such as an average from a sample, and the bar says how far it could be off. Short bars mean a sure number; long bars mean a rough one. When two groups' bars overlap a lot, their difference could be chance.
Average delivery time of four couriers, in days, with the range the true average most likely falls in (95% interval). Speedy is fastest; Local's range is so wide it could be anywhere from first to last.
Why use error bars?
Because every average from a sample is a little uncertain.
- Honest numbers. 2.4 days, give or take 0.9, is the true message.
- Real differences. Bars that do not overlap point to a real gap.
- Sample size shows. Small samples give long bars.
- Small add-on. A thin line on a chart readers already know.
How do error bars work?
Four steps add error bars.
- Step 1 of 4The scaleCouriers along the bottom, days up the side.
- Step 2 of 4The estimatesOne dot per courier: the average delivery time in the sample.
- Step 3 of 4The rangesA line from the likely low to the likely high end, with caps.
- Step 4 of 4The widest rangeLocal: few deliveries in the sample, so 1.5 to 3.3 days.
The range is often a 95% confidence interval (the true average falls in it 95 times in 100), sometimes the standard error or the standard deviation. They are different sizes, so the chart must say which.
What are the parts of error bars?
Four parts, and each one has a job.
- Estimatethe value from the sample
- Rangewhere the true value likely is
- Capmarks the end of the range
- Wide rangea rough estimate, often a small sample
How do you read error bars?
Three looks, in this order.
- Compare the dotsSpeedy (2.1) looks fastest, Parcel (3.4) slowest.
- Check the overlapSpeedy's range ends at 2.4, Parcel's starts at 3.1: a real gap.
- Distrust long barsLocal's 2.4 overlaps everyone: it could be first or last.
What kinds of error bars are there?
The same couriers, three ways.
- Kind 1Dots and barsThe estimate as a dot.
- Kind 2Columns and barsThe estimate as a column, the range on top.
- Kind 3One courier litThe others fade.
Error bars can also run sideways on a bar chart, or sit on every point of a line chart; with many points, a confidence band is calmer.
When should you use error bars?
When values are estimates and their sureness matters.
- values come from samples or measurements
- differences between groups matter
- readers may act on small gaps
- the range type is known
- values are exact counts (no error)
- there are many points in order (a confidence band)
- several studies are combined (a forest plot)
Error bars or dots alone?
The estimate with its doubt, or the estimate alone.
Dots alone suggest a clear ranking: Speedy, Local, Rapid, Parcel. With error bars, only one gap is clear, Speedy against Parcel; Local and Rapid could swap places with anyone.
How do you make error bars?
An estimate and its range per group, in Excel or Power BI.
In Excel, select a chart and choose Chart Elements > Error Bars > More Options, then Custom with ranges for the plus and minus amounts. In Power BI, the line and column charts have error bars in the Analytics pane, taking an upper and a lower bound measure (the Analytics pane).
What goes wrong with error bars?
The most common mistake, and its fix: not saying what the bars mean.
- readers cannot tell standard error from a 95% interval
- the second is about twice as long
| Mistake | Why it hurts | Fix |
|---|---|---|
| Not saying what the bars are | Sizes cannot be judged | Name the interval |
| Overlap read as "no difference" | Some overlap can still be a real gap | A proper test for close calls |
| Error bars on exact counts | False doubt | Only for estimates |
| Caps as thick as the bar | Clutter | Thin lines, small caps |
| Columns for averages | The column hides the range | Dots with bars |
Every chart for “How sure is this number?”
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.