Key Points
- A class interval carries four separate numbers, and only one of them is its midpoint: two limits, a width and a class mark.
- Class limits are the values written in the table, while class boundaries are the true dividing points used in calculations.
- In the exclusive form, 20-30 and 30-40 are consecutive, and a value of exactly 30 belongs to the second class.
- In the inclusive form, 20-29 and 30-39 leave a gap that must be closed by adjusting boundaries before any formula is applied.
- The class mark is the average of the two limits and stands in for every observation inside that class.
Four Numbers Hiding in One Band
A class interval carries four separate numbers, and only one of them is its midpoint. Written as 20-30, it looks like a single fact. It contains a lower limit, an upper limit, a width and a class mark, and different formulas reach for different ones.
Most grouped-data errors are not errors of method. They are the wrong one of those four numbers being used.

What Is a Class Interval?
A class interval is a range of values used to group raw data into a frequency distribution. Each observation falls into exactly one interval, and the count of observations in an interval is its frequency.
Three derived quantities matter:
The class mark, also called the midpoint, is the value that stands in for every observation inside the interval when the mean of grouped data is computed.
Try It Yourself
Use the grouped data lab to see Class Interval at work: drag, change the numbers and watch what happens.
What Is the Difference Between Limits and Boundaries?
Limits are what the table prints. Boundaries are where one class actually stops and the next begins.
For the exclusive class 20-30 they coincide: the limits are 20 and 30, and so are the boundaries. For the inclusive class 20-29 they do not. The next class starts at 30, leaving an invisible gap between 29 and 30, and the true boundary sits halfway across it at 29.5.
Every grouped-data formula that uses or needs boundaries, never limits. That single rule resolves most of the confusion in the topic.
Inclusive or Exclusive: Which Form Is This?
The two forms differ in whether the upper value belongs to the class.

In the exclusive form, written 20-30 and 30-40, the upper limit belongs to the next class. A value of exactly 30 is counted in 30-40. There is no gap, so limits and boundaries are the same.
In the inclusive form, written 20-29 and 30-39, both endpoints belong to the class. There is a gap of one unit between classes, and boundaries must be computed before any formula is used:
Subtract that from each lower limit and add it to each upper limit. For 20-29 followed by 30-39 the adjustment is 0.5, giving boundaries of 19.5 and 29.5.
How Do You Choose Class Intervals?
Building a distribution from raw data means choosing both the number of classes and their width.

Between five and fifteen classes is the usual range. Too few hides the shape; too many leaves most classes nearly empty and the histogram looks like noise.
Equal widths matter more than the exact number. Unequal widths make bar heights incomparable, because a wider class collects more observations simply by being wider, and they also rule out the step deviation shortcut.

