Histogram

Definitionnoun

What is a histogram in math?

A histogram uses bars to show how numerical data are grouped into intervals. The data are split into equal-width intervals, called bins, and each bar’s height is the count of values in that interval. The bars touch, because the intervals are continuous, which is what distinguishes a histogram from a bar graph.

In Spanish
histograma
Also called
frequency histogram, histogram chart
How to say it
HIS-tuh-gram
Grade level
6-8
Grade 6Grade 7Grade 8Algebra 1CCSS 6.SP.B.4SATACT

Histogram in a picture

A histogram compared with a bar graphLeft: a histogram of minutes of daily exercise for 20 students, with touching bars over the intervals 0 to 10, 10 to 20, 20 to 30, 30 to 40 and 40 to 50, of heights 2, 5, 7, 4 and 2. Right: a bar graph of favorite fruit with separated bars for apple 6, pear 4 and plum 3.Histogram: bars touchstudents2462574201020304050minutes of exercise per dayBar graph: gapsapplepearplumfavorite fruitHistogram: numbers grouped in equal intervals.Bar graph: separate categories.
The histogram’s bars touch because 10–20 runs straight into 20–30 on the number line. The fruit bars have gaps because apple, pear and plum are separate categories.

Formal definition and notation

A histogram displays the distribution of one numerical variable. The number line is divided into adjacent intervals (bins or classes) of equal width, and over each interval a bar is drawn whose height equals the frequency, the number of data values in that interval (or the relative frequency, that count divided by the total). Each value belongs to exactly one bin; a common convention includes the left endpoint and excludes the right, so 30 goes in 30–40, not 20–30. Bars are contiguous, and an interval with no data has a gap of height 0.

Symbol Read it as Meaning
20–30 twenty to thirty a bin from 20 up to (but usually not including) 30; bins of a histogram all have the same width
frequency frequency how many data values fall in a bin; it is the height of the bar
relative frequency relative frequency frequency divided by the total count, such as 720 = 35%

Key facts

  • A histogram is for numerical data (heights, times, scores). A bar graph is for categories (favorite fruit, eye color).
  • The bars touch because the bins cover the number line with no gaps. A space between bars means a bin with a count of 0.
  • You cannot read individual values from a histogram, only how many values fall in each interval.
  • The shape shows the distribution: symmetric (a single hump in the middle), skewed right (a long tail toward large values), skewed left, or with more than one peak. Gaps and outliers stand out too.
  • Changing the bin width can change how the histogram looks, so compare histograms only when they use the same bins.

How to build a histogram

How to build a histogram
bin width ≈ max − minnumber of bins, rounded to a friendly number
max, min
the largest and smallest data values
number of bins
often 5 to 15; more data allows more bins
frequency
count the values in each bin, then draw touching bars that high

For test scores from 62 to 97, 97 − 624 ≈ 9, so use a width of 10: 60–70, 70–80, 80–90, 90–100. Start the first bin at or below the smallest value.

Try it: make a histogram

Interactive

Edit the test scores or press Add a value. Each bar counts the scores in a bin of width 10 (the left edge is included). Switch to Dot plot to see the individual values behind the bars, then add an outlier.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Histogram examples, step by step

Example 1: Read a histogram

Warm-up

A histogram of pages read has bars 0–10: 3 students, 10–20: 8 students, 20–30: 6 students, 30–40: 3 students. How many students are shown, and which interval is most common?

  1. Each bar’s height is a count of students, so add the heights: 3 + 8 + 6 + 3.
  2. 3 + 8 = 11, 11 + 6 = 17, 17 + 3 = 20.
  3. The tallest bar is 10–20, with 8 students.

Answer: 20 students are shown, and 10–20 pages is the most common interval.

Example 2: Build the frequency table

Core

Twelve people’s ages are 23, 35, 41, 28, 19, 33, 37, 45, 29, 31, 38 and 26. Make the counts for a histogram with bins 10–19, 20–29, 30–39 and 40–49.

  1. 10–19: only 19, so the count is 1.
  2. 20–29: 23, 28, 29 and 26, a count of 4.
  3. 30–39: 35, 33, 37, 31 and 38, a count of 5.
  4. 40–49: 41 and 45, a count of 2. Check: 1 + 4 + 5 + 2 = 12 people.

Answer: The bar heights are 1, 4, 5 and 2.

Example 3: A percent from a histogram

Test-style

