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

Statistics · Grade 6-8

Histogram

A histogram is a graph that groups numerical data into equal-width ranges (bins) and shows the frequency of values in each range using adjacent bars that touch.


Quick Answer

A histogram is a graph that groups numerical data into equal-width ranges (bins) and shows the frequency of values in each range using adjacent bars that touch. Use it when you have many numerical values, such as 200 commute times or the heights of a whole grade, and want to see where they pile up, how far they spread and whether one side trails off. Each bar answers "how many values fell in this range?", but a histogram cannot tell you any single exact value.

Why This Matters

A list of 300 numbers tells you almost nothing at a glance; a histogram of them shows at once whether most values sit in the middle, crowd at one end or split into two groups. That shape decides which average to trust, because a long right tail pulls the mean above the median. Drawn with gaps or uneven bins, the same histogram invents patterns that are not in the data.

Intuitive Explanation

Suppose 30 students time a one-mile run. A list of 30 times such as 8.4, 9.1 and 7.6 hides the pattern, so cut the number line into equal 1-minute bins, 6-7, 7-8, 8-9, 9-10, 10-11 and 11-12 minutes, and count the runners in each: 2, 5, 9, 8, 4, 2. Draw a bar over each bin as tall as its count. The tallest bars, over 8-9 and 9-10 minutes, show where most runners finished, and the short bars at both ends show the few fast and few slow runners.

The bars touch because neighboring bins share an edge: 8 minutes ends one bin and starts the next, and a time of exactly 8.0 goes into the 8-9 bin by the usual rule. How wide you make the bins changes what you see. Merge the same data into two 3-minute bins and you get bars of 16 and 14, which hides the peak; split it into tenths of a minute and most bars hold 0 or 1 runner, a jagged comb. Equal widths matter as well, because a bin twice as wide catches about twice as many values for that reason alone.

A bar graph of favorite lunches, pizza 12, tacos 9, salad 4, also has bars whose heights are counts, but it is not a histogram. Its labels are names with no order and nothing between them, so the bars stand apart and could be shuffled without changing the meaning. Shuffle a histogram's bars and the number line breaks. Read heights carefully too: a tall bar means many values in that range, not one large value.

Think of it like this. Rain falling into a row of identical buckets along a ruler works the same way: each drop lands in exactly one bucket, and the water levels show where most rain fell. A wider bucket would catch extra rain unfairly, which is why bins must be equal. And once a drop is in a bucket, you cannot say exactly where it landed; a histogram gives up exact values too.

Core idea. A histogram trades exact values for shape: it counts how many values land in each equal-width range of a number line, so the bar heights show where the data crowd together, thin out and trail off.


When to Use

Use a histogram for numerical data with many values, a few dozen or more, when the question is about shape, spread or how many values fall in a range: times, heights, test scores, prices. If the data are categories, such as favorite color or type of pet, use a Bar Graph with separated bars. For a small set where the exact values matter, a stem-and-leaf plot or dot plot keeps them. To compare the medians and spreads of several groups, use box plots.

Tip. Ask: Are many numerical values being grouped into equal ranges, with the count in each range shown by touching bars?

How to Recognize It

A histogram is built for lots of numerical data, so check the kind and amount of data before you draw any bars.

  1. Is the variable a number that can be measured, like minutes, centimeters, or test points?

    Numbers on a scale fit a histogram. If each bar would be a named group, like a favorite sport, use a Bar Graph with gaps.

  2. Are there so many values, such as 200 commute times, that showing each one separately would be cluttered?

    Many values fit a histogram. A small set where you want to see every value suits a Dot Plot.

  3. Do you need a picture of the shape, such as where values pile up or which side trails off?

    Shape is a histogram's job. If the counts per range are all you need, a Frequency Table with ranges gives the numbers without a drawing.

  4. Can you accept losing the exact values, since only the count in each bin remains?

    If exact values matter, choose a Stem-and-Leaf Plot or a Dot Plot. A histogram trades them for a clear view of the whole distribution.

Histogram vs Bar Graph vs Dot Plot vs Frequency Table

A histogram looks like a bar graph and is usually built from a frequency table, so the three get swapped. Ask what runs along the bottom: names, single values, or ranges of numbers.

Histogram

Meaning
A histogram groups numerical values into equal-width bins and draws touching bars whose heights are the counts in each bin.
Key test
The bottom axis is a number scale cut into ranges, and the bars touch.
Example
Commute times of 120 workers in bins of 0-10, 10-20, 20-30 minutes, and so on.

Bar Graph

Meaning
A bar graph draws one separate bar for each named category, with gaps between the bars.
Key test
The bottom axis lists names; bars have gaps and can be reordered.
Example
Workers by transport: car 54, bus 30, train 24, bike 12.

