Cambridge IGCSE Mathematics 0580 · Statistics

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.

E9.7Extended onlyFree lesson
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 frequency density=frequency÷class width.

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.

frequency density=frequency÷class width

Then each bar's area is class width×frequency density=frequency, 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:

  1. Find the class width: upper bound minus lower bound. For 20<t⩽30 the width is 30−20=10.
  2. 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 40<t⩽60 instead of by 20 is a common slip. Widths can also be decimals: the class 1.5<m⩽1.8 has width 0.3.

Worked example 1 Extended

The times, t seconds, that 80 people took to solve a puzzle are shown in the table. Calculate the frequency density for each class.

Puzzle times of 80 people
Time (t seconds)Frequency
0<t⩽208
20<t⩽3014
30<t⩽4022
40<t⩽6024
60<t⩽10012
  1. 0<t⩽20: width 20, frequency density =8÷20=0.4.

  2. 20<t⩽30: width 10, frequency density =14÷10=1.4.

  3. 30<t⩽40: width 10, frequency density =22÷10=2.2.

  4. 40<t⩽60: width 20, frequency density =24÷20=1.2.

  5. 60<t⩽100: width 40, frequency density =12÷40=0.3.

  6. The tallest bar will be for 30<t⩽40, the class where the times are most concentrated, even though 40<t⩽60 has more people.

Answer: 0.4, 1.4, 2.2, 1.2, 0.3

Check yourself Extended

A class 25<m⩽40 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:

  1. Calculate the frequency density of every class.
  2. 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.
  3. Label the vertical axis Frequency density and choose a scale that fits the largest frequency density.
  4. 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.

Time (t seconds)Frequency density1020304050607080901000.511.522.50

The histogram for the 80 puzzle times. The bar for 40<t⩽60 is twice as wide as the bar for 30<t⩽40 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,

frequency=frequency density×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, h cm, of some plants. Find the number of plants in each class, and the total number of plants.

Height (h cm)Frequency density101520253035404550123456
  1. 10<h⩽15: width 5, height 2.4, frequency =2.4×5=12.

  2. 15<h⩽20: width 5, height 5.6, frequency =5.6×5=28.

  3. 20<h⩽30: width 10, height 3.2, frequency =3.2×10=32.

  4. 30<h⩽50: width 20, height 0.9, frequency =0.9×20=18.

  5. Total: 12+28+32+18=90 plants.

Answer: 12, 28, 32 and 18; 90 plants in total

Check yourself Extended

On a histogram, the bar for the class 60<h⩽75 has a height of 2.4. 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 40<t⩽60 and 60<t⩽100.

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:

number=frequency density×width of the part

This is the area of the part of the bar you want. From 50 to 60 is half of the class 40<t⩽60, so it holds about half of its 24 people, 12. Add the whole classes above: 12 more in 60<t⩽100. About 12+12=24 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.

Time (t seconds)Frequency density1020304050607080901000.511.522.50
  1. From 25 to 30: width 5, frequency density 1.4, so about 1.4×5=7 people.

  2. From 30 to 40: the whole class, 22 people.

  3. From 40 to 45: width 5, frequency density 1.2, so about 1.2×5=6 people.

  4. Total: 7+22+6=35 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 20<t⩽30 has not been drawn. Find the height of the missing bar.

Time (t seconds)Frequency density1020304050607080901000.511.522.50
  1. Frequencies from the bars drawn: 0.4×20=8, 2.2×10=22, 1.2×20=24, 0.3×40=12.

  2. Known total: 8+22+24+12=66.

  3. Missing frequency: 80−66=14.

  4. Height of the bar: 14÷10=1.4. Draw it from 20 to 30 at a height of 1.4.

Answer: 1.4

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 40<t⩽60 has the largest frequency, 24, but the tallest bar is 30<t⩽40, with frequency density 2.2. 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 60<t⩽100 has height 0.3. 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 0.1 or 0.2.

  • 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

All 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.