Class Interval: Definition Types and Examples

#Class Interval
TL;DR
A class interval is a band that groups raw values so a distribution can be read. This guide covers limits, boundaries, class marks, inclusive and exclusive forms, and six examples.
Madhukar V·reviewed by
PK
Prabhjot KaurLast updated on November 25, 202611 min read

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.

the parts of a class interval.
Diagram breaking the class 20 to 30 into its lower limit of 20, upper limit of 30, class width of 10, and class mark of 25 computed as their average.

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:

Class width h=upper boundary−lower boundary\text{Class width } h = \text{upper boundary} - \text{lower boundary}
Class mark x=lower limit+upper limit2\text{Class mark } x = \frac{\text{lower limit} + \text{upper limit}}{2}

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 LL or hh 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.

inclusive and exclusive class interval forms compared.
Table comparing exclusive and inclusive class intervals on what they look like, where a boundary value goes, whether a gap exists between classes, and whether adjustment is needed.

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:

adjustment=lower limit of next class−upper limit of this class2\text{adjustment} = \frac{\text{lower limit of next class} - \text{upper limit of this class}}{2}

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.

how to build class intervals from raw data.
Table of five steps for building class intervals: find the range, choose the number of classes, divide to get the width, set the first lower limit, and keep every width the same.

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.

equal class intervals keep histogram bars comparable.
Histogram of five equal-width class intervals from 0 to 50 with frequencies 5, 8, 15, 9 and 3, showing comparable bar heights.

Examples of Class Interval

Example 1

Find the class mark and width of the interval 35-45.

Class mark=35+452=40h=45−35=10\text{Class mark} = \frac{35+45}{2} = 40 \qquad h = 45 - 35 = 10

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 19−10=919 - 10 = 9, 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 19.5−9.5=1019.5 - 9.5 = 10, 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: 87−12=7587 - 12 = 75. 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:

34.5+(34.5−29.5)=39.534.5 + (34.5 - 29.5) = 39.5

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 810=0.8\frac{8}{10} = 0.8, 1210=1.2\frac{12}{10} = 1.2 and 1530=0.5\frac{15}{30} = 0.5.

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 L=20L = 20 for the inclusive class 20-29.

The correct way: Convert first, giving L=19.5L = 19.5. Every formula using LL or hh 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 29−20=929 - 20 = 9 as the width.

The correct way: Use boundaries, giving 29.5−19.5=1029.5 - 19.5 = 10. 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 LL or hh 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.

A Practical Next Step

Take one set of raw values and build two frequency tables from it, one with a class width of 5 and one with a width of 20. Draw both histograms. The data has not changed and the two pictures will not match, which is the clearest demonstration of how much the banding decision carries.

Practice these to solidify your understanding. If inclusive boundaries keep catching you, return to Example 2. Want a live Bhanzu trainer to walk through more grouped data problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.3.14 Histogram (2022). itl.nist.gov
  2. US Census Bureau, Income and Poverty: income data and reports (2026). census.gov
  3. NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (2022). itl.nist.gov
  4. US Bureau of Labor Statistics, Occupational Employment and Wages Summary, May 2025 (2026). bls.gov
  5. 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?
A range of values used to group raw data, such as 20-30. Each observation falls into exactly one interval, and the number falling into it is that interval's frequency.
What is the difference between class limits and class boundaries?
Limits are the values printed in the table. Boundaries are the true dividing points between classes, which differ from the limits whenever the table uses the inclusive form.
How do you find the class mark of a class interval?
Average the lower and upper limits. The class 35-45 has class mark 40.
What is the difference between inclusive and exclusive class intervals?
In the exclusive form, 20-30 and 30-40, the upper limit belongs to the next class. In the inclusive form, 20-29 and 30-39, both endpoints belong to the class and a gap exists between consecutive classes.
How many class intervals should a distribution have?
Usually between five and fifteen. Fewer hides the shape of the data and more leaves most classes nearly empty.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
🔬 Reviewed By
PK
Subject Matter Expert & Curriculum Developer
Book a FREE Demo ClassBook Now →