Uni-Sine
MathematicsStatistics

The frequency density formula

The frequency density formula is frequency density = frequency ÷ class width. You use it to draw a histogram when the groups, or classes, are different widths: the height of each bar is its frequency density, so the area of each bar shows the frequency. To go the other way, frequency = frequency density × class width.

What is frequency density?

In a bar chart, the height of each bar is the frequency. That works when every group is the same width. When the groups are different widths, it would mislead: a class from 0 to 20 would look busier than a class from 20 to 25 just because it covers more values.

Frequency density fixes this. It is the frequency per unit of class width: how crowded the data is inside each class. Using it as the bar height makes the area of each bar equal to its frequency, so wide classes no longer look bigger than they are.

\text{frequency density} = \frac{\text{frequency}}{\text{class width}}
TermMeaning
FrequencyHow many values are in the class
Class widthUpper boundary minus lower boundary of the class
Frequency densityFrequency ÷ class width: the height of the bar
Area of a barClass width × frequency density, which equals the frequency

How to work out frequency density

  1. Find each class width: the upper boundary minus the lower boundary. For 10 < t ≤ 15, the width is 15 − 10 = 5.
  2. Divide the frequency by the class width for each class.
  3. Draw the histogram with the variable on the x-axis and frequency density on the y-axis. Bars touch, with no gaps, because the data is continuous.

Worked example: working out frequency density

A survey records how long 73 people waited at a doctor's surgery, t minutes.

Time t (minutes)FrequencyClass widthFrequency density
0 < t ≤ 10121012 ÷ 10 = 1.2
10 < t ≤ 1518518 ÷ 5 = 3.6
15 < t ≤ 2020520 ÷ 5 = 4
20 < t ≤ 30151015 ÷ 10 = 1.5
30 < t ≤ 508208 ÷ 20 = 0.4

Here is the histogram those numbers give.

Histogram of waiting times
510152025303540455055123410 to 15: 3.615 to 20: 430 to 50: 0.4
y = frequency densityDrag to pan, scroll to zoom. x from 0 to 55, y from -0.8 to 4.8.

Here x is the waiting time in minutes and y is the frequency density. The 30 to 50 class has 8 people, but spread over 20 minutes, so its bar is low. The 15 to 20 class has 20 people in just 5 minutes, so it is the tallest. The histogram shows correctly that waits of 10 to 20 minutes were the most common, which a plain bar chart of the frequencies would hide. The Histogram Maker draws this for any table and works out the frequency densities for you.

Try it

Histogram Maker

Draw histograms with frequency density and cumulative frequency

Go to its page

Reading frequencies from a histogram

Rearrange the formula to get frequencies back from a histogram:

\text{frequency} = \text{frequency density} \times \text{class width}

In other words, the frequency is the area of the bar. If a bar runs from 40 to 60 and has a height of 2.5, its frequency is 2.5 × 20 = 50.

Estimating the frequency in part of a class

A question might ask how many people waited between 12 and 25 minutes. That range cuts through three bars, so add up the area of each piece, assuming the values are spread evenly within each class:

  • 12 to 15 minutes: 3 × 3.6 = 10.8
  • 15 to 20 minutes: the whole bar, 20
  • 20 to 25 minutes: 5 × 1.5 = 7.5

Total: 10.8 + 20 + 7.5 = 38.3, so about 38 people. It is an estimate, because you do not know exactly where in each class the values lie.

Estimating the median from a histogram

There are 73 values, so the median is the (73 + 1) ÷ 2 = 37th value. Add up frequencies from the left: 12 in the first class, 30 after the second, 50 after the third. So the median is in the 15 to 20 class, and you need 37 − 30 = 7 more values from it. The bar has a frequency density of 4 people per minute, so 7 people take 7 ÷ 4 = 1.75 minutes. The median is about 15 + 1.75 = 16.75 minutes.

Completing a table and histogram

A common exam question gives a histogram with some bars drawn and a table with some frequencies missing, and asks you to fill in both. Work each class whichever way it needs:

Mass m (kg)FrequencyWhat you knowWorking
0 < m ≤ 410The frequencyFrequency density = 10 ÷ 4 = 2.5, so draw a bar of height 2.5
4 < m ≤ 6?A bar of height 7Frequency = 7 × 2 = 14
6 < m ≤ 1018The frequencyFrequency density = 18 ÷ 4 = 4.5
10 < m ≤ 16?A bar of height 1.5Frequency = 1.5 × 6 = 9

