Skip to content

Histograms: frequency density and unequal class widths

TutorAura guide · Updated

A histogram looks like a bar chart, but it's used for continuous grouped data such as heights, times or masses, and the bars can have different widths. In a GCSE histogram, the vertical axis is frequency density, not frequency, and the area of each bar shows the frequency. That's the idea every histogram question tests.

Key takeaways

  • Frequency density = frequency ÷ class width.
  • The area of a bar is the frequency.
  • Bars touch, because the data is continuous.
  • To read a frequency: multiply frequency density by class width.

Frequency density

frequency density=frequencyclass width\text{frequency density} = \frac{\text{frequency}}{\text{class width}}

Rearranged: frequency=frequency density×class width\text{frequency} = \text{frequency density} \times \text{class width}.

Using frequency density stops wide classes looking more important just because they cover more values.

Example: drawing a histogram

The heights of 45 plants (in cm):

Height, hhFrequencyClass widthFrequency density
0<h≤100 < h \le 108100.8
10<h≤1510 < h \le 151252.4
15<h≤2015 < h \le 201553
20<h≤4020 < h \le 4010200.5

Draw the horizontal axis as a continuous scale of height, and the vertical axis as frequency density. Each bar runs from the start to the end of its class, with height equal to the frequency density. The tallest bar (15 to 20 cm) shows where the data is most concentrated, even though the 0 to 10 class is wider.

Reading a histogram

To find the frequency of a class, multiply the bar's height by its width. A bar from 30 to 50 with a frequency density of 1.5 represents 1.5×20=301.5 \times 20 = 30 items.

Some questions give no scale on the vertical axis but tell you one frequency. Use that bar to work out the scale first: if a bar of width 10 represents 20 items, its frequency density is 2, which fixes the scale for the rest.

Estimating part of a class

Assume the data is spread evenly across each class. Using the plant table, estimate how many plants are between 12 cm and 18 cm:

  • From 12 to 15 (3 cm of the 10 to 15 class): 2.4×3=7.22.4 \times 3 = 7.2.
  • From 15 to 18 (3 cm of the 15 to 20 class): 3×3=93 \times 3 = 9.
  • Total: 7.2+9=16.27.2 + 9 = 16.2, so about 16 plants.

It's an estimate because we don't know exactly where the values lie inside each class.

Histograms vs bar charts

Bar chartHistogram
Categories or discrete dataContinuous grouped data
Gaps between barsNo gaps
Height shows frequencyArea shows frequency
Bars all the same widthBars can have different widths

Estimating the mean and median

From a histogram, first work out each class frequency (area). Then estimate the mean using the midpoint of each class, exactly as for a grouped frequency table; our frequency table mean calculator shows the working. For the median, find the class containing the middle value and estimate within it, as above. For the plants, the median is the 23rd value: 20 plants are up to 15 cm, so it's 3 of the 15 plants into the 15 to 20 class, about 15+315×5=1615 + \tfrac{3}{15} \times 5 = 16 cm.

Common mistakes

  • Plotting frequency instead of frequency density.
  • Using the wrong class width (for 10<h≤1510 < h \le 15 it's 5, not 15).
  • Leaving gaps between bars.
  • Reading the bar height as the frequency.

Practice questions

  1. A class 20<t≤2520 < t \le 25 has a frequency of 18. Find the frequency density.
  2. A bar from 40 to 70 has a frequency density of 0.6. Find the frequency.
  3. A class 0<m≤500 < m \le 50 has a frequency density of 0.4. Estimate how many values are between 30 and 50.

Answers: 1. 18÷5=3.618 \div 5 = 3.6. 2. 0.6×30=180.6 \times 30 = 18. 3. 0.4×20=80.4 \times 20 = 8.

More practice in our histogram questions, or compare with cumulative frequency.

Frequently asked questions

How do you calculate frequency density?

Divide the frequency by the class width. For a class from 10 to 15 with a frequency of 12, the frequency density is 12 ÷ 5 = 2.4.

What does the area of a histogram bar show?

The area of each bar (frequency density × class width) equals the frequency of that class.

What is the difference between a histogram and a bar chart?

A histogram shows continuous grouped data with no gaps, and the area of each bar shows frequency; a bar chart shows categories, and the height shows frequency.

Sources

  1. GCSE mathematics: subject content and assessment objectives. Department for Education.
  2. Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.