Histograms: Definition, Method and Examples
A histogram is a graphical representation of grouped continuous numerical data. It uses touching bars to display the frequency distribution. Unlike a standard bar chart, the area of each bar in a histogram represents the frequency, meaning the height of the bar is the frequency density when the class intervals have unequal widths.
What is a histogram?
A histogram provides a visual summary of how numerical data is distributed across continuous intervals. The data is first organised into frequency tables or grouped frequency tables, which group continuous measurements—such as time, mass, or length—into ranges.
Because the data is continuous, a histogram plots values on a continuous number line. The bars touch one another to show that there are no breaks between the intervals.

Distinguish histograms from bar charts
Although they look similar, histograms and bar charts are used for different types of data.
- Data Type: Bar charts show discrete or categorical data. Histograms show continuous numerical data.
- Spacing: Bar charts have gaps between the bars to show separate categories. Histograms have touching bars to show a continuous number line.
- Bar Height vs Area: In a bar chart, the height of the bar represents the frequency. In a histogram, the area of the bar represents the frequency.
Because a histogram's bars can have unequal widths, the vertical axis is always plotted as frequency density rather than frequency.
Find class width and frequency density
To draw a histogram, you must calculate the frequency density for every class interval. This ensures that the area of the bar correctly represents the frequency.
First, determine the class width by finding the difference between the upper limit and the lower limit of the interval.
Class Width = Upper Limit − Lower Limit
Next, calculate the frequency density by dividing the frequency by the class width.
Frequency Density = Frequency ÷ Class Width
For example, if an interval is and its frequency is :
- Class Width:
- Frequency Density:
Draw touching bars
Follow these steps to construct a histogram from a grouped frequency table:
- Calculate the class width for each interval.
- Calculate the frequency density for each interval.
- Draw the horizontal axis using a continuous scale that covers all data values. Label it with the measurement and units.
- Draw the vertical axis to accommodate the maximum frequency density. Label it "Frequency Density".
- Draw the bars. The width of each bar spans its exact class interval, and the height matches its frequency density. The bars must touch with no gaps.
Read frequencies from bar area
Because the area of each bar in a histogram equals the frequency, you can work backward to find the frequency from a completed graph.
Rearrange the frequency density formula to solve for frequency:
Frequency = Frequency Density × Class Width
To find the frequency of a complete bar, multiply its width by its height. You can also find the frequency for a smaller interval within a bar. Find the width of the specific section you want, and multiply it by the height of that bar.

Worked examples
Example 1: Calculating frequency densities
Question: A survey recorded the masses of parcels. Calculate the frequency density for each interval.
Method:
- Calculate the class width for each interval by subtracting the lower limit from the upper limit.
- Divide the frequency by the class width to find the frequency density.
Answer:
Mass, (kg) | Class Width | Frequency | Frequency Density |
Check: Add the original frequencies () to ensure the total matches the original information.
Example 2: Finding frequency from a histogram bar
Question: A histogram shows the time taken to complete a test. One bar covers the interval minutes and has a frequency density of . How many people took between and minutes?
Method:
- Find the class width by subtracting the lower limit from the upper limit ().
- Multiply the class width by the frequency density to find the area, which represents the frequency ().
Answer: people.
Example 3: Estimating frequency for a partial interval
Question: A histogram shows the ages of people at a concert. The bar for years has a frequency density of . Estimate the number of people aged between and .
Method:
- Assume the data is evenly distributed across the original interval.
- Find the width of the target interval ().
- Multiply this new width by the original frequency density ().
Answer: people.
Common mistakes
- Using frequency instead of frequency density: A histogram's vertical axis must be frequency density. Plotting frequency as the height makes the graph inaccurate whenever the class intervals have different widths.
- Leaving gaps between bars: Continuous data has no breaks. The end of one class interval is the exact beginning of the next, so the bars must touch.
- Treating the horizontal axis as separate categories: The horizontal axis is a continuous number line. You must position the bars exactly at their lower and upper limits on a scaled axis, rather than just spacing them evenly.
Frequently asked questions
Can a histogram have equal class widths?
Yes. When the class widths are all exactly the same, the frequency density is directly proportional to the frequency. The resulting shape will look just like a bar chart without gaps. However, histograms are most powerful when analyzing real-world continuous data that falls into unequal intervals.
Why does the area equal the frequency?
In a rectangle, the area is calculated as length multiplied by height. For a histogram bar, the length is the class width and the height is the frequency density. Because , multiplying the width by the density cancels out the width and leaves exactly the frequency.
What other graphs show continuous data?
Frequency polygons and cumulative frequency graphs are also used to analyze the distribution of continuous grouped data.
Practice questions

What is the frequency of the interval ?
A frequency table records times, , in minutes. The frequency for the interval is . What is the frequency density for this class?

What is the total frequency of all the data shown in this histogram?
Which statement correctly describes a property of a histogram?
The height of every bar always equals its frequency.
There should be visible gaps between the bars.
The area of each bar represents the frequency.
The horizontal axis always shows separate categories.
The area of each bar represents the frequency.

Using the histogram, estimate the number of values that fall in the interval .
