DataComparisonPart 3 of 8, Choosing the Right ChartUpdated 1 October 2026
Bar Chart vs Histogram: What Is the Difference?
Bar charts and histograms both use bars, but they answer different questions. A bar chart compares separate categories, so its bars have gaps. A histogram shows how continuous measurements are spread across class intervals, so its bars touch.
Interactive
Explore it step by step
- Question it answers
Bar chart: Which category is biggest or smallest?
Histogram: How are the values spread out, and where do most of them fall?
- Type of data
Bar chart: Categories, such as bus or car, or discrete counts
Histogram: Continuous measurements, such as time or height, grouped into classes
- Horizontal axis
Bar chart: A label under each bar
Histogram: A number scale with class boundaries marked
- Gaps between bars
Bar chart: Yes: each bar is a separate category
Histogram: No: the bars touch because the number scale has no gaps
- Order of bars
Bar chart: Any order; often sorted largest to smallest
Histogram: Fixed: classes stay in number order
- Bar width
Bar chart: All the same; width means nothing
Histogram: Width is the class interval; unequal widths need frequency density

Use this infographic
Free under CC BY-NC 4.0, with credit to InfoGraphHub.
Same bars, different jobs
At first glance a bar chart and a histogram look almost identical: rectangles standing on a horizontal axis, with a frequency scale up the side. They are easy to mix up, and examiners know it. The difference lies in the data each one shows and the question each one answers.
- A bar chart answers 'which category is biggest?'. Its data is categorical, such as ways of travelling, or discrete counts.
- A histogram answers 'how are the measurements spread out?'. Its data is continuous, such as journey times, grouped into class intervals.
The two example charts on the infographic use the same 30 students (invented data), first counted by how they travel and then grouped by how long the journey takes.
Bar charts: separate categories
In the bar chart, each bar stands for a separate category: walk, bus, car, bicycle and other. Nothing lies 'between' walking and the bus, so the bars are drawn with gaps. All the bars are the same width, and the width means nothing; only the height (or length) matters.
Because categories have no built-in order, you can arrange the bars however helps the reader most. Sorting from largest to smallest makes the ranking obvious. In the example, 11 students walk, 8 take the bus, 6 come by car, 3 cycle and 2 travel another way, a total of 30.
Histograms: continuous data in classes
Journey time is continuous: a journey could take 7 minutes, 7.5 minutes or 7.52 minutes. You cannot draw a bar for every possible value, so the times are sorted into class intervals, here 5 minutes wide.
Class intervals are written with inequalities so that they do not overlap. The class 10 ≤ t < 15 includes a journey of exactly 10 minutes but not one of exactly 15 minutes, which belongs in the next class. Every value fits into exactly one class.
The horizontal axis is a continuous number line, so the bars touch: where one class ends, the next begins. The bars must stay in number order and cannot be re-sorted.
Reading the example histogram
The tallest bar is the modal class: 10 ≤ t < 15 minutes, with 9 students. Adding the first three bars, 3 + 7 + 9 = 19 of the 30 students take under 15 minutes. Only 3 + 2 = 5 students take 20 minutes or more, so the distribution has a short tail towards longer journeys.
Notice what a histogram cannot tell you: the exact time of any one journey. Grouping trades detail for a clear picture of the overall spread.
Unequal class widths and frequency density
Sometimes classes have different widths, such as 0 to 5 minutes but 30 to 50 minutes. If you used frequency for the height, the wide class would look far too important. Instead, the height is frequency density:
frequency density = frequency ÷ class width
The area of each bar then stands for the frequency. For example, if 4 students take between 30 and 50 minutes, the bar's height is 4 ÷ 20 = 0.2 students per minute, while the 10 to 15 minute class has a height of 9 ÷ 5 = 1.8.
Courses name these charts differently. Some UK courses call the equal-width version a frequency diagram and keep the name histogram for charts that use frequency density. Many other courses, including the US Common Core, call any touching-bar chart of grouped numerical data a histogram.
Frequently asked questions
Why do the bars on a histogram touch?
Because a histogram shows continuous data on a number line. Each class interval starts exactly where the previous one ends, so there is no gap between the bars.
Can a bar chart show numbers instead of categories?
Yes, if the numbers are discrete values such as the number of siblings or shoe sizes. Each value is treated as a separate category, so the bars still have gaps. Measured, continuous data needs grouping and a histogram.
What is frequency density?
It is frequency divided by class width. Histograms with unequal class widths use it for the height of each bar, so that the area of the bar, not its height, shows the frequency.
Is a histogram the same as a frequency diagram?
With equal class widths, they look the same. Some courses call the equal-width version a frequency diagram and use 'histogram' only when bar heights are frequency density; others call both histograms. Check which name your course uses.
Sources & methodology
Every fact is checked against the sources below. We write original explanations and draw original graphics; no figures are copied from textbooks. Spotted an error? See our corrections policy.
- Bar charts - KS3 Maths (BBC Bitesize, accessed 1 Oct 2026)
- Frequency diagrams and frequency polygons - KS3 Maths (BBC Bitesize, accessed 1 Oct 2026)
- Grouping continuous data (BBC Bitesize, accessed 1 Oct 2026)
- What is a histogram? (BBC Bitesize, accessed 1 Oct 2026)
- Common Core State Standards for Mathematics: Grade 6 Statistics & Probability (Common Core State Standards Initiative, accessed 1 Oct 2026)
- Bar charts (Office for National Statistics (ONS) Service Manual, accessed 1 Oct 2026)
Editorial review pending · Updated
Made by the InfoGraphHub editorial team (how we research and check: editorial and AI policy). First published 2 October 2026, last reviewed 1 October 2026. Found a mistake? Tell the editors.
For teachers: ages and curriculum fit
Ages 11–16 · Grades 6–10 (US) · Years 7–11 (UK) · Classes 6–10 (India)
Common Core State Standards © Copyright 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved. Names and codes are used only to describe curriculum fit; InfoGraphHub is not endorsed by these organisations.
Embed this on your site
Paste this HTML into your page. Keep the credit line: it is required by the CC BY-NC 4.0 license.
Related infographics
For teachers and parents: new InfoGraphHub resources by email
One short email when new free resources go live. For adults (18+) only. No spam, no tracking in emails, unsubscribe anytime.


