Histogram vs Bar Chart: What Is the Difference?

They look similar and are constantly confused, but they answer completely different questions. Here is the practical difference, plus how to tell which one your data needs.

The short answer

A bar chart compares values across discrete categories — countries, products, survey answers. The order of the bars is arbitrary and you can sort them however you like.

A histogram shows how a single numeric variable is distributed. The x-axis is a number line split into bins, the bars touch, and the order is fixed because it is numeric.

How to tell which one you need

Look at your data shape. Two columns where the first is text and the second is a number is a bar chart: "Apple, 394".

One column of raw numbers with no labels is a histogram: 68, 72, 74, 75, 77. Each row is one observation, not one category.

If you have already counted the frequencies yourself — "60-70: 3, 70-80: 8" — you have summarised data, and a bar chart with gaps removed is the honest way to draw it.

Bin width matters more than anything else

A histogram’s shape can change dramatically with bin count. Too few bins hides structure; too many turns the distribution into noise.

A good default is Sturges’ rule: bins = ceil(log2(n) + 1). FastChart applies it automatically, then lets you drag a slider to see how sensitive the shape is.

Common mistakes

Leaving gaps between histogram bars, which implies the intervals are unrelated categories.

Sorting histogram bars by height — this destroys the number line and the distribution becomes meaningless.

Using unequal bin widths without adjusting bar height for density, which visually exaggerates the wide bins.

Try it with this data

One column of raw scores. Paste over it with your own numbers to see the distribution instantly.

Chart type
Your data20 rows · 1 cols
Single column detected
Live previewUpdates as you type · nothing leaves your browser
Histogram — 20 data points.
Export

Frequently asked

Can a histogram have gaps between bars?
Only if a bin genuinely contains zero observations. Otherwise the bars should touch, because the x-axis is a continuous number line.
Is a frequency distribution the same as a histogram?
A frequency distribution is the table of counts per interval; the histogram is its visual form.
Which is better for survey results?
Multiple-choice answers are categories, so use a bar chart. Numeric answers such as age or income are continuous, so use a histogram.

Tools

Build the chart now