Skip to content
Hands-on Mentor
ENTR
Back to blog

How to read a histogram: shape, center and spread in 4 steps

To read a histogram, check the axes, the shape, the center and the spread. Learn what bin width changes and how histograms differ from bar charts.

4 min read

To read a histogram, look at four things in order: what the axes measure, the overall shape, where the center is, and how wide the spread is. A histogram groups numbers into ranges (bins) and shows how many values fall into each range with a bar. Tall bars mean many values in that range, short bars mean few.

What does a histogram show?

A histogram shows the distribution of one numeric variable: where values are common and where they are rare. The horizontal axis is the variable, cut into equal-width bins. The vertical axis is the count (or share) of values in each bin.

Here is a text histogram of 500 support-call durations, in minutes, from Bazaar, a fictional online store. Each # is 10 calls.

import pandas as pd

url = "call_durations.csv"
minutes = pd.read_csv(url)["duration_min"]
counts = pd.cut(minutes, bins=range(0, 13, 2)).value_counts().sort_index()
for interval, n in counts.items():
    print(f"{int(interval.left):>2}-{int(interval.right):<2} {'#' * (n // 10)} {n}")
 0-2   3
 2-4  ### 33
 4-6  #################### 200
 6-8  ##################### 210
 8-10 ##### 52
10-12  2

How do you read a histogram step by step?

1. Check the axes. What is measured, and in which unit? Here it is call length in minutes, and the bars count calls.

2. Find the shape. Look for one peak or several, and whether one side has a longer tail. Here there is one peak at 4 to 8 minutes and the two sides look similar, so the shape is roughly symmetric.

3. Find the center. The tallest bars are at 4-6 and 6-8, so a typical call is about 6 minutes. In this file the mean is 6.15 and the median is 6.1, almost the same, which fits a symmetric shape.

4. Judge the spread. Almost all calls (462 of 500) fall between 4 and 10 minutes. Only 38 calls are shorter than 4 minutes or longer than 10. The data is tightly packed.

What shapes should you know?

ShapeWhat you seeTypical exampleMean vs median
SymmetricBars mirror each side of one peakCall durations aboveAbout equal
Right-skewedLong tail to the rightOrder amounts, incomesMean is higher
Left-skewedLong tail to the leftExam scores with an easy testMean is lower
Two peaksTwo separate humpsMixed groups, such as short and long ordersCenter is misleading

Two peaks are a warning: the average may describe nobody. Split the data into groups and draw one histogram for each.

How does bin width change the picture?

Bins are your choice, and the choice changes the story. This code counts the same 500 calls with 3, 8 and 40 bins:

import numpy as np

for bins in [3, 8, 40]:
    counts, edges = np.histogram(minutes, bins=bins)
    print(bins, counts.tolist()[:12])
3 [47, 352, 101]
8 [3, 11, 60, 135, 153, 88, 41, 9]
40 [1, 0, 1, 1, 0, 1, 3, 2, 3, 2, 5, 14]

With 3 bins you only see one big hump. With 8 bins the bell shape is clear. With 40 bins the bars are thin and jumpy (the output shows the first 12 only), and random noise hides the shape. If a shape appears or disappears when you change the bin width, do not trust it. Try a few widths.

What is the difference between a histogram and a bar chart?

A bar chart compares categories (such as devices or product groups), so bars have gaps and can be in any order. A histogram shows numeric ranges in a fixed order, so bars touch. The order of the bars carries meaning, and you cannot reorder them.

What are common mistakes?

  • Reading the height as the value. The height is a count, not the value itself.
  • Unequal bin widths. If bins differ in width, bar heights mislead. Use equal widths.
  • Cutting the axis. Always start the count axis at 0.
  • Judging from one bin choice. Check at least two bin widths before you decide on a shape.

What to read next

  • Practice with the lesson [Histogram and distribution](/learn/statistics-data-analysis/histogram-distribution), or see the [Statistics and Data Analysis course](/courses/statistics-data-analysis).
  • Learn the three centers in [mean, median and mode](/blog/mean-median-mode).
  • See how spread is measured in [standard deviation explained](/blog/standard-deviation-explained).
  • #statistics
  • #histogram
  • #data visualization
  • #distribution
All posts