Histograms GCSE maths: frequency density and exam questions
Work out frequency density, draw and read histograms with unequal class widths, estimate part of a class, and practise on three exam questions.
On this page
In a GCSE histogram, the area of each bar is the frequency, and the height of each bar is the frequency density. So the formula you need works both ways round:
frequency density = frequency ÷ class width
frequency = class width × frequency density
This page follows Pearson Edexcel GCSE Mathematics (1MA1). Edexcel's specification prints its statement on histograms (S3) in bold type, which marks content that only Higher tier papers test.
What is a histogram and when do you use one?
A histogram is a diagram of grouped numerical data, drawn as bars that touch. The data are sorted into class intervals, such as 0 ≤ t < 10 and 10 ≤ t < 20. The horizontal axis shows the class intervals, and the vertical axis shows frequency density.
The intervals join on to each other with no gaps, which is why the bars touch. A histogram shows how many values lie in each class interval. It does not show each original value.
Histograms suit numerical data that has been grouped:
| Type of data | Example | Suitable for a histogram? |
|---|---|---|
| Continuous data | Journey times grouped into minute intervals | Yes |
| Grouped discrete data | Numbers of books read grouped into intervals | Yes |
| Categorical data | Favourite colour | No |
| Individual, ungrouped discrete values | Exact numbers of pets | Usually no |
Continuous data can take any value in a range: a journey could take 12.4 minutes. Grouped discrete data are separate values collected into intervals, such as numbers of books read grouped as 0 to 4, 5 to 9 and 10 to 14.
How to calculate frequency density
Frequency density is the frequency divided by the class width. The class width is the upper value of the class interval minus the lower value. For 20 ≤ t < 40, the class width is 40 − 20 = 20.
frequency density = frequency ÷ class width
Say 18 journey times lie in the interval 10 ≤ t < 20. The class width is 10 minutes, so:
- frequency density = 18 ÷ 10 = 1.8
- the bar is 10 wide and 1.8 high, so its area is 10 × 1.8 = 18, the frequency.
That is the whole idea: the height is chosen so that the area comes out as the frequency.
How to draw a histogram
- Work out the class width of each class interval.
- Work out the frequency density of each class: frequency ÷ class width.
- Choose a scale, with the class intervals along the horizontal axis and frequency density up the vertical axis.
- Draw one bar for each class, as wide as the class interval and as high as its frequency density. The bars touch.
- Label both axes.
Here is the working for some journey times grouped in equal class intervals, before anything is drawn:
| Journey time t (minutes) | Frequency | Class width | Frequency density |
|---|---|---|---|
| 0 ≤ t < 10 | 15 | 10 | 15 ÷ 10 = 1.5 |
| 10 ≤ t < 20 | 25 | 10 | 25 ÷ 10 = 2.5 |
| 20 ≤ t < 30 | 20 | 10 | 20 ÷ 10 = 2 |
So each bar is 10 minutes wide, and the three bars are 1.5, 2.5 and 2 high, side by side with no gaps. The middle bar is the highest because it has the greatest frequency. When every class has the same width, frequency density is proportional to frequency, so the heights compare in the same way as the frequencies. The picture in the next section is a drawn histogram, with unequal widths.
Histograms with unequal class widths
When the class widths are different, you cannot compare the heights of the bars to decide which class has the greatest frequency. Frequency density goes on the vertical axis so that each bar's area still stands for its frequency.
Take a histogram with these bars:
| Journey time t (minutes) | Class width | Frequency density | Frequency |
|---|---|---|---|
| 0 ≤ t < 10 | 10 | 0.4 | 10 × 0.4 = 4 |
| 10 ≤ t < 20 | 10 | 0.8 | 10 × 0.8 = 8 |
| 20 ≤ t < 40 | 20 | 0.6 | 20 × 0.6 = 12 |

