How to Make a Bar Chart with Error Bars in SPSS

A plain bar chart shows only group means — it hides how much scores varied and how much you can trust each mean. Error bars fix that at a glance. In this guide, you will learn how to make a bar chart with error bars in SPSS three ways: the Chart Builder, the Legacy Dialogs, and a paste-ready syntax command, plus how to read the chart and report it in APA style.

What error bars actually show (and what they don’t)

A bar chart with error bars in SPSS shows two things at once: the height of each bar is the group mean, and the whisker on top shows how precise that mean is. Without error bars, a reader sees only the averages and has no idea whether a difference of a few points is solid or could easily be noise.

SPSS offers three kinds of error bars, and choosing the right one matters:

  • Confidence interval (usually 95%) — the range of values that plausibly contains the true population mean. This is the default in SPSS and the best choice for most theses and journal articles.
  • Standard error (SE) — a measure of how much sample means would vary if you repeated the study. Bars of one standard error are roughly two-thirds as wide as a 95% confidence interval.
  • Standard deviation (SD) — a measure of the spread of the raw scores inside each group, not the precision of the mean. SD bars are usually much wider than CI or SE bars.

One common misunderstanding is worth clearing up before you start: overlapping error bars do not automatically mean “no significant difference”. Two 95% confidence intervals can overlap a little and the difference between the groups can still be statistically significant. Error bars are a visual aid for precision and variability — they are not a significance test. If you need a formal test, run the appropriate t-test or ANOVA and report that separately.

Before you start: get your data ready

A bar chart with error bars needs exactly two ingredients:

  • One grouping variable — a nominal or ordinal variable that splits your cases into groups, such as group (control vs intervention), gender, or condition.
  • One scale variable — a continuous outcome you want to summarise, such as score, reaction time, or anxiety score.

Before building the chart, take thirty seconds to check the data. Run Analyze > Descriptive Statistics > Descriptives on your scale variable and confirm the mean and standard deviation look sensible, and check that your grouping variable has no unexpected categories (a stray “99” coded as a group will appear as an extra bar). Missing values are simply left out of the chart.

Method 1: Chart Builder (the recommended route)

The Chart Builder is the modern way to make a bar chart with error bars in SPSS, and it gives you the most control. Follow these steps:

  1. Go to Graphs > Chart Builder.
  2. Click OK if SPSS asks you to define measurement levels. (If it does, set your grouping variable to Nominal and your scale variable to Scale in Variable View first.)
  3. In the gallery at the bottom left, click Bar.
  4. Drag the Simple Bar icon (the first one) up into the chart preview area.
  5. Drag your grouping variable (for example, group) onto the X-Axis drop zone.
  6. Drag your scale variable (for example, score) onto the Y-Axis drop zone. SPSS will automatically set the statistic to Mean.
  7. Click the Element Properties tab on the right-hand side. Under Statistics, make sure Mean is selected.
  8. In the same panel, tick Display error bars. Choose Confidence intervals and leave the level at 95%, or pick Standard error or Standard deviation if your supervisor or journal prefers those.
  9. Click OK. SPSS draws the chart in the Output Viewer.

For a clustered bar chart — mean scores split by group and by gender, say — drag the Clustered Bar icon instead and drop the second grouping variable onto the Cluster on X drop zone. The error-bar tick box works exactly the same way.

Method 2: Legacy Dialogs (the quick route)

If you prefer the older dialogs, or you are following an older textbook, the Legacy Dialogs route is faster:

  1. Go to Graphs > Legacy Dialogs > Bar.
  2. Select Simple and, under Data in Chart Are, choose Summaries for groups of cases. Click Define.
  3. Move your scale variable into Bars Represent: Mean (click the Mean radio button if another statistic is showing).
  4. Move your grouping variable into Category Axis.
  5. Click Options. Tick Display error bars, choose Confidence intervals (95%) or Standard error, and click Continue.
  6. Click OK.

Both methods produce the same chart. Use whichever you find easier — the Chart Builder is better for customising colours and labels afterwards, while Legacy Dialogs is quicker for a one-off chart.

Paste-ready SPSS syntax

For a reproducible result — or the same chart for several variables — use syntax. Paste the block below into a syntax window (File > New > Syntax), replace score and group with your own variable names, select the lines and press Run:

GRAPH
  /BAR(SIMPLE)=MEAN(score) BY group
  /ERRORBAR=CI(95).

To change the type of error bar, swap the last line:

* Two standard errors instead of a 95% confidence interval.
GRAPH
  /BAR(SIMPLE)=MEAN(score) BY group
  /ERRORBAR=SE(2).

* One standard deviation.
GRAPH
  /BAR(SIMPLE)=MEAN(score) BY group
  /ERRORBAR=SD(1).

For a clustered bar chart with error bars, add the second grouping variable after BY:

GRAPH
  /BAR(SIMPLE)=MEAN(score) BY group BY gender
  /ERRORBAR=CI(95).

Save the syntax file alongside your data file so you can reproduce the chart exactly after adding new participants, instead of rebuilding it through the menus.

Customising the chart: make it publication-ready

