Not sure which lesson to do first? Find your level and get a plan →

Math · Statistics & Probability · Grade 6-8

Histogram

A histogram is a bar chart of a frequency distribution: numeric data sorted into consecutive equal-width bins, with bar height showing the count in each.


Quick Answer

A histogram is a bar chart of a frequency distribution: numeric data sorted into consecutive equal-width bins, with bar height showing the count in each. Use it when you have many values of one measurement, such as test scores, heights or travel times, and want to see the shape of the data: where values bunch up, how far they spread, whether one side has a long tail, and whether there are two peaks. The bars touch because the bins cover a number line with no gaps.

Why This Matters

A list of 200 commute times tells you almost nothing at a glance; a histogram shows in a second that most take 20 to 30 minutes and a long tail stretches past an hour. The shape decides what to do next: a symmetric single hump suits the mean and standard deviation, a long tail calls for the median, and two humps warn that two groups are mixed together.

Intuitive Explanation

A class of 25 records how many minutes each student takes to get to school. Make bins 10 minutes wide: 0 to under 10, 10 to under 20, and so on up to 50. Drop each time into its bin, like sorting coins into slots, and draw a bar as tall as each bin's count. If the counts are 3, 9, 7, 4 and 2, the tallest bar is the 10-20 minute bin and the bars shrink to the right: most students live close, a few live far.

The bars touch because the bins are consecutive pieces of one number line; every possible time falls in exactly one bin. Bin width changes the picture. With 2-minute bins, 25 values would be spread thin and spiky; with a single 50-minute bin, everything becomes one block. Choose a width that shows the shape, and keep every bin the same width so the heights can be compared fairly.

A bar graph also uses bars, but for categories such as favorite sport. Its bars stand apart, and you could reorder them, soccer before or after tennis, without changing the meaning. Histogram bars cannot be shuffled, because each one stands for a range of numbers in order. And the tallest bar shows the most common range, not the mean: using each bin's middle value, the commute data's mean is about 55525=22.2 minutes, outside the tallest bin, because the long trips pull it up.

Think of it like this. A histogram is a row of sorting bins under a chute: pour in the data and each value drops into the slot for its range, so the heights of the piles show the data's shape. Change the slot width and the piles change shape, even though the data itself has not changed.

Core idea. A histogram groups numeric data into equal-width bins and draws a bar for how many values fall in each.


When to Use

Use a histogram when you have one numerical variable with many values and the question asks about its shape, where the values cluster, how spread out they are, or whether there are gaps, a long tail or two peaks. For categories like favorite fruit, use a bar graph. For a small data set where every value should stay visible, a dot plot works better. To compare the medians and spreads of several groups side by side, use box plots.

Tip. Ask: Am I grouping one numeric variable into intervals and showing the count in each?

How to Recognize It

Before choosing a histogram, check what kind of variable you have, how many values there are, and whether the question is about the overall shape.

  1. Is the variable measured on a number scale, so that each bar stands for a range like 10 to 20 minutes?

    If yes, a histogram fits, and its bars touch because the ranges meet with no gaps. If the bars would be names, such as favorite fruits, use a bar graph, whose bars can go in any order with gaps between them.

  2. Is the data set small, say a dozen values, so that you could show each one?

    If yes, a dot plot keeps every value visible and loses nothing. Histograms earn their place with larger data sets, where grouping values into bins makes the shape readable.

  3. Could the data have two peaks or a long tail that matters to the question?

    If yes, a histogram shows them. A box plot would hide a second peak entirely, since it reports only five numbers; save box plots for comparing the medians and spreads of several groups.

  4. Do you need exact values, such as the median, rather than a picture?

    If yes, a histogram can only narrow the median down to one bin, since the individual values are lost. Use the raw data, or a dot plot or stem-and-leaf plot, which keep every value.

Histogram compared with Bar graph, Box plot, and Dot plot

Histograms, bar graphs, box plots and dot plots all show how values are distributed, and the first two look almost the same. Ask whether the horizontal axis is a number scale or a list of categories, and whether you need every value, the full shape, or a five-number summary.

Histogram

Meaning
Use this when you want to see the shape, center, and spread of a single numeric variable.
Key test
Am I grouping one numeric variable into intervals and showing the count in each?
Example
Scores {52,67,71,73,78,85,88,91} go into bins of width 10 starting at 50. Where is the tall bar?

Bar graph

Meaning
Compares counts across separate categories; bars have gaps.
Key test
Use for categorical data like favorite colors.
Example
Number of students per club

Box plot

Meaning
Summarizes spread with the five-number summary, hiding the detailed shape.
Key test
Use to compare spread/center across groups quickly.
Formula
{xmin⁡,Q1,x~,Q3,xmax⁡}
Example
Comparing test scores across 3 classes

Dot plot

Meaning
Plots each individual value as a dot, best for small data sets.
Key test
Use when you want every data point visible, not binned counts.
Example
Ages of 12 kids at a party

Formula & Notation

Worked Examples

Example 1 — Bin the data

Easy

Scores {52,67,71,73,78,85,88,91} go into bins of width 10 starting at 50. Where is the tall bar?
Show the steps and the answer
  1. Set up the bins: 50-59, 60-69, 70-79, 80-89, 90-99.

    Width 10 starting at 50 gives five equal bins that together cover every score.

  2. Count each bin: 50s: 52 (1); 60s: 67 (1); 70s: 71, 73, 78 (3); 80s: 85, 88 (2); 90s: 91 (1).

    Each score goes into exactly one bin.

  3. Check the total: 1+1+3+2+1=8, matching the 8 scores.

    A total of 8 confirms that no score was skipped or put in two bins.

  4. Draw touching bars of heights 1, 1, 3, 2, 1; the 70-79 bar is the tallest.

    The bars touch because the bins run continuously along the score scale.

