Frequency Density Calculator
Use this quick tool to calculate frequency density for grouped data. Enter class boundaries and frequency, then click calculate.
Batch Table Calculator (Optional)
Paste multiple rows to calculate densities at once. Format: lower, upper, frequency per line.
What is frequency density?
Frequency density is a way to compare grouped data when class intervals are not all the same width. It is especially important for drawing and reading histograms.
The formula is:
Frequency Density = Frequency ÷ Class Width
Where class width is:
Class Width = Upper Boundary − Lower Boundary
Why not just use frequency?
If every class interval has the same width, frequencies can be compared directly. But when widths differ, wider intervals naturally capture more values, so raw frequency can be misleading. Frequency density normalizes by interval width, giving a fair comparison.
Quick intuition
- Frequency tells you total count in a class.
- Class width tells you how wide that class is on the number line.
- Frequency density tells you how concentrated values are per unit width.
Step-by-step frequency density calculation
- Identify the class boundaries (not just class labels).
- Compute class width = upper boundary − lower boundary.
- Take the class frequency.
- Divide frequency by class width.
- Use density values as bar heights in a histogram.
Worked example (unequal intervals)
Suppose test score groups are:
| Class Interval | Frequency | Class Width | Frequency Density |
|---|---|---|---|
| 0–10 | 8 | 10 | 0.8 |
| 10–20 | 14 | 10 | 1.4 |
| 20–40 | 18 | 20 | 0.9 |
| 40–50 | 10 | 10 | 1.0 |
Although the 20–40 class has the largest frequency (18), its width is also larger. Its density is only 0.9, so it is not the tallest histogram bar.
Frequency density and histograms
In a histogram:
- Bar width = class width
- Bar height = frequency density
- Bar area = frequency
This is why histogram bars can have very different widths. If widths vary, heights must be densities, not frequencies.
Common mistakes to avoid
- Using class limits instead of true class boundaries in continuous data problems.
- Forgetting to divide by class width.
- Using frequency as histogram height when intervals are unequal.
- Rounding too early and introducing small errors.
Exam and homework tips
1) Set up a table first
Create columns for interval, frequency, width, and density. It keeps your work organized and reduces errors.
2) Check with area logic
If drawing a histogram, verify that height × width returns the original frequency for each bar.
3) Keep units consistent
If class widths are measured in different units by mistake, your density values will be wrong. Standardize first.
Frequently asked questions
Can frequency density be negative?
No. Frequency and class width are non-negative, and class width must be greater than zero.
When is frequency density equal to frequency?
When class width is exactly 1 unit.
Do I always need frequency density?
It is essential when class widths differ. If widths are equal, frequency alone is usually fine for comparing classes.
Final takeaway
Frequency density makes grouped data comparisons fair when intervals are unequal. Remember the core rule: density = frequency ÷ class width. Use it for histogram heights, and use area to recover frequency.