The chart SPSS draws by default is serviceable, but a few minutes of tidying makes it ready for a thesis or journal:

  • Double-click the chart in the Output Viewer to open the Chart Editor.
  • Start the Y axis at zero. Bar charts must start at zero — truncating the axis exaggerates small differences. In the Chart Editor, double-click the Y axis, open the Scale tab, and set the minimum to 0.
  • Write clear axis titles. Double-click each axis title and replace the variable name with plain language, for example “Mean anxiety score” instead of “Mean score”. Add the measurement scale in brackets if it helps, such as “(0–40)”.
  • Clean up the colours. Double-click a bar to open Properties, then pick a single muted fill colour. For journal submission, greyscale or a single colour with different patterns reads better than bright default colours.
  • Check the error bar caps. The short horizontal ticks at the ends of the whiskers should be clearly visible — if they look cramped, widen the chart by dragging its corners in the Chart Editor.
  • Remove chart junk. Turn off the border and any background gridlines you do not need (select them and press Delete), and make sure the chart title — if you add one — states the result, not just the variables.

How to interpret the output

Reading a bar chart with error bars is straightforward once you know what each part means:

  • Bar height = the group mean. Taller bars mean higher average scores on your scale variable.
  • Whisker length = uncertainty. Short whiskers mean the mean is estimated precisely (large sample, low variability). Long whiskers mean the estimate is imprecise (small sample, high variability).
  • Comparing groups: if the confidence intervals of two groups do not overlap at all, the difference is very likely statistically significant. If they overlap a lot, the difference is probably not significant. If they overlap only slightly, you cannot tell from the chart alone — run the t-test or ANOVA and let the p-value decide.
  • Unequal whisker lengths across groups are a useful clue: the group with the longer whisker has more variable scores or fewer cases — one reason to check Levene’s test before a t-test or ANOVA.

Always report the numbers behind the picture. A chart is a summary, not a substitute for the means, standard deviations, and sample sizes in your text or in a table.

Reporting in APA style (7th ed.)

APA style treats a bar chart as a figure: it needs a figure number and a bold title above the chart, and a figure note below it stating what the error bars represent — readers should never have to guess.

Format the figure like this:

Figure 1
Mean Anxiety Scores by Treatment Group

[Bar chart with error bars]

Note. Error bars represent 95% confidence intervals. Higher scores indicate greater anxiety.

In the text, report the means with their confidence intervals and point the reader to the figure:

“Participants in the intervention group reported lower anxiety (M = 18.4, 95% CI [16.2, 20.6]) than participants in the control group (M = 24.9, 95% CI [22.7, 27.1]; see Figure 1).”

A few APA details to get right: italicise M for the mean; give confidence intervals in square brackets with the lower bound first; use the same number of decimal places throughout; and never use 3D effects, shadows, or decorative colours — APA figures are deliberately plain so the data does the talking.

Key Takeaways

  • Error bars turn a simple bar chart into an honest summary: bar height shows the mean, whiskers show how precise that mean is.
  • For most theses and journal articles, use 95% confidence intervals — they are the SPSS default and the easiest for readers to interpret.
  • Build the chart in Graphs > Chart Builder (Simple Bar, then tick Display error bars in Element Properties) or with the one-line GRAPH syntax shown above.
  • Start the Y axis at zero, label your axes in plain language, and say in the figure note exactly what the error bars represent.
  • Overlapping error bars do not automatically mean “no significant difference” — run the proper test and report the means, confidence intervals, and sample sizes alongside the chart.

Frequently asked questions

Which type of error bar should I choose — CI, standard error, or standard deviation?

Use a 95% confidence interval unless your supervisor or journal asks for something else. Confidence intervals answer the question readers actually have — where is the true mean likely to be? — while standard deviation bars describe the spread of raw scores. Whichever you choose, state it in the figure note.

Can I add error bars to a clustered bar chart in SPSS?

Yes. In the Chart Builder, choose Clustered Bar instead of Simple Bar, add your second grouping variable to the “Cluster on X” drop zone, and tick Display error bars in Element Properties exactly as before. In syntax, add the second variable after BY, as in the clustered example above.

Why is the “Display error bars” option greyed out?

This usually happens when the chart shows counts or percentages instead of a summary statistic such as the mean. Error bars need a statistic with a measure of variability, so set Bars Represent to Mean (or Median), not N of cases or % of cases. It can also happen if your Y-axis variable is Nominal — set it to Scale in Variable View and try again.

Do overlapping error bars mean there is no significant difference?

Not necessarily. Two 95% confidence intervals can overlap slightly and the difference between the groups can still be statistically significant, because the test of a difference uses the standard error of the difference, not the two separate intervals. Treat overlap as a rough guide only and run the appropriate t-test or ANOVA for the formal result.

How do I export the chart to Word?

Right-click the chart in the Output Viewer and choose Copy, then paste it into Word — or use File > Export to export the whole output as a Word document. For the sharpest result, export the chart as an image (right-click > Export Chart) and insert it at a fixed width, checking that the axis labels are still readable after resizing.

Need this done on your data? Get a free quote → /services/