Skip to content
MathClicksIGCSE← All notes Cambridge IGCSE® Mathematics 0580 Extended Chapter 20 — Histograms and Frequency Distribution Diagrams

20.1  Histograms

Histograms with unequal class widths — why area (not height) shows frequency, how to calculate frequency density, and how to read a histogram back into a table.

Why a histogram uses area, not height

A bar chart shows categories — favourite colours, pets, makes of car. The bars have gaps between them and equal widths, and the height of each bar is the frequency.

A histogram shows continuous data that has been grouped into classes — times, masses, heights, distances. The classes sit next to each other on a number line, so the bars touch: no gaps. And here is the twist that Paper 4 tests every year: the classes are often different widths. One class might cover 5 seconds and its neighbour 20 seconds.

Key idea In a histogram, frequency is represented by the AREA of the bar, not its height. A wide class is allowed to hold more people simply because it is wide — so we must divide its frequency between all the units of width it covers before we know how tall to draw it.

Suppose 10 runners finish in the class 25 < t ≤ 45 and 30 runners finish in 10 < t ≤ 15. If you plotted raw frequency as height, the 20-minute-wide class would tower over the graph with an enormous area for only 10 runners, while 30 runners get squeezed into a thin sliver. The picture would lie about where the data is crowded.

Height = frequency  ✗ misleading

0 25 45 only 10 people!

The wide class grabs a huge area for just 10 values. The eye reads area, so the graph misleads.

Height = frequency density  ✓ honest

0 25 45 crowded here

Same data, height scaled by class width. Now every bar’s area equals its frequency, and the crowding is where it really is.

Why this worksThink of each class as a rectangle of people. Area = width × height. If area must equal frequency, then height must equal frequency ÷ width. That height has a name: frequency density.

Frequency density

frequency density = frequency ÷ class width The height of every histogram bar — learn it both ways round

Class width means upper class boundary − lower class boundary. For the class 10 < t ≤ 15 the width is 15 − 10 = 5. Units help you think: if t is in minutes, a frequency density of 6 means “6 people per minute of the scale” — a rate, exactly like speed or price per kg.

Watch outOn a histogram the vertical axis is always labelled “Frequency density” — never “Frequency”. Plotting raw frequency as the height is the classic error on this topic, and it throws away every mark in the part. Check the axis label before you do anything else.
Example 1The masses, m grams, of 60 apples are grouped as 60 < m ≤ 100 (16 apples), 100 < m ≤ 120 (24), 120 < m ≤ 150 (15), 150 < m ≤ 200 (5). Work out the frequency density of each class.
1
Find each class width first: upper bound − lower bound. widths: 100−60 = 40,  120−100 = 20,  150−120 = 30,  200−150 = 50
2
Divide each frequency by its own width. fd = 16 ÷ 40 = 0.4
fd = 24 ÷ 20 = 1.2
fd = 15 ÷ 30 = 0.5
fd = 5 ÷ 50 = 0.1
3
Sense-check: the 20 g class holds 24 apples in the smallest width, so it should have the biggest density. It does.
fd = 0.4,  1.2,  0.5,  0.1  (apples per gram)
Exam tip In Paper 4 an extra column headed “Frequency density” is often printed for you. Fill it in fully, even if the question only asks you to draw — the working earns method marks if a bar goes wrong.
Mass m (g)FrequencyClass widthFrequency density
60 < m ≤ 100164016 ÷ 40 = 0.4
100 < m ≤ 120242024 ÷ 20 = 1.2
120 < m ≤ 150153015 ÷ 30 = 0.5
150 < m ≤ 2005505 ÷ 50 = 0.1

Drawing a histogram

The routine never changes. For each class: width, then frequency density, then draw a bar from lower bound to upper bound at that height. The bars touch, and the horizontal axis is a proper continuous scale (equal gaps for equal amounts), not a list of labels.

  1. Add a class width column and a frequency density column to the table.
  2. Choose a vertical scale that fits the largest frequency density comfortably.
  3. Draw each bar exactly between its class boundaries — no gaps, no overlaps.
  4. Label the axes: the variable (with units) across, Frequency density up.

Times taken to solve a puzzle by 85 students — the finished histogram

area = 10 × 2 = 20 students fd 2 fd 6 fd 2.5 fd 0.5 0 1 2 3 4 5 6 0 5 10 15 20 25 30 35 40 45 Time (minutes) Frequency density

Data: 0 < t ≤ 10 f = 20, 10 < t ≤ 15 f = 30, 15 < t ≤ 25 f = 25, 25 < t ≤ 45 f = 10. Check any bar: area = width × fd gives back the frequency.

Exam tipThe modal class of grouped continuous data is the class with the highest frequency density — the tallest bar on a correct histogram — not necessarily the class with the biggest frequency. Here the modal class is 10 < t ≤ 15 even though other classes are wider.

Histogram builder

Edit the class boundaries and frequencies — the frequency densities and the histogram redraw instantly. Try making one class very wide, or create an overlap and see it flagged.

Reading a histogram back into a table

Examiners love the reverse question: you are given the drawn histogram and asked to recover the frequencies. Rearrange the definition:

frequency = frequency density × class width Area of the bar — the reverse read

Read the height of each bar from the vertical scale (read it carefully — count the small squares per unit), multiply by the width of the class, and you have the frequency. Because frequency is an area, you can even take part of a bar.

Part of a bar: estimating within a class

If a bar spans 10 < x ≤ 30, the data inside it is assumed to be spread evenly. So the number of values between 15 and 25 is estimated by the area of just that slice: fd × (25 − 15). This is an estimate — say so in your answer — because we cannot know exactly where each value sits inside its class.

