Histogram guide

Histogram vs Bar Chart

Histograms and bar charts both use bars, but they are not interchangeable. A histogram shows numeric intervals. A bar chart compares categories.

Choosing the right chart type helps readers understand whether they are looking at a distribution or a category comparison.

Use histograms for numeric distributions

A histogram is appropriate for continuous numeric values such as measurements, scores, ages, response times, income, or sales amounts.

Use bar charts for categories

A bar chart is appropriate for named groups such as products, departments, countries, survey choices, or marketing channels.

FAQ

Why do histogram bars usually touch?

Histogram bars represent adjacent numeric intervals with no gaps between them. Touching bars reinforce that the x-axis is a continuous scale — leaving gaps would imply that values in that range cannot occur, which is rarely true for measured data.

Can a histogram show categories?

No. Histograms are designed for continuous numeric data divided into intervals. For categorical data such as product names, regions, or survey responses, use a bar chart instead, where each bar represents a named group rather than a numeric range.

Which chart should I use for exam scores?

Use a histogram when you want to see the distribution of scores — the shape, spread, center, and any clusters or gaps. Use a bar chart when comparing a summary value such as average score or pass rate across named groups like class sections or grade levels.

Make a histogram from your data

Paste numbers, upload a CSV or TXT file, choose bins, customize labels and styles, then export SVG, PDF, PNG, CSV, or JSON from the main tool.

Go to the histogram maker