Histograms
Why a histogram plots frequency density rather than frequency, how to calculate frequency density, draw a histogram with unequal class widths, read frequencies back from one, and estimate how many values lie in part of a class. Extended content only.
What the syllabus says
E9.7 (Extended)
- 1 Draw and interpret histograms.
- 2 Calculate with frequency density.
Notes and examples
- On histograms, the vertical axis is labelled ‘Frequency density’. Frequency density is defined as .
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
Why histograms use frequency density Extended
A histogram shows grouped continuous data, such as times, lengths or masses. It looks like a bar chart with no gaps, but there is one big difference: in a histogram the area of each bar represents the frequency, not its height.
This matters when the classes have different widths. Suppose 24 people took between 40 and 60 seconds to solve a puzzle and 22 took between 30 and 40 seconds. If both bars were drawn 24 and 22 units tall, the 40 to 60 bar, being twice as wide, would look far bigger than the other, as if many more people were in it. In fact its 24 people are spread over 20 seconds, while the 22 people are packed into just 10 seconds. The data is more concentrated in the 30 to 40 class.
To show this fairly, the height of each bar is the frequency density: the frequency per unit of class width.
Then each bar's area is , so the area tells the truth about how many values are in each class. On a histogram the vertical axis is labelled Frequency density, never "Frequency".
Calculating frequency density Extended
For each class:
- Find the class width: upper bound minus lower bound. For the width is .
- Divide the frequency by the class width.
Add two columns to the table, one for class width and one for frequency density, and work across each row. The units of frequency density are "per unit of the variable", for example people per second, though the axis label is simply "Frequency density".
Watch the class widths carefully. They are differences between bounds, not the bounds themselves: dividing 24 by 60 for the class instead of by 20 is a common slip. Widths can also be decimals: the class has width .
Worked example 1 Extended
The times, seconds, that 80 people took to solve a puzzle are shown in the table. Calculate the frequency density for each class.
| Time ( seconds) | Frequency |
|---|---|
| 8 | |
| 14 | |
| 22 | |
| 24 | |
| 12 |
: width , frequency density .
: width , frequency density .
: width , frequency density .
: width , frequency density .
: width , frequency density .
The tallest bar will be for , the class where the times are most concentrated, even though has more people.
Answer: 0.4, 1.4, 2.2, 1.2, 0.3
Check yourself Extended
A class has frequency 27. Calculate its frequency density.
Answer it in the portal, where your answer is checked as you type →
Drawing a histogram Extended
To draw a histogram from a table:
- Calculate the frequency density of every class.
- Draw a continuous scale for the variable on the horizontal axis. Every class bound must be in the right place, so a class of width 20 is twice as wide as a class of width 10.
- Label the vertical axis Frequency density and choose a scale that fits the largest frequency density.
- Draw each bar from its lower bound to its upper bound, with height equal to its frequency density. There are no gaps between bars, because the data is continuous.
Use a ruler and check each bar against the table. The commonest errors are a bar of the wrong width (drawn on a class number instead of the scale) and a bar drawn to the height of the frequency.
The histogram for the 80 puzzle times. The bar for is twice as wide as the bar for but much shorter: its 24 people are spread over 20 seconds.
Reading frequencies from a histogram Extended
Turn the formula round. Since frequency density = frequency class width,
which is the area of the bar. To find the frequency of a class from a histogram, read the height of its bar on the frequency density axis, find its width from the horizontal scale, and multiply.
Read the vertical scale carefully: each small square is often worth 0.1 or 0.2, not 1. And it is easy to read the height of a bar and give that as the frequency. A frequency density is not a frequency unless the class width happens to be 1.
Worked example 2 Extended
The histogram shows the heights, cm, of some plants. Find the number of plants in each class, and the total number of plants.
: width , height , frequency .
: width , height , frequency .
: width , height , frequency .
: width , height , frequency .
Total: plants.
Answer: 12, 28, 32 and 18; 90 plants in total
Check yourself Extended
On a histogram, the bar for the class has a height of . How many values are in this class?
Answer it in the portal, where your answer is checked as you type →
Estimating within part of a class Extended
Questions often ask how many values lie above or below a value that is inside a class, such as "how many people took more than 50 seconds?" when the classes are and .
We do not know where in its class each value lies, so we assume the values are spread evenly across the class. Then the number of values in part of a class is in proportion to the width of that part:
This is the area of the part of the bar you want. From 50 to 60 is half of the class , so it holds about half of its 24 people, 12. Add the whole classes above: 12 more in . About people took more than 50 seconds.
The answer is an estimate, because of the even-spread assumption. It can be a non-integer, and if so leave it as it is unless the question asks you to round.
Worked example 3 Extended
Use the puzzle-time histogram to estimate the number of people who took between 25 and 45 seconds.
From 25 to 30: width 5, frequency density , so about people.
From 30 to 40: the whole class, 22 people.
From 40 to 45: width 5, frequency density , so about people.
Total: people.
Answer: about 35 people
Completing tables and histograms Extended
Exam questions often give you half the information in the table and half in the histogram, and ask you to complete both. Work class by class:
- a bar is drawn but its frequency is missing: frequency = height width;
- a frequency is given but its bar is missing: height = frequency width, then draw it.
If one frequency is missing from both and the total is given, subtract the known frequencies from the total first.
Sometimes the vertical axis has no scale and you are told the frequency of one class instead. Use that class to find the scale: its frequency its width gives the frequency density its bar represents, and the rest of the axis follows.
Worked example 4 Extended
The histogram shows the puzzle times of 80 people, but the bar for has not been drawn. Find the height of the missing bar.
Frequencies from the bars drawn: , , , .
Known total: .
Missing frequency: .
Height of the bar: . Draw it from 20 to 30 at a height of .
Answer:
The modal class Extended
The modal class is the class where the data is most concentrated. On a histogram with unequal widths, that is the class with the highest frequency density, the tallest bar, which is not necessarily the class with the largest frequency.
In the puzzle data the class has the largest frequency, 24, but the tallest bar is , with frequency density . Its 22 people are packed into 10 seconds, so that is where the times are most concentrated.
When every class has the same width, frequency density is just frequency divided by the same number, so the bars have the same shape as a frequency diagram and the class with the largest frequency is the tallest.
Check yourself Extended
For the 80 puzzle times, the bar for has height . Estimate the number of people who took more than 90 seconds.
Answer it in the portal, where your answer is checked as you type →
Key points
In a histogram the area of a bar represents the frequency.
Frequency density = frequency class width. Label the vertical axis "Frequency density".
Frequency = frequency density class width.
Draw bars on a continuous scale, from lower bound to upper bound, with no gaps.
To estimate within part of a class, assume the values are spread evenly: frequency density the width of the part.
The modal class has the tallest bar (highest frequency density), not always the largest frequency.
Where marks are lost
Plotting frequency instead of frequency density, which makes wide classes look too important.
Dividing by a class bound (such as 60) instead of the class width (such as 20).
Giving a bar's height as its frequency: multiply by the width first.
Misreading the frequency density scale, where each small square may be or .
Drawing bars of equal width for unequal classes, or leaving gaps between bars.
Counting a whole class when only part of it is inside the range asked for.
Choosing the class with the largest frequency as the modal class instead of the class with the highest frequency density.
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.