Histograms with Unequal Class Widths: Frequency Density Explained
How frequency density works, how to draw and read histograms with unequal class widths, and how to estimate counts, the mean and the median.

Histograms with Unequal Class Widths: Frequency Density Explained
A histogram with unequal class widths is one of the topics that separates the top grades in GCSE and IGCSE statistics. The idea is simple once it clicks: area, not height, shows frequency. This guide explains frequency density, the calculations exam questions ask for, and how to check them with the free frequency density histogram maker.
Why heights alone mislead
Imagine homework times grouped as 0-10, 10-20, 20-30, 30-50, 50-80 and 80-120 minutes. If you draw bars as tall as the frequencies, the 50-80 class (18 students over 30 minutes) looks almost as important as the 20-30 class (22 students over just 10 minutes). The wide class gets extra visual weight simply because it is wide.
The fix is to make the area of each bar equal to the frequency. Since area = width × height, the height must be frequency ÷ width. That height is called frequency density.
Calculating frequency density
For each class, subtract the lower bound from the upper bound to get the width, then divide the frequency by it. For 30-50 with a frequency of 26, the width is 20 and the density is 1.3. Put frequency density on the vertical axis and draw each bar from its lower to its upper bound with no gaps.
In the maker, enter the bounds and frequencies; widths and densities appear in the table and the histogram updates, with the frequency printed above each bar.
Reading frequencies from a histogram
Many questions give the histogram and ask for frequencies, sometimes to complete a table. Multiply the bar height by the class width. If the bar for 80-120 reaches 0.2, the frequency is 0.2 × 40 = 8. If the vertical axis is not labelled with numbers, find the scale from a class whose frequency you know.
The maker's "I know the bar heights" mode does this multiplication for each class.
Estimating within a range
"Estimate how many students spent between 25 and 60 minutes" is a classic question. Assume values are spread evenly within each class. From 25 to 30 is half of the 20-30 class: 5 × 2.2 = 11. The whole 30-50 class gives 26. From 50 to 60 is a third of the 50-80 class: 10 × 0.6 = 6. The estimate is 11 + 26 + 6 = 43. The estimate tab shades the region on the histogram and lists each part of the sum.
Estimated mean
Use the midpoint of each class as a stand-in for its values. Multiply each midpoint by its frequency, add the results, and divide by the total frequency. It is an estimate because the actual values inside each class are unknown.
Estimated median by interpolation
With 97 students, the median is at position 48.5. Add frequencies until you pass it: 8 + 15 + 22 = 45, and the next class (30-50) takes you to 71, so the median is in 30-50. It is 3.5 values into a class of 26 values that spans 20 minutes, so the median is about 30 + 3.5 ÷ 26 × 20 ≈ 32.7 minutes. Quartiles work the same way at positions n ÷ 4 and 3n ÷ 4.
The modal class
The modal class is the class with the highest frequency density, the tallest bar. With unequal widths, this is not necessarily the class with the highest frequency. In the example, 30-50 has the highest frequency (26) but 20-30 has the highest density (2.2).
Exam checklist
Label the vertical axis "frequency density", never just "frequency". Leave no gaps between bars for continuous data. Show the width and density calculations in a table. For estimates, show each partial class separately.
Limits
All grouped statistics are estimates, and the even-spread assumption may not hold in real data. For discrete data such as shoe sizes or marks, class boundaries need adjusting (for example 9.5 to 19.5) before drawing. Open-ended classes like "120 or more" must be given an upper bound before a histogram can be drawn.


