Skip to content
LoveToCalc

Bar graphs

Bars compare categories. Thin vertical lines show how often each value occurs.

What the chart shows

A bar graph has one bar for each category, and the length of the bar is the category’s count or value, read against a value axis. The categories stand along the other axis. UNECE’s guide to presenting statistics describes the bar chart as the simplest chart to draw and read, used to compare frequencies or values for different categories or groups. The bars are drawn equally wide: the length carries the value, not the width.

0123456789On footBikeBusCar
How do you get to school? 24 pupils, one answer each.
The data behind the figure
CategoryCount
On foot9
Bike7
Bus5
Car3

The bars can stand up or lie down. A horizontal bar graph is the same chart turned a quarter turn, and it leaves room for long category names. With two bars for each category, for example one for boys and one for girls, two groups are compared in one chart.

Vertical line charts: when the axis carries numbers

Sometimes what stands along the horizontal axis is not categories but numbers: number of siblings, number of cats, goals in a match. Each value then gets a thin vertical line whose height is how many gave that value. The GCSE mathematics specification of AQA, an English exam board, names this chart: bar charts, pie charts and pictograms are for categorical data, and vertical line charts for ungrouped discrete numerical data.

024681001234
How many siblings do you have? 25 pupils.
The data behind the figure
CategoryCount
04
110
28
30
43

The difference from a bar graph is the axis. In a vertical line chart the horizontal axis is a number line: the values have an order and a spacing, and a value nobody gave still has its place, with height zero. The categories of a bar graph can stand in any order.

How to read it

When it fits and when it does not

A bar graph fits when counts or values are compared across categories or groups, which is the use UNECE’s guide gives it. It also fits when each person could give several answers: each bar then shows the share of the people asked who chose that answer, and the shares may add up to more than 100%. That is a case where a pie chart does not work (see pie charts).

It fits less well when:

Common mistakes

Going deeper: bar graphs and histograms

A histogram looks like a bar graph, and the two are often confused. The difference lies in what stands on the horizontal axis.

Bar graph Histogram
Horizontal axis categories a number line, divided into classes
Order free, if the categories have no order given by the numbers
Gaps between the bars none: the classes sit edge to edge
The count is shown by the bar’s length the bar’s area, and its height when the classes are equally wide

The last row matters most. When the classes of a histogram have different widths, the area shows the count, and the height is the count per unit on the axis. The article on histograms explains it.

A vertical line chart sits between the two: its horizontal axis is a number line as in a histogram, but each line stands for a single value, as a bar stands for one category. The vertical line chart therefore suits a few possible whole numbers, and the histogram suits measurements that can take many different values.

See also

Exercises and tools

Sources

Updated November 7, 2026