If you know the frequencies, divide by the width to get a height. If you know a height, multiply by the width to get a frequency. Then check: the frequencies should add up to any total the question gives.

Estimating the mean from grouped data

The same table gives an estimate of the mean. Multiply each class midpoint by its frequency, add them, and divide by the total frequency. For the waiting times: (5 × 12) + (12.5 × 18) + (17.5 × 20) + (25 × 15) + (40 × 8) = 1330, and 1330 ÷ 73 = 18.2 minutes. You do not know the exact values inside each class, so treating them all as sitting at the midpoint gives an approximate answer.

Frequency density with a scale factor

Some histograms, especially at A-level, do not label the y-axis with frequency density but say that the area is proportional to frequency. Then you need to find what one square, or one unit of area, represents.

For example, if a bar 2 cm wide and 5 cm tall represents a frequency of 20, its area of 10 cm² stands for 20 values, so 1 cm² stands for 2 values. A different bar of area 7 cm² then represents 7 × 2 = 14 values. Find the scale from a bar you know before reading any others.

Here is a quick check.

practice
Pick an answer, then check it.
A class from 20 to 32 has a frequency of 30. What is its frequency density?

Common mistakes

  • Dividing the wrong way round. It is frequency ÷ class width. Width ÷ frequency gives nonsense.
  • Using the midpoint or upper boundary instead of the width. For 10 < t ≤ 15 the width is 5, not 12.5 or 15.
  • Plotting frequency instead of frequency density when the classes are unequal.
  • Reading the height as the frequency. On a histogram, the area is the frequency. Multiply by the width.
  • Leaving gaps between bars. Histograms show continuous data, so the bars touch.
  • Not labelling the axis. The y-axis should say "frequency density", not "frequency".

Frequency density in GCSE Maths

In AQA's GCSE Maths specification, constructing and interpreting histograms with equal and unequal class intervals is part of statistics, and is Higher tier only. The frequency density formula is not on the GCSE Higher formulae sheet, so learn it: frequency density = frequency ÷ class width. Histograms come back at A-level in statistics, often with the scale factor version.

Frequency density questions with answers

1. A class from 20 to 28 has a frequency of 24. Find its frequency density.
Width = 28 − 20 = 8.
Frequency density = 24 ÷ 8 = 3
2. A class 0 &lt; h ≤ 15 has a frequency of 45. Find the frequency density.
Width = 15, so frequency density = 45 ÷ 15 = 3
3. A histogram bar runs from 40 to 60 with a frequency density of 2.5. Find its frequency.
Frequency = 2.5 × 20 = 50
4. A bar for 10 ≤ x &lt; 35 has a frequency density of 0.6. How many values are in the class?
Width = 25, so frequency = 0.6 × 25 = 15
5. A class 20 &lt; x ≤ 30 has a frequency density of 1.4. Estimate how many values lie between 20 and 26.
Area from 20 to 26 = 6 × 1.4 = 8.4, so about 8 values

Practise statistics in a short timed paper

GCSE Maths Higher and A-level Maths: Statistics each give you a short timed paper every day, with 8 questions worth 25 to 35 marks. Histograms come up regularly in both.

Papers reset in

Common questions

What is the formula for frequency density?
Frequency density = frequency ÷ class width.
Why do histograms use frequency density?
So that the area of each bar, not its height, shows the frequency. That keeps wide classes from looking bigger than they really are when the class widths are unequal.
How do you find the frequency from a histogram?
Multiply the frequency density by the class width. That is the area of the bar.
What is the difference between a bar chart and a histogram?
A bar chart shows categories or equal groups, with height as frequency and gaps between bars. A histogram shows continuous data in classes, with area as frequency and no gaps.
Is frequency density on the GCSE formula sheet?
No. You need to remember frequency density = frequency ÷ class width.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Histogram Maker

    Draw histograms with frequency density and cumulative frequency

    Open the tool
  • Test it

    GCSE Maths Higher

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
  • Test it

    A-level Maths: Statistics

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · StatisticsFrequency polygons: how to draw and compare themHow to draw a frequency polygon from grouped data, compare two on one set of axes, and tell them apart from histograms and other frequency diagrams.