The class 20 ≤ t < 40 has the greatest frequency, 12, even though its bar is lower than the bar for 10 ≤ t < 20. It is twice as wide, so it has the larger area.
How to find the frequency from a histogram
Multiply each bar's class width by its frequency density. That is the bar's area, and the area is the frequency.
| Class interval | Frequency density | Class width | Frequency (bar area) |
|---|---|---|---|
| 0 ≤ x < 5 | 6 | 5 | 5 × 6 = 30 |
| 5 ≤ x < 15 | 4 | 10 | 10 × 4 = 40 |
The first bar is taller, so the data are more densely packed between 0 and 5. But the second bar holds more values, because its area is greater. A tall bar shows where the data are most concentrated, not necessarily where most of the data are.
How to estimate a frequency for part of a class
Some questions ask how many values lie between two numbers that cut through the middle of a bar. A histogram does not show the original values, so the answer is an estimate. Take only the part of each bar you need: multiply the width of that part by the bar's frequency density, then add up the parts.
Here is an exam-style question from Medly, marked with Medly's mark scheme.
Worked example (4 marks)
A histogram is drawn for the lengths of time, t minutes, of some showers. The table shows the class intervals and the frequency densities.
| Time t (minutes) | Frequency density |
|---|---|
| 0 < t ≤ 3 | 2 |
| 3 < t ≤ 5 | 7 |
| 5 < t ≤ 8 | 6 |
| 8 < t ≤ 12 | 3.5 |
| 12 < t ≤ 20 | 0.75 |
Work out an estimate for the number of showers that lasted between 4 minutes and 10 minutes.
- The class 5 < t ≤ 8 lies wholly between 4 and 10 minutes. Its frequency is 3 × 6 = 18 (1 mark). The scheme gives this mark for any correct frequency worked out as class width × frequency density, such as 2 × 7 = 14.
- From 4 to 5 minutes is the last 1 minute of the class 3 < t ≤ 5, where the frequency density is 7: 1 × 7 = 7 (1 mark).
- From 8 to 10 minutes is the first 2 minutes of the class 8 < t ≤ 12, where the frequency density is 3.5: 2 × 3.5 = 7 (1 mark).
- Add the parts: 18 + 7 + 7 = 32 showers (1 mark, needed for full marks). Only 32 earns this mark.
The scheme also accepts the parts worked out as fractions of whole classes. The class 3 < t ≤ 5 has frequency 2 × 7 = 14, and half of it is (1/2) × 14 = 7. The class 8 < t ≤ 12 has frequency 4 × 3.5 = 14 as well, and 2 of its 4 minutes is (2/4) × 14 = 7.
Histograms exam questions with answers
Each question below is an exam-style question from Medly, marked with Medly's mark scheme.
Question 1: (2 marks)
Answer this without a calculator, as Paper 1 needs.
The table gives information about the diameters, d mm, of some coins. A histogram is drawn to show the information in the table.
| Diameter, d (mm) | Frequency |
|---|---|
| 20.0 ≤ d < 20.2 | 9 |
| 20.2 ≤ d < 20.6 | 14 |
Show that the height of the bar for coins with 20.2 ≤ d < 20.6 is 35.
Answer
- The height of a bar is its frequency density, and the class width is 20.6 − 20.2 = 0.4. So frequency density = frequency ÷ class width = 14 ÷ (20.6 − 20.2), or 14 ÷ 0.4 (1 mark). Any equivalent correct substitution is accepted.
- 14 ÷ 0.4 = 35, so the height of the bar is 35 (1 mark, needed for full marks). The scheme needs the correct value. Without a calculator, multiply both numbers by 10 first: 140 ÷ 4 = 35.
Question 2: (4 marks)
This needs a calculator, so it is a Paper 2 or Paper 3 question.
Archaeologists weigh 65 pottery fragments excavated at a settlement. The table gives mass intervals and frequencies for histogram bars.
| Mass, m (g) | Frequency |
|---|---|
| 100 ≤ m < 120 | 8 |
| 120 ≤ m < 160 | 18 |
| 160 ≤ m < 220 | 24 |
| 220 ≤ m < 300 | 15 |
(a) Show that the frequency density for the first mass interval is 0.4. (1 mark)
(b) Work out the frequency densities of the other three mass intervals, in the order shown in the table. (3 marks)
Answer
(a)
- The class width is 120 − 100 = 20, so the frequency density is 8 ÷ (120 − 100) = 0.4 (1 mark).
(b)
- The class widths are 160 − 120 = 40, 220 − 160 = 60 and 300 − 220 = 80. Set up frequency ÷ class width: 18 ÷ 40, 24 ÷ 60 and 15 ÷ 80 (1 mark). This mark is given for one of these set up correctly, or for the three class widths.
- Work out at least two of them correctly (1 mark). This mark is also given for all three divisions set up correctly.
- 18 ÷ 40 = 0.45, 24 ÷ 60 = 0.4 and 15 ÷ 80 = 0.1875, in that order (1 mark, needed for full marks). Only these three values earn this mark.
Question 3: (5 marks)
(a) The table shows information about how long some bus journeys took.
| Time t (minutes) | Frequency |
|---|---|
| 0 < t ≤ 5 | 16 |
| 5 < t ≤ 20 | 30 |
| 20 < t ≤ 35 | 27 |
| 35 < t ≤ 45 | 14 |
| 45 < t ≤ 60 | 9 |
Owen is going to show this information in a histogram.
Owen says,
"The tallest bar will be for the class 5 < t ≤ 20 because it has the greatest frequency."
Is Owen correct?
You must show your working. (3 marks)
(b) The histogram shows information about the distances, in metres, that some paper aeroplanes flew.

