CharttoolboxChoose a chart

Charttoolbox practical guides

Histogram vs Bar Chart: What's the Difference?

Use a bar chart to compare named categories. Use a histogram to show how one numeric variable is distributed across intervals. The key difference is what each bar represents: a category in a bar chart, a numeric range in a histogram.

The histogram versus bar chart choice starts with what one row represents. Both charts contain rectangles, so they can look similar in a report. Their inputs and questions are different, however. If you feed category totals into a histogram, the software can produce a plausible picture of the wrong thing. This guide uses fictional retail data to make that choice concrete.

Histogram and bar chart: a practical comparison

The data structure determines which chart is appropriate.
QuestionBar chartHistogram
What does a bar represent?A named category, such as a sales region.A numeric interval, such as orders from 20 up to 30.
What input do I need?Category labels and a numeric measure, possibly several series.A column of individual numeric observations.
What does height mean?The category's value, such as revenue or count.In this tutorial, the number of observations in each equal-width interval.
Can I reorder the bars?Yes, if the categories have no required order.No. Intervals must retain their numeric order.
Why are there gaps?Gaps distinguish separate categories.Adjacent numeric intervals usually touch.
Typical useCompare products, regions, channels, or survey answers.Inspect the spread of order values, ages, scores, or response times.

Use a bar chart for category comparisons

Suppose a shop wants to compare the number of orders received through four channels. Each row is a channel, and the numeric value is an order count. Search, Email, Social, and Referral are distinct categories. Their names do not occupy positions along a continuous numeric scale. A bar chart makes it easy to identify the largest source and compare the remaining channels.

Channel,Orders
Search,42
Email,28
Social,18
Referral,12

These fictional counts sum to 100. The Search bar represents 42 orders, not 42 observations lying within an interval named Search. You can sort the categories from largest to smallest when ranking is the main task. If categories have a natural order, such as survey answers from strongly disagree to strongly agree, preserve that order instead of sorting by height.

Open the bar chart generator and paste the table, or download the category sample CSV. Select Channel as the category and Orders as the value. Use horizontal bars for longer names. The tool supports negative values and grouped numeric series, but a count of orders would normally be non-negative. State the reporting period in the title or note when working with real data.

Use a histogram for a numeric distribution

Now ask a different question: how large were individual orders? Each row should describe one order, not a channel total. A histogram groups those observations into numeric intervals and counts how many fall in each interval. It can reveal a concentration of small orders, a long tail of large orders, or more than one cluster. Those patterns are invisible in the channel totals above.

Order value
12
18
22
24
29
33
35
38
44
47
52
58

For a hand-worked example, choose equal-width intervals 10–<20, 20–<30, 30–<40, 40–<50, and 50–60. Their counts are 2, 3, 3, 2, and 2, totaling all 12 orders. Most intervals include their lower boundary and exclude their upper boundary; here the final interval includes 60. A consistent boundary rule prevents an order on a boundary from being counted twice.

Fictional order-value histogramFive equal-width intervals have counts 2, 3, 3, 2, and 2. All twelve fictional orders are included.10–<2020–<3030–<4040–<5050–60Order value (fictional currency units)0123Order count
Illustrative bins chosen for this explanation. Charttoolbox calculates its own interval boundaries from your data range and chosen bin count, so its default picture will differ.

To explore the raw observations, download the order-value sample CSV and open the histogram generator. Select Order value, then compare several bin counts. Charttoolbox uses equal-width bins and displays observation counts. It does not accept this manually counted frequency table as weighted histogram input. Use the original observations when you want the tool to calculate the bins.

Why bin choices change the histogram

Too few bins can hide detail. Too many bins can make a small dataset look erratic, with many empty intervals and isolated bars. Neither view changes the underlying observations; it changes how they are grouped. Start with an automatic choice, then inspect nearby bin counts and see which patterns remain. Avoid selecting a bin count solely because it supports the story you hoped to tell.

A histogram with only 12 observations is useful for demonstrating the workflow, but it offers limited evidence about a wider population. Do not declare a distribution normal, multimodal, or representative from this small fictional example. In real reporting, identify the sample size, the measurement unit, and how observations were collected. Unusual values might be real events or data-entry mistakes; check the source before removing them.

Equal widths are important when interpreting height as frequency in this example. Some statistical software supports unequal-width bins and uses density so that area represents frequency or probability. That is a different presentation. Charttoolbox's histogram uses equal-width intervals and counts, so its Y axis should not be described as probability density.

Common mistakes when choosing between the two

Sending summarized counts to the histogram tool

If your table says Search 42 and Email 28, a histogram of the values 42 and 28 describes the distribution of two channel totals. It does not reconstruct the underlying orders. You have lost the individual measurements needed to answer the order-value question. Use a bar chart for the summarized table, or return to the original dataset to obtain one measurement per row.

Using the appearance of the bars as the definition

Touching bars are a useful visual convention, but removing gaps from a category chart does not turn it into a histogram. Read the axis labels and ask what each rectangle counts. Likewise, numbered labels do not automatically imply continuous measurements: customer IDs and postal codes can be identifiers rather than meaningful numeric quantities.

Confusing a histogram with a time series

A histogram of daily revenue shows which revenue ranges occurred most often; it discards the order of the days. A line graph preserves that sequence and helps show change over time. Use both when both questions matter, and make their titles different so readers understand why the same source data appears in two forms.

Histogram or bar chart: a quick decision

Read one row aloud. “This region had this revenue” points to a category comparison. “This order had this value” points to a distribution if you want to summarize many such orders. If your rows contain several raw measurements, first select the variable you want to inspect. A histogram displays one variable's distribution; a scatter plot compares two numeric variables observation by observation.

Before sharing the result, verify that all intended rows are included, axes state the correct units, and totals or counts match the source. Keep the fictional samples separate from actual business data. Export an SVG for editing or a PNG for a report, and preserve the original CSV so a colleague can reproduce the chart.

Make the chart that matches your data

Bring category totals to the bar tool, or raw measurements to the histogram tool. Both process spreadsheet contents in your browser.

Create a bar chart →Create a histogram →

Working in Excel first? Read how to make a bar graph in Excel, or browse all chart tools.