Bar Chart vs Histogram

COMPARE

They both use rectangular bars, so they get confused constantly — but they answer completely different questions.

At a glance a histogram looks like a bar chart with the gaps removed, and that resemblance causes endless confusion. The truth is they are built for opposite purposes. A bar chart compares separate categories — things you could list in any order. A histogram shows the distribution of one continuous variable — how often values fall into each range. Get the distinction right and the chart almost designs itself.

Quick answer

Use a bar chart when you are comparing distinct categories (regions, products, survey options) — the bars have gaps and you can reorder them. Use a histogram when you have many measurements of one number (ages, prices, response times) and want to see their distribution — the bars touch and the order is fixed.

The core difference

A bar chart plots a category on one axis and a measured value on the other. Each bar is independent: "North = 40, South = 25, East = 30." There is no inherent sequence, so you are free to sort the bars alphabetically or from largest to smallest. Because the categories are discrete, the bars are drawn with gaps between them to signal that each one stands alone.

A histogram is different in kind. You start with one continuous variable — say, hundreds of individual ages — and slice the number line into equal ranges called bins (0–9, 10–19, 20–29, and so on). The height of each bar is the count of values that fall in that bin. Because the bins are consecutive stretches of the same number line, the bars touch with no gaps, and their order is fixed: you cannot swap "20–29" with "50–59" without breaking the axis. A histogram answers "where do the values cluster, and how spread out are they?" — a question a bar chart simply cannot pose.

Bar: categories (gaps) Histogram: bins (touch)
Left: gaps mark independent categories. Right: touching bins form the shape of a distribution along a number line.

Side-by-side comparison

 Bar chartHistogram
ShowsComparison of categoriesDistribution of one variable
X-axisDiscrete categoriesContinuous number line (bins)
Bar heightA measured valueCount (frequency) in each bin
Bars touch?No — gaps between barsYes — bins are adjacent
Reorderable?Yes — any order worksNo — order is fixed by value
AnswersWhich category is biggest?Where do values cluster?
ExampleSales by regionDistribution of order sizes

When the bar chart wins

Reach for a bar chart whenever your horizontal axis is made of labels rather than numbers:

When the histogram wins

Reach for a histogram whenever you have a pile of measurements of a single quantity and want to understand its shape:

The most common mistake

Treating a histogram as if you can reorder its bars by height, or adding gaps between them to "tidy it up." Both break the chart's meaning. The bins represent consecutive ranges of a number line, so the order and the touching edges are not decoration — they are the information. Conversely, removing the gaps from a bar chart wrongly implies its categories are a continuous scale.

The decision rule

Ask one question: what is on the horizontal axis? If it is a set of labels you could shuffle, you want a bar chart. If it is a numeric range carved into consecutive bins, you want a histogram. A quicker tell in the wild: gaps between the bars mean bar chart; bars that touch mean histogram.

Build either one

Both run in your browser and export PNG or SVG with no signup. Paste your raw numbers into the histogram tool to see the distribution, or list your categories in the bar chart maker to compare them.