One of these paper aeroplanes is chosen at random.
Work out the probability that it flew more than 6 metres. (2 marks)
Answer
(a)
- The class widths are 5, 15, 15, 10 and 15. Frequency density = frequency ÷ class width: 16 ÷ 5 = 3.2, 30 ÷ 15 = 2, 27 ÷ 15 = 1.8, 14 ÷ 10 = 1.4 and 9 ÷ 15 = 0.6. At least two of these correct earns 1 mark. Fractions such as 16/5 are accepted.
- The frequency density is 3.2 for 0 < t ≤ 5 and 2 for 5 < t ≤ 20 (1 mark). This mark is also given for all five frequency densities correct.
- Owen is not correct. The tallest bar is for 0 < t ≤ 5 (frequency density 3.2), not for 5 < t ≤ 20 (frequency density 2) (1 mark). A reason that bar height shows frequency density, not frequency, is accepted when correct frequency densities back it up. "No" on its own, with no reason, does not earn this point.
(b)
Medly's scheme lists three one-mark points for this part, with the marker's note "Maximum of 2 marks".
- Find each frequency from the bar's area: 2 × 4 = 8, 2 × 7.5 = 15, 2 × 9 = 18, 4 × 3 = 12 and 6 × 1 = 6 (1 mark). At least three correct frequencies are accepted.
- The total is 8 + 15 + 18 + 12 + 6 = 59. The aeroplanes that flew more than 6 metres are in the last two bars: 12 + 6 = 18 (1 mark). This mark is implied by 18/59.
- The probability is 18/59 (1 mark, needed for full marks). An equivalent fraction, 0.305... or 0.31, or 30.5...% or 31% are also accepted.
Where marks are lost on histogram questions
Each of these comes from a mark scheme printed on this page.
- Comparing heights or frequencies when the widths differ. In Question 3 (a), the first two marks are for frequency densities, not frequencies, because the height of a bar is its frequency density.
- A conclusion with no reason. In Question 3 (a), "No" on its own, with no reason, does not earn the last mark. The reason has to be backed by correct frequency densities.
- Using a whole class when only part of it is wanted. In the worked example, the second mark is for the part of the class 3 < t ≤ 5 from 4 to 5 minutes, 1 × 7 = 7, not for the whole class, 2 × 7 = 14.
Questions like Question 3 turn on one habit: before you compare bars, check whether the widths match. Medly has an Edexcel GCSE Mathematics course at Higher. Medly's free plan includes 5 marked questions, 20 AI tutor messages and 1 uploaded paper a day, with no card needed. Medly marks written answers like Question 3 against the mark scheme, so you can see which point you missed.
Which paper are histograms on?
Any of the three. Edexcel's specification says the content for each tier is assessed across all three papers. Paper 1 is the non-calculator paper, and a calculator is allowed in Papers 2 and 3. Our specification guide has the papers and their dates.
The mathematics on this page does not change with the exam board. What it says about tiers, papers and the formula sheet is Edexcel's: if you sit another board, check those in your own specification.
Frequency density is not on Edexcel's formula sheet: our formula sheet guide shows what the sheet prints.
Histograms are in statement S3 of Edexcel's specification, which also lists cumulative frequency graphs. Our page on cumulative frequency covers those, with box plots.
Frequently asked questions
What is frequency density?
Frequency density is the frequency of a class divided by its class width. In a histogram it is the height of the bar, which makes the area of the bar equal to the frequency.
What is the formula for a histogram?
The formula is frequency = class width × frequency density. Rearranged, it gives frequency density = frequency ÷ class width, which is what you need to draw the bars.
What is the difference between a histogram and a bar chart?
A histogram is for numerical data grouped into class intervals: its bars touch, its vertical axis is frequency density, and the area of each bar is the frequency. Data in categories with no numerical scale, such as favourite colour, are not suitable for a histogram: Edexcel's specification lists bar charts among the diagrams for categorical data.
How do you find the frequency from a histogram?
Multiply the class width of the bar by its frequency density. A bar from 5 to 15 with a frequency density of 4 stands for 10 × 4 = 40 values.
Are histograms on the Foundation paper?
Edexcel's Foundation tier list has no statement on histograms. They are in statement S3 of the Higher tier list, printed in bold: "construct and interpret diagrams for grouped discrete data and continuous data, i.e. histograms with equal and unequal class intervals and cumulative frequency graphs, and know their appropriate use". Bold type marks content that only Higher tier papers test.