Give every value except the one you want, or write the letter with a question mark, for example f=24, w=8 or d=2.5, w=10. Every answer is checked by putting it back into the formula.
d = w f
d : frequency density f : frequency w : class width
On this page
Before you start
This page is easier if you are comfortable with:
class intervals and class width dividing by the width reading a histogram
What Frequency density (histograms) means
When class widths are unequal, the bar heights must show frequency per unit width, so that the area of each bar is proportional to the frequency.
Frequency density is the frequency divided by the class width. Rearranged, frequency is density times width, which is the area of the bar.
The vertical axis of a histogram is labelled frequency density, not frequency. It is needed for the mean in the estimated mean of grouped data , and the spread is found from quartiles and the interquartile range ; compare the pie chart angle . It also helps to know Outliers , which uses the same ideas.
This page is part of Charts and diagrams in Statistics . Topics that work alongside it: Estimated mean of grouped data , Pie chart angle , Quartiles and interquartile range , Cumulative frequency: median and quartiles , Five-number summary (box plot) , Moving average and Stratified sample .
What is it used for? Frequency density = frequency ÷ class width. In a histogram, the area of each bar (not the height) represents the frequency.
Drawing and reading histograms with unequal class widths. Finding frequencies from bar areas. Estimating the median and mean from a histogram.
How to use the frequency density (histograms) formula
Find the class width. Divide the frequency by the class width. Draw a bar of that height over the class. To find a frequency, multiply the density by the width.
Graph Histogram with unequal class widths 0 10 20 30 40 50 60 0 0.5 1 1.5 2 2.5 3 3.5 Histogram with unequal class widths x y Graph with x from 0 to 60 and y from 0 to 3.6. Shows bars (4). The height is the frequency density (frequency ÷ class width). The class 10–30 has area 2.5 × 20 = 50, so its frequency is 50.
Worked examples
Each example below was worked out by the solver on this page and checked by substituting the answer back into the formula.
Example 1: find the frequency density A class of width 8 has frequency 24. Find the frequency density.
Try this in the solver: f=24, w=8
Frequency density (histograms) Answer checked
The formula
Frequency density (histograms). In this formula d is the frequency density, f is the frequency, w is the class width.
d = w f
What we know and what we want
We know f = 24 , w = 8 and we want to find d , the frequency density.
Substitute the numbers
d = 8 24
Calculate
d = 3
Check by substituting back
Put all the values back into the original formula: both sides should match.
3 = 8 24 ✓
Example 2: find the frequency A bar has frequency density 2.5 and class width 10. Find the frequency.
Try this in the solver: d=2.5, w=10
Frequency density (histograms) Answer checked
The formula
Frequency density (histograms). In this formula d is the frequency density, f is the frequency, w is the class width.
d = w f
What we know and what we want
We know d = 2.5 , w = 10 and we want to find f , the frequency.
Rearrange for f
Rearrange the formula to make f the subject.
f = d × w
Substitute the numbers
f = 2.5 × 10
Calculate
f = 25
Check by substituting back
Put all the values back into the original formula: both sides should match.
2.5 = 10 25 ✓
Example 3: find the class width A class has frequency 18 and frequency density 1.5. Find its width.
Try this in the solver: f=18, d=1.5
Frequency density (histograms) Answer checked
The formula
Frequency density (histograms). In this formula d is the frequency density, f is the frequency, w is the class width.
d = w f
What we know and what we want
We know d = 1.5 , f = 18 and we want to find w , the class width.
Rearrange for w
Rearrange the formula to make w the subject.
w = d f
Substitute the numbers
w = 1.5 18
Calculate
w = 12
Check by substituting back
Put all the values back into the original formula: both sides should match.
1.5 = 12 18 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
The density f = 24, w = 8: d = 3
d = f ÷ w.
The frequency d = 2.5, w = 10: f = 25
f = dw.
The width f = 18, d = 1.5: w = 12
w = f ÷ d.
Bar area width × height = frequency
The area of a bar is the frequency.
Word problems
On a histogram the height of a bar is the frequency density, d = f ÷ w, so area equals frequency.
The density A class of width 8 has frequency 24. Find the frequency density.
Divide 24 ÷ 8 Calculate 3 Check: 3 × 8 = 24 ✓ 3.
The frequency A bar has density 2.5 and width 10. Find the frequency.
Multiply 2.5 × 10 Calculate 25 Check: 25 ÷ 10 = 2.5 ✓ 25.
The width Higher A class has frequency 18 and density 1.5. Find the class width.
Divide 18 ÷ 1.5 Calculate 12 Check: 1.5 × 12 = 18 ✓ 12.
Unequal classes Higher The class 10–30 has frequency 50. Find the frequency density.
Width 30 − 10 = 20 Divide 50 ÷ 20 = 2.5 Check: 2.5 × 20 = 50 ✓ 2.5.
Common mistakes
Multiplying 24 × 8 = 192 ✗
24 ÷ 8 = 3 ✓
Divide by the width.
Using frequency as the height bar height = 24 ✗
bar height = 3 ✓
Height is the density.
Dividing the width by the frequency 8 ÷ 24 ✗
24 ÷ 8 ✓
Frequency goes on top.
Using the upper bound as the width 30 ÷ ... ✗
30 − 10 ✓
Width is a difference.
Exam tips
d = f ÷ w.
Area = frequency.
w = upper − lower.
Unequal classes need density.
f = dw.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. A class of width 5 has frequency 30. Find the density Foundation 6
2. A class of width 4 has density 3.5. Find the frequency Foundation 14
3. A class of width 20 has frequency 45. Find the density Foundation 2.25
4. Frequency 36 and density 4. Find the class width Higher 9
5. The class 20–35 has frequency 60. Find the density Higher 4
6. A bar has width 15 and height 1.2. Find the frequency Higher 18
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Frequency density Frequency divided by class width. Histogram A chart with bars of different widths. Class width Upper minus lower bound . Frequency How many in the class. Area of a bar Equals the frequency. Unequal classes Classes of different widths.
Frequently asked questions
What is frequency density? Frequency divided by class width.
Why use it? It allows classes of different widths.
How do I find the frequency from a bar? Multiply height by width.
What does the area of a bar show? The frequency.
Which page covers grouped means? estimated mean of grouped data.
Which page covers pie charts? pie chart angle.