Answer: Tallest bar is the 70-79 bin (count 3)

Takeaway: Bin, count, check the total, then draw touching bars; the tallest bar marks where the scores cluster.

Example 2 — Categories, not intervals

Standard

You want to show how many students prefer soccer, tennis, or swimming. Histogram?
Show the steps and the answer
  1. Identify the data: favorite sport, a category.

    Soccer, tennis and swimming are names, not numbers on a scale, so there are no number ranges to bin.

  2. Count each category, for example soccer 14, tennis 6, swimming 9.

    The counts become the bar heights.

  3. Draw a bar graph with gaps between the bars.

    The gaps show the categories are separate, and their order could change without changing the meaning.

Answer: Bar graph, not histogram

Takeaway: Histograms bin numbers on a scale; counts of categories belong in a bar graph.

Example 3 — Find the mistake: the tallest bar is not the mean

Application

A histogram of 20 dogs' weights has these bars: 0-10 kg: 9 dogs, 10-20 kg: 5, 20-30 kg: 3, 30-40 kg: 2, 40-50 kg: 1. Ben writes: "The tallest bar is 0-10 kg, so the average dog weighs about 5 kg." Find the mistake and correct it.
Show the steps and the answer
  1. Name what the tallest bar shows: the most common weight range, 0-10 kg, with 9 of the 20 dogs.

    That is the range that occurs most often, not the average.

  2. Estimate the mean using each bin's middle value: 9(5)+5(15)+3(25)+2(35)+1(45)20=31020=15.5 kg.

    The midpoints stand in for the exact weights, which a histogram does not show.

  3. Explain the gap: the 11 dogs in the bars to the right of 10 kg are heavier.

    The long right tail pulls the mean well above the tallest bar.

Answer: The tallest bar is the most common range (0-10 kg); the mean is about 15.5 kg.

Takeaway: The tallest bar marks the most common range; when a histogram has a long tail, the mean sits off toward the tail.

Where You'll See It

  • Emergency-room waiting times

    A hospital draws a histogram of emergency-room waits. Most patients wait 20 to 40 minutes, but a long right tail reaches past 3 hours. Managers study that tail, not just the average, to decide when extra staff are needed.

  • Spotting two groups in exam results

    A teacher bins 120 exam scores by tens and sees two humps, one around 55 and one around 85. Two humps suggest two groups, perhaps students who did and did not finish the review, which a class average near 70 would hide.

Common Mistakes

  1. The slip: Leaving gaps between bars

    Instead: histogram bins are continuous, so bars should touch (gaps mean a categorical bar graph).

  2. The slip: Using unequal bin widths carelessly

    Instead: equal-width bins keep bar heights comparable as counts.

  3. The slip: Treating the tallest bar as the mean

    Instead: it shows the most common bin (the mode region), not the average.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Ages of 12 people at a party: 8,12,15,21,23,24,27,29,33,35,38,41. Using bins 0-9, 10-19, 20-29, 30-39, 40-49, find the count in each bin.

    Hint: Go through the list once and tally each age into its bin.

  2. A histogram of homework times has bars 0-9 min: 4, 10-19 min: 9, 20-29 min: 6, 30-39 min: 1. How many students are shown, and how many took at least 20 minutes?

    Hint: Add all the bar heights, then add only the bars from 20 minutes up.

  3. In that same homework histogram (4,9,6,1 students), what percent of students took less than 10 minutes?

    Hint: Divide the first bar's count by the total number of students.

  4. A histogram of 25 quiz scores has bars 50-59: 3, 60-69: 5, 70-79: 9, 80-89: 6, 90-99: 2. Which bin contains the median?

    Hint: The median is the 13th score. Keep a running total of the bars.

  5. You recorded the exact number of minutes each of 40 students spent on homework last night. Histogram or bar graph?

    Hint: Are the data categories or one numerical measurement?

  6. Allowance bars: $0-4: 10 kids, $5-9: 4, $10-14: 3, $15-19: 2, $20-24: 1. Lily says: "The tallest bar is $0-4, so the mean is about $2." Correct her.

    Hint: Estimate the mean with each bin's middle value, weighted by its count.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can the bins in a histogram have different widths?

Yes, but then the bar heights must change meaning. A wide bin collects more values just because it is wide, so the height becomes the count per unit of width, called density, and the area of each bar shows the count. If 20 people are aged 0 to 10 and 40 are aged 10 to 30, both bars have a height of 2 people per year, even though one bin holds twice as many people.

What does a flat histogram tell me?

That every range of values is about equally common, a shape called uniform. The last digits of a long list of phone numbers make a nearly flat histogram, since no digit is favored. A flat histogram has no peak, so a typical value is a weak summary: the mean and median sit in the middle, but values far from the middle are just as common as values near it.

Is a population pyramid a kind of histogram?

Yes, it is two histograms turned on their sides and placed back to back. Age groups such as 0 to 4 and 5 to 9 years run up the middle, with males on one side and females on the other, and the bar lengths show how many people are in each group. A wide base means many young people, as in fast-growing countries; a top-heavy shape means an older population, as in Japan.

Learning Path

← Before

No prerequisites
Histogram

You are here

No earlier concept is required beyond counting and reading a number line. A histogram adds a picture of a whole distribution: its center, its spread and its shape. Next, the Normal Distribution describes the smooth bell shape that histograms of many measurements, such as heights or measurement errors, come close to.

See Also