Examples of Class Interval
Example 1
Find the class mark and width of the interval 35-45.
Example 2
A table shows classes 10-19, 20-29, 30-39. A student takes the width as 9. What went wrong?
Subtracting the printed limits gives , which looks right.
These are inclusive classes, so the real boundaries are 9.5-19.5, 19.5-29.5 and 29.5-39.5. The width is , not 9.
Checking against the data confirms it: consecutive classes start at 10, 20 and 30, so each covers ten whole units. The printed limits understate the width because the gap between 19 and 20 belongs to the distribution.
Example 3
Convert the inclusive classes 5-14, 15-24, 25-34 to exclusive form.
The gap between 14 and 15 is 1, so the adjustment is 0.5.
Boundaries: 4.5-14.5, 14.5-24.5, 24.5-34.5.
Example 4
Raw data runs from 12 to 87. Build about eight classes of equal width.
Range: . Dividing by 8 gives 9.375, so a width of 10 is the convenient choice.
Starting at 10 gives classes 10-20, 20-30 and so on up to 80-90, which is eight classes covering every value.
Example 5
A class has lower boundary 29.5 and class mark 34.5. Find its upper boundary.
The class mark sits midway between the boundaries, so the upper boundary is as far above it as the lower boundary is below:
Example 6
A distribution has classes 0-10, 10-20 and 20-50 with frequencies 8, 12, 15. Which class is tallest on a histogram?
The instinct is the third class, since 15 is the largest frequency.
A histogram plots frequency density, not frequency, when widths differ. Densities are , and .
The tallest bar belongs to the class 10-20. The third class holds the most observations only because it is three times as wide, and plotting raw frequency would make it look like a peak it is not.
Why the Width You Choose Changes the Story
Class intervals are a modelling decision disguised as a formatting one.
- Width controls visible detail. Narrow classes reveal structure such as two peaks; wide classes smooth them away entirely.
- The same data supports different pictures. Changing only the class width changes a histogram's shape, which is why the width should always be stated alongside it.
- Boundaries decide borderline cases. A value falling exactly on a limit lands in one class or the other depending on which form is used, and on small data sets that moves the median class.
- Equal widths keep comparisons honest. Unequal widths require frequency density, and a histogram drawn with raw frequencies on unequal classes misleads, as Example 6 shows.
Official statistics handle this by publishing their banding explicitly. The US Census Bureau reports household income in defined bands alongside its headline median of $87,460 for 2025 in Income in the United States: 2025, so readers can see which bands produced the figure.
What Most Guides Get Wrong About Class Intervals
Two things usually go unsaid.
The first is the limits-against-boundaries distinction. Guides often use the two words interchangeably, which works perfectly until an inclusive table appears and every subsequent formula is half a unit out. Naming the distinction once, as Example 2 does, prevents a whole family of errors in the median, mode and step deviation calculations downstream.
The second is frequency density. Most explanations assume equal widths throughout and never mention what happens otherwise, leaving students to plot raw frequencies on unequal classes and read a peak that is an artefact of the width. The rule is simple: when widths differ, height must be frequency divided by width.
Where Students Trip Up on Class Intervals
Mistake 1: Using limits where boundaries are required
Where it slips in: Any median, mode or step deviation calculation on an inclusive table.
Don't do this: Taking for the inclusive class 20-29.
The correct way: Convert first, giving . Every formula using or needs the true dividing point.
Students who convert correctly when asked to convert still forget when the question is about something else, because the adjustment is a separate step that no part of the median formula reminds them to perform.
Mistake 2: Computing the width from printed limits
Where it slips in: Inclusive tables, as in Example 2.
Don't do this: Taking as the width.
The correct way: Use boundaries, giving . A quicker check is to subtract consecutive lower limits, which gives 10 immediately.
Mistake 3: Plotting raw frequency on unequal classes
Where it slips in: Histograms where one class is wider, as in Example 6.
Don't do this: Drawing a bar of height 15 for a class three times as wide as its neighbours.
The correct way: Plot frequency density, frequency divided by width. The area of each bar, not its height, represents the frequency.
The real-world consequence of a banding choice appears in how age data is reported. Grouping ages as 0-17 and 18-64 answers a legal question, while 0-4, 5-9 and so on answers an educational one, and the same population produces different-looking distributions under each. The bands are an argument about what matters, not a neutral container.
Key Takeaways
- A class interval has limits, boundaries, a width and a class mark, and formulas reach for different ones.
- Boundaries, not limits, are used wherever or appears in a grouped-data formula.
- Inclusive classes leave a gap that must be closed by adjusting half the gap onto each side.
- When class widths differ, histograms must plot frequency density rather than raw frequency.
- To work through grouped data with a teacher, explore Bhanzu's middle school math tutor sessions or math classes for kids.
Read More
Research Behind This Article
- NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.3.14 Histogram (2022). itl.nist.gov
- US Census Bureau, Income and Poverty: income data and reports (2026). census.gov
- NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (2022). itl.nist.gov
- US Bureau of Labor Statistics, Occupational Employment and Wages Summary, May 2025 (2026). bls.gov
- NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.3.7 Box Plot (2022). itl.nist.gov
Quick Quiz: Check Yourself
Three levels, fresh numbers every time, instant feedback with the working.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is a class interval in statistics?
What is the difference between class limits and class boundaries?
How do you find the class mark of a class interval?
What is the difference between inclusive and exclusive class intervals?
How many class intervals should a distribution have?