Dot Plot

Meaning
A dot plot shows every single value as its own dot above a number line.
Key test
Each value is its own dot, which suits small data sets.
Example
Minutes late on 15 school mornings: dots above 0, 1, 2, 3, and 7.

Frequency Table

Meaning
A frequency table lists each value or range with its count written as a number.
Key test
The same counts as a histogram, written as numbers instead of bars.
Example
Commutes of 20-30 minutes: 38 workers. Commutes of 30-40 minutes: 22 workers.

Formula & Notation

How to read it: Bin width w determines the granularity. The frequency of bin j is fj. The bar heights add up to the number of observations, n=∑fj.

Worked Examples

Example 1 — Bin, tally and read the shape

Easy

The numbers of pages 20 students read last week were 12, 25, 31, 8, 19, 27, 22, 35, 14, 28, 41, 17, 23, 30, 26, 9, 33, 21, 24, 38. Make a histogram with bins 10 pages wide and describe the shape.
Show the steps and the answer
  1. Find the smallest and largest values, 8 and 41, and choose the bins 0-9, 10-19, 20-29, 30-39 and 40-49.

    The bins must cover every value from 8 to 41 with equal widths, and starting at 0 gives easy labels.

  2. Tally each value into its bin: 0-9 gets 2 (8, 9), 10-19 gets 4, 20-29 gets 8, 30-39 gets 5 (30, 31, 33, 35, 38), 40-49 gets 1.

    Each value goes into exactly one bin. A value of 30 starts the 30-39 bin, so it is not counted in 20-29.

  3. Check the total: 2+4+8+5+1=20.

    The bar heights must add up to the 20 students, or a value was skipped or counted twice.

  4. Draw touching bars of heights 2, 4, 8, 5 and 1 over the bins, with the horizontal axis labelled pages read and the vertical axis labelled number of students.

    The bins sit side by side on one number line, so the bars share edges.

  5. Read the shape: the peak is 20-29 pages, with 8 of 20 students, or 40%, and the bars fall away on both sides to a single student in 40-49.

    The tallest bar shows where the data center, and the shorter bars on each side show the spread.

Answer: Bars of heights 2, 4, 8, 5, 1 over 0-9 to 40-49 pages. The data peak at 20-29 pages (8 students, 40%) and thin out on both sides.

Takeaway: Pick equal-width bins that cover the data, tally, check that the counts add up to the number of values, then read the peak and the tails.

Example 2 — Bars that should not touch

Standard

Forty students named their favorite season: spring 8, summer 17, fall 9, winter 6. Should these data go in a histogram? Choose the right display and say what it shows.
Show the steps and the answer
  1. Ask what the horizontal axis would hold: the names spring, summer, fall and winter.

    A histogram's axis is a number line cut into ranges. Seasons are categories, with no bin width and nothing between them.

  2. Check the total: 8+17+9+6=40.

    Every student gave one answer, so the counts must add to 40.

  3. Draw a bar graph with separate bars of heights 8, 17, 9 and 6.

    Gaps between the bars signal separate categories; listing the seasons in another order would be just as correct.

  4. Report the most common answer: summer, chosen by 17 of 40 students, which is 1740=42.5%.

    With categories you report the most frequent one. A word like skewed would describe an order the bars do not have.

Answer: Not a histogram: seasons are categories, so use a bar graph with gaps between the bars. Summer is the favorite, with 17 of 40 students (42.5%).

Takeaway: A histogram needs numbers on a number line. If the bars could be reordered without changing the meaning, the display is a bar graph.

Example 3 — Find the mistake: one bin wider than the rest

Application

A store grouped what 50 customers spent: $0-$10: 12, $10-$20: 15, $20-$30: 11, $30-$40: 7, $40-$50: 3, $50-$60: 2. Kai merges the last three groups into one bar labelled $30-$60 with height 12, draws it as wide as the other bars, and writes: "The four bars are nearly the same height, so spending is spread evenly from $0 to $60." Find the mistake and correct it.
Show the steps and the answer
  1. Compare the bin widths: three bins are $10 wide, but $30-$60 is $30 wide.

    A bin three times as wide collects values from three times as much of the number line, so its bar is tall partly because the bin is wide.

  2. Restore equal $10 bins: heights 12, 15, 11, 7, 3 and 2.

    The merged bar's 12 customers are 7+3+2=12, now placed back in the ranges they came from.

  3. Check the total: 12+15+11+7+3+2=50.

    Splitting the bar must not lose or add customers.

  4. Read the corrected shape: a peak at $10-$20, then bars falling to 7, 3 and 2.

    Only 5 of the 50 customers, 10%, spent $40 or more, so the spending is not even at all; it trails off to the right.