A histogram shows the commute times of 40 workers: 0–15 minutes: 6, 15–30: 14, 30–45: 12, 45–60: 8. What percent of the workers commute 30 minutes or more?

  1. “30 minutes or more” covers the bins 30–45 and 45–60 (30 is the left edge of 30–45).
  2. Add those bars: 12 + 8 = 20 workers.
  3. Divide by the total: 2040 = 0.5.
  4. Trap: the histogram cannot tell you how many workers commute exactly 30 minutes, only how many fall in each interval.

Answer: 50% of the workers commute 30 minutes or more.

Common mistakes

✗ MistakeUsing a histogram for the number of students who chose each sport.
✓ InsteadUse a bar graph, with a separate bar for each sport and gaps between them.

A histogram is for numerical intervals, while a bar graph compares categories. Sports have no order on a number line, so the bars should not touch.

✗ MistakeThe 20–30 bar is 7 high, so the data value is 7.
✓ InsteadThe bar means 7 values lie between 20 and 30.

Bar height is a count (frequency), not a data value. The data values are on the horizontal axis, grouped into intervals.

✗ MistakePutting the value 30 in both the 20–30 bin and the 30–40 bin.
✓ InsteadPut 30 in the 30–40 bin only (left edge included).

Each value goes in exactly one bin, or the bar heights add up to more than the number of data values.

✗ MistakeReading the mean as the middle of the tallest bar.
✓ InsteadThe tallest bar is the most common interval. The mean needs the actual values (or an estimate from bin midpoints).

In a skewed histogram the mean and median sit away from the peak, toward the long tail.

Not to be confused with

Histogramvs.Bar Graph

A bar graph compares categories, so its bars are separate and can be in any order. A histogram groups numbers into intervals in number-line order, so its bars touch.

Histogramvs.Line Plot

A line plot (dot plot) shows every single value as a dot or X above a number line. A histogram only shows how many values fall in each interval, so individual values disappear.

Histogramvs.Box Plot

A box plot summarizes data with five numbers (minimum, quartiles, median, maximum). A histogram shows the full shape, including peaks and gaps that a box plot hides.

Quick check: 3 questions

Question 1 of 3

Which data set is best shown with a histogram?

Show answer and explanation

Answer: B. Heights are numerical and can be grouped into intervals such as 140–150 cm. Favorite colors and grade levels are categories (bar graph), and daily temperatures over time fit a line graph.

Question 2 of 3

A histogram of 25 test scores has bars 50–59: 4, 60–69: 7, 70–79: 9 and 80–89: 5. How many scores are 70 or higher?

Show answer and explanation

Answer: D. Add the 70–79 and 80–89 bars: 9 + 5 = 14. 9 counts only one bar, 16 adds the 60–69 and 70–79 bars, and 25 is everyone.

Question 3 of 3

For the same histogram (4, 7, 9, 5 scores), which interval contains the median?

Show answer and explanation

Answer: C. With 25 scores the median is the 13th. Counting up: 4 scores reach 59, 11 reach 69 and 20 reach 79, so the 13th is in 70–79. Choice B forgets that the first 4 scores come before it.

Histogram: frequently asked questions

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

A histogram shows numerical data grouped into equal intervals, in number-line order, with touching bars. A bar graph shows categories, such as favorite sports, with separate bars that can go in any order. Ask yourself: could the labels on the horizontal axis go on a number line? If yes, use a histogram.

How many bars should a histogram have?

There is no single rule. OpenStax notes that many histograms use five to 15 bars, and one guideline is to take the square root of the number of data values: about 6 bars for 36 values. Too few bars hide the shape; too many leave each bar with just one or two values. Use the same bin width for every bar.

What does the shape of a histogram tell you?

The shape describes the distribution. One hump in the middle with matching sides is symmetric, and the mean and median are close. A long tail to the right is skewed right, which pulls the mean above the median, as with incomes. Two humps can mean two groups are mixed together. Isolated bars far from the rest point to outliers.

Practice and tools

Sources

  1. Common Core State Standards, Grade 6 Statistics and Probability (6.SP.B.4)
  2. OpenStax, Introductory Statistics 2e, 2.2 Histograms, Frequency Polygons, and Time Series Graphs

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 6.SP.B.4

Cite this entry

Effortless Math Team. “Histogram.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/histogram/

Flashcard

TermHistogramtouching bars over number intervals
DefinitionA graph of numerical data grouped into equal intervals; each bar’s height is the count in that interval. Bars touch, unlike a bar graph.
Study the full deck

Browse all terms in the Math Dictionary · More statistics terms · Random term