Example 2A histogram of waiting times has bars: 0 < t ≤ 20 at height 0.9, 20 < t ≤ 30 at height 3.2, 30 < t ≤ 35 at height 6, 35 < t ≤ 60 at height 0.8. Complete the frequency table and find the total number of people.
1
Frequency = fd × width for each bar. 0 < t ≤ 20:  0.9 × 20 = 18
20 < t ≤ 30:  3.2 × 10 = 32
30 < t ≤ 35:  6 × 5 = 30
35 < t ≤ 60:  0.8 × 25 = 20
2
Total the frequencies. 18 + 32 + 30 + 20 = 100
Frequencies 18, 32, 30, 20  —  100 people in total
Why this works Each multiplication is just the area of a rectangle. If your four areas do not give a sensible total, you have misread a height — go back to the vertical scale.
Watch outWhen a question gives you the total and one bar is missing, work out the frequencies of every drawn bar first, subtract from the total to find the missing frequency, then divide by the missing class’s width to get the height to draw. Two divisions in the wrong order is a very common way to lose the final mark.

More worked examples

Example 3On a histogram of parcel masses, the bar for 20 < m ≤ 60 has frequency density 0.35. (a) How many parcels are in this class? (b) Estimate how many parcels have a mass between 30 kg and 50 kg.
1
(a) Frequency is the whole area of the bar. f = 0.35 × (60 − 20) = 0.35 × 40 = 14
2
(b) Take only the slice from 30 to 50 — width 20 — assuming the parcels are evenly spread through the class. estimate = 0.35 × (50 − 30) = 0.35 × 20 = 7
(a) 14 parcels    (b) an estimate of 7 parcels
Exam tip The word “estimate” in the question is the examiner telling you a part-bar area is expected. Do not try to be cleverer than the even-spread assumption.
Example 4A histogram is drawn on paper with no vertical scale. The class 0 < x ≤ 5 has frequency 15 and its bar is 6 cm tall. The bar for 5 < x ≤ 15 is 2.4 cm tall. Find the frequency of the second class.
1
Use the known class to fix the scale. Its frequency density is fd = 15 ÷ 5 = 3
2
So 6 cm of bar height represents fd = 3, which means each centimetre represents fd = 0.5. 1 cm ≡ 3 ÷ 6 = 0.5 units of frequency density
3
Convert the second bar’s height into a frequency density. fd = 2.4 × 0.5 = 1.2
4
Frequency = fd × width. f = 1.2 × (15 − 5) = 1.2 × 10 = 12
frequency = 12
Example 5Journey times are grouped as 0 < t ≤ 30 (30 journeys), 30 < t ≤ 40 (25) and 40 < t ≤ 60 (28). A student says the modal class is 0 < t ≤ 30 because 30 is the biggest frequency. Show that the student is wrong.
1
On a histogram, “most popular” means tallest bar — highest frequency density — so compute all three densities. fd = 30 ÷ 30 = 1
fd = 25 ÷ 10 = 2.5
fd = 28 ÷ 20 = 1.4
2
Compare: 2.5 is the largest, so the data is most crowded between 30 and 40 minutes, even though only 25 journeys fall there. 2.5 > 1.4 > 1
Modal class = 30 < t ≤ 40  (fd = 2.5)
Exam trap With unequal class widths, the biggest frequency does not mean the modal class. Always divide by the width first — the tallest bar of the correct histogram is the modal class, and examiners mark the reasoning, not just the name of the class.

Your turn

Practice set

  1. Find the frequency density of the class 10 < x ≤ 25 with frequency 45.
  2. A histogram bar for 20 < x ≤ 50 has height 1.8. Find the frequency.
  3. Times: 0 < t ≤ 4 f = 10, 4 < t ≤ 10 f = 18, 10 < t ≤ 20 f = 15. Work out all three frequency densities and state the modal class.
  4. The bar for 30 < x ≤ 70 has frequency density 0.6. Estimate the number of values between 40 and 55.
  5. A survey of 50 people gives classes 0 < x ≤ 10 (fd = 1.2), 10 < x ≤ 15 (fd = 3.6) and 15 < x ≤ 35 with an unknown frequency. Find the height of the third bar.

  1. Width = 15, so fd = 45 ÷ 15 = 3
  2. f = 1.8 × 30 = 54
  3. 10 ÷ 4 = 2.5, 18 ÷ 6 = 3, 15 ÷ 10 = 1.5; modal class 4 < t ≤ 10
  4. Slice width 55 − 40 = 15, so 0.6 × 15 = 9 (an estimate)
  5. Known frequencies: 1.2 × 10 = 12 and 3.6 × 5 = 18; missing f = 50 − 12 − 18 = 20 over width 20, so height = 20 ÷ 20 = fd = 1

Key points to remember

  • A histogram shows continuous grouped data: bars touch, the horizontal axis is a real number line, and area represents frequency.
  • frequency density = frequency ÷ class width — and the reverse, frequency = fd × width, reads the histogram back.
  • The vertical axis must be labelled Frequency density. Plotting raw frequency as height is the number-one error on this topic.
  • Class width = upper boundary − lower boundary. Work out a width column first, every time.
  • Part of a bar gives an estimate of the frequency in part of a class: fd × slice width, assuming even spread.
  • The modal class is the class with the highest frequency density — the tallest bar — not the biggest frequency.
  • Missing-bar questions: find every known frequency, subtract from the total, then divide by the missing width to get the height.

Where next?

✅ Mark scheme All notes

Progress is saved on this device only and appears on the notes home page.