Answer: Spending is not even. With equal $10 bins (12, 15, 11, 7, 3, 2) the data peak at $10-$20 and trail off to the right; only 5 of 50 customers spent $40 or more.

Takeaway: Keep every bin the same width. A wide bin's bar looks tall partly because the bin is wide, and that can hide a tail.

Where You'll See It

  • Wait times at a slide

    Group wait times into ranges (0-2, 2-4, 4-6 minutes) and bar-chart the counts. Touching bars show the continuous spread of how long kids waited.

  • Class test scores by range

    Bins like 60-70, 70-80, 80-90 show the distribution shape, e.g. whether scores pile up high or spread evenly, in a way a list never could.

  • Heights of trees in a park

    Sorting heights into equal ranges and counting how many fall in each shows the typical tree height and whether a few giants stretch the upper range.

Common Mistakes

  1. The slip: A histogram is just a bar graph, so leave gaps between bars.

    Why it's tempting: It looks identical to a bar graph kids already know.

    Instead: Histogram bars TOUCH because the data is continuous numeric ranges with no gap between 69.9 and 70.0; gaps are only for separate categories in a bar graph.

  2. The slip: Bins can be different widths to make the chart fit.

    Why it's tempting: Adjusting widths seems harmless and tidy.

    Instead: Bins should be equal width; unequal bins distort the visual area and make some ranges look more frequent than they are.

  3. The slip: A tall bar means one very large data value.

    Why it's tempting: In some bar graphs, such as one showing each city's rainfall, a tall bar does mean one big value.

    Instead: Bar height is the COUNT of values that fall inside that range (the frequency), not the size of any single value.


Mini Practice

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

  1. Put these 12 heights in cm into the bins 140-149, 150-159, 160-169 and 170-179: 152, 147, 165, 158, 171, 149, 160, 155, 163, 168, 150, 175.

    Hint: Each height goes into exactly one bin. Look at the tens digit.

  2. A histogram of commute times has bins 0-9 min: 6 students, 10-19: 11, 20-29: 7, 30-39: 4, 40-49: 2. How many students are shown, and what percent travel 30 minutes or more?

    Hint: Add all the bars, then add only the bars from 30 minutes up.

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

    Hint: Find the total, then count up through the bins to the middle value.

  4. A histogram of visitors' ages at a children's museum has bins 0-9: 40, 10-19: 22, 20-29: 10, 30-39: 5, 40-49: 3. Describe the shape.

    Hint: Where is the tallest bar, and which side has the long, low tail?

  5. One survey records each student's favourite of 5 music genres. Another records the exact number of minutes each student listens to music per day. Which data set needs a histogram?

    Hint: A histogram is for numbers that can be grouped into ranges.

  6. A histogram has bins 0-9: 8 students, 10-19: 9 students, 20-49: 12 students. Nia says, "The 20-49 bar is the tallest, so values from 20 to 49 are the most crowded." Correct her.

    Hint: Compare how wide each bin is.

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

What happens to a value that lands exactly on the edge between two bins?

It must go in exactly one bin, so you need a rule and must use it every time. A common rule is that each bin includes its left edge but not its right edge, so a commute of exactly 20 minutes goes in the 20-30 bin, not the 10-20 bin. Whatever rule you use, state it, so nobody counts a value twice or loses it.

How many bins should a histogram have?

There is no single right number, but roughly 5 to 15 bins works for most school data sets. Too few bins, like 2, lump everything together and hide the shape. Too many, like 50 bins for 60 values, leave most bars with 0 or 1 values, and the picture looks like noise. Try a couple of bin widths and keep the one that shows the shape most clearly.

Why does the shape of a histogram matter so much?

The shape tells a story about the data. A single hump in the middle means most values are typical, with a few on either side, like the heights of adults. A long tail to the right means a few values are much bigger than the rest, like house prices in a city. Two humps can mean two different groups are mixed together, such as the heights of first graders and their parents.

Can I find the median or the mean from a histogram?

Only roughly. You can tell which bin holds the median by adding bar heights from the left until you pass half the values: with 120 values, the median lies in the bin holding the 60th and 61st values. But you cannot name the exact median, because values inside a bin are hidden. An estimate of the mean uses each bin's midpoint, which works well when the bins are narrow.

Learning Path

← Before

Bar GraphRange
Histogram

You are here

You need Bar Graph (bars whose heights show counts) and Range (largest minus smallest, which tells you how far the bins must stretch) first. A histogram adds bins on a number line, touching bars and the choice of bin width. Next, Distribution Shape names the patterns histograms show, such as symmetric, skewed and two-peaked, and Normal Distribution describes the bell shape that many measurements follow.

See Also