Bar graph vs histogram: what's the difference?
By the Lightchart team · Updated
The short answer
A bar graph compares values across separate categories, like sales by product, so its bars have gaps and can be reordered. A histogram shows how one set of numbers is distributed across ranges called bins, like order wait times, so its bars touch and always stay in numerical order.
Bar graphs and histograms look almost identical from across a meeting room: rectangles of different heights on a baseline. They answer completely different questions, though, and mixing them up is one of the most common chart mistakes in reports and statistics homework alike. Here’s the short version, then the detail.
| Bar graph | Histogram | |
|---|---|---|
| What it shows | A value for each category | How one numeric variable is distributed |
| Data on the x-axis | Categories (products, regions, channels) | Number ranges, called bins (0–2 min, 2–4 min…) |
| Gaps between bars | Yes, because categories are separate | No, because the ranges are continuous |
| Bar order | Any order; often sorted largest first | Fixed, from lowest range to highest |
| Bar width | Has no meaning | Equals the width of the range |
| Typical question | Which product sold the most? | How long do most customers wait? |
What a bar graph shows
A bar graph (also called a bar chart or bar diagram) uses the length of each bar to compare a value across separate categories. Northwind Coffee, a fictional chain we’ll use throughout, might chart lattes, mochas, teas and juices sold last week: 4,120 lattes, 3,050 mochas, 2,010 teas and 1,140 juices.
Because each drink is its own category, the bars are separate, and you can put them in whatever order helps the reader. Sorting from largest to smallest is usually the right call, since the ranking becomes obvious. You can also flip the bars sideways; our guide to horizontal vs vertical bar charts covers when that helps.
Bar graphs also stretch to more than one series. A grouped or stacked bar chart compares this week with last week, or splits each bar into parts. The core idea stays the same: one bar per category, one value per bar.
What a histogram shows
A histogram takes one list of numbers, for example the wait time of every order Northwind served on Saturday, and counts how many fall into each range. Those ranges are called bins. With 2-minute bins you might find 36 orders under 2 minutes, 88 between 2 and 4, 150 between 4 and 6, and so on.
The result is the shape of the data. Is it bunched around a typical value? Skewed, with a long tail of slow orders? Does it have two peaks, a hint that two different things are going on, like a busy lunch rush and a quiet afternoon? A histogram answers those questions. A bar graph can’t.
The bars touch because the ranges are continuous: 4 minutes is where one bin ends and the next begins. And the order is fixed. Sorting a histogram’s bars from tallest to shortest is a reliable way to turn a distribution into abstract art.
How to tell them apart at a glance
- Look at the x-axis labels. Words (Latte, North, Email) mean a bar graph. Numbers or ranges (0, 2, 4, 6) mean a histogram.
- Look for gaps. Separated bars mean categories. Touching bars mean continuous ranges.
- Ask whether you could reorder the bars. If reordering would still make sense, it’s a bar graph.
- Count the variables. A bar graph pairs a category with a value. A histogram summarizes a single numeric variable.
When to use a bar graph vs a histogram
Use a bar graph when:
- You are comparing a measure across named groups: revenue by region, signups by channel, tickets by team.
- You want to rank things or highlight a single standout category.
- Your data is already summarized, with one number per category.
Use a histogram when:
- You have many individual measurements of the same thing: order values, response times, ages, test scores.
- You want to see the typical range, the spread or outliers, not a ranking.
- You are checking an assumption, like whether delivery times are roughly symmetrical or have a long tail.
If you’re unsure, ask what the x-axis would hold. Names point to a bar graph. Measured numbers that need grouping point to a histogram.
Common mistakes
- Sorting histogram bins by height. It destroys the distribution. Bins always run low to high.
- Adding gaps to a histogram. Gaps suggest separate categories and hide the continuity of the data.
- Too few or too many bins. Three bins hide the shape, and 60 bins turn it into noise. Try a few widths before you settle on one.
- Comparing histograms with different bin widths. The shapes stop being comparable. Use the same bins for every group.
- Truncating a bar graph’s axis. A bar’s length is its value, so the axis should start at zero.
How to make a bar graph (and a histogram)
For a bar graph, paste your categories and values into the Lightchart bar chart maker:
- Paste the data from Excel or Google Sheets, or upload a CSV.
- Choose vertical or horizontal bars, then sort largest first.
- Highlight the bar that matters, turn on value labels, and export a 2× PNG for your deck.

Whichever chart you build, give it a title that states the takeaway, like “Most orders wait 4–6 minutes”, rather than a label like “Wait times”. The chart is the evidence. The title is the point.
Frequently asked questions
Can a histogram have gaps between the bars?
Only when a bin is empty. Histogram bars touch because the ranges are continuous, so a gap means no values fell in that range. It is never there for spacing.
Is a histogram a type of bar graph?
It looks like one, and some textbooks call it a special kind of bar chart. But a histogram plots the distribution of a single numeric variable across ranges, while a bar graph compares separate categories.
What is the difference between a histogram and a bar diagram?
A bar diagram is another name for a bar graph. It compares categories with separated bars, while a histogram groups numbers into touching bins to show how they are spread out.
How many bins should a histogram have?
Somewhere between 5 and 20 suits most business data. A common starting point is Sturges' rule: roughly 1 + log2(n) bins for n values, so about 11 bins for 1,000 orders. Then adjust until the shape is clear.
Can I make a histogram in Lightchart?
Not yet. Lightchart doesn't bin raw values for you. Excel and Google Sheets both have a built-in histogram chart, and if your data is already grouped into ranges, a Lightchart bar chart with the bar gap set to zero gets you close.
Make charts you’re actually proud to share.
Try the bar chart maker: paste your data, get a designed chart, export a PNG.
No credit card. Free while in beta.