Frequency Density Formula Solver with Worked Examples

In a histogram, the height of each bar is the frequency density: , the frequency divided by the class width. Use the calculator to find the density, the frequency or the class width.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

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.

  • : frequency density
  • : frequency
  • : class width

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.

How to use the frequency density (histograms) formula

  1. Find the class width.
  2. Divide the frequency by the class width.
  3. Draw a bar of that height over the class.
  4. To find a frequency, multiply the density by the width.

Graph

Histogram with unequal class widths010203040506000.511.522.533.5Histogram with unequal class widthsxyGraph 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.

Frequency density (histograms) Answer checked
Answer
d=3d=3
  1. The formula
    Frequency density (histograms). In this formula is the frequency density, is the frequency, is the class width.
  2. What we know and what we want
    We know and we want to find , the frequency density.
  3. Substitute the numbers
  4. Calculate
  5. Check by substituting back
    Put all the values back into the original formula: both sides should match.

Example 2: find the frequency

A bar has frequency density 2.5 and class width 10. Find the frequency.

Frequency density (histograms) Answer checked
Answer
f=25f=25
  1. The formula
    Frequency density (histograms). In this formula is the frequency density, is the frequency, is the class width.
  2. What we know and what we want
    We know and we want to find , the frequency.
  3. Rearrange for
    Rearrange the formula to make f the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

Example 3: find the class width

A class has frequency 18 and frequency density 1.5. Find its width.

Frequency density (histograms) Answer checked
Answer
w=12w=12
  1. The formula
    Frequency density (histograms). In this formula is the frequency density, is the frequency, is the class width.
  2. What we know and what we want
    We know and we want to find , the class width.
  3. Rearrange for
    Rearrange the formula to make w the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

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.

  1. Divide24 ÷ 8
  2. Calculate3
  3. Check: 3 × 8 = 24 ✓3.

The frequency

A bar has density 2.5 and width 10. Find the frequency.

  1. Multiply2.5 × 10
  2. Calculate25
  3. Check: 25 ÷ 10 = 2.5 ✓25.

The width Higher

A class has frequency 18 and density 1.5. Find the class width.

  1. Divide18 ÷ 1.5
  2. Calculate12
  3. Check: 1.5 × 12 = 18 ✓12.

Unequal classes Higher

The class 10–30 has frequency 50. Find the frequency density.

  1. Width30 − 10 = 20
  2. Divide50 ÷ 20 = 2.5
  3. 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

  1. d = f ÷ w.
  2. Area = frequency.
  3. w = upper − lower.
  4. Unequal classes need density.
  5. 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.

Solve: …

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.

More in Statistics and the formula sheets.