Histograms

GUIDE

How a histogram shows the distribution of one variable, why it is not a bar chart, and how to read its shape.

A histogram answers a question no other everyday chart handles well: how is one set of numbers spread out? Take a single continuous measurement collected many times over — and a histogram shows you where those values cluster, how wide they range, and whether they pile up at one end. It does this by chopping the number line into equal slices called bins and counting how many values fall into each one.

value (binned)
Bars touch because each one covers a range of values; height is the count in that range.

How a histogram works

Start with one column of numbers — many measurements of the same thing. Divide the full range of those numbers into a series of equal-width intervals (the bins), for example 0–10, 10–20, 20–30, and so on. Then count how many of your values land in each bin and draw a bar whose height is that count. Bins that contain many values produce tall bars; sparse bins produce short ones. The outline of the bars traces the distribution of the data.

Because the bins are consecutive slices of one continuous scale, the bars sit directly against each other with no gaps. That touching outline is not decoration — it signals that the horizontal axis is an unbroken number line, where the space between bars would itself be meaningful.

The crucial difference from a bar chart

Histograms and bar charts look similar, but they answer completely different questions, and confusing them is the most common mistake people make.

bar: gaps histogram: no gaps
Bar chart bars are separate categories with gaps; histogram bars are adjacent ranges that touch.
Quick test

Ask whether the bars could be shuffled into a different order without changing the message. If yes, it is a bar chart. If shuffling would scramble the meaning because the axis is a number line, it is a histogram.

Choosing the bin width

Bins are the one setting that changes how a histogram looks, and getting them wrong can hide or invent patterns. There is no single correct number — the goal is a clear, stable shape.

One more rule: keep every bin the same width. Unequal bins make the bar heights misleading, because a wider bin naturally collects more values and looks taller for the wrong reason.

Reading the shape

Once the bins are sensible, the outline of the bars tells you most of what you need to know:

Also read the spread — a narrow, tall cluster means the values are consistent, while a low, wide spread means they vary a lot — and watch for isolated bars far out on the axis, which mark unusual values worth investigating.

When not to use a histogram

Watch out for

A histogram needs one continuous numeric variable measured many times. Do not use one to compare named categories — that is a bar chart. Do not use one for a value tracked over time — that is a line chart. And be wary of tiny datasets: with only a dozen values there is no reliable shape to read, and the picture will change wildly with the bin width.

Make a histogram

chart.biz does not yet have a dedicated histogram tool. The closest option is the bar chart maker — note that it draws categorical bars with gaps, so if you use it for binned data you would label each bin yourself and remember the bars represent ranges, not categories. For the wider picture, see the complete guide to chart types.