How To Find The Class Width | Get Grouped Data Right

Class width is the gap between one class and the next, found by dividing the full spread of data by the number of classes you want.

Class width sounds technical, but the job is simple. You’re taking a long list of values and splitting it into equal-sized groups that make a frequency table or histogram easy to read.

If the width is too small, the table gets messy. If it’s too large, the data gets flattened and you miss patterns. Once you know the range, the number of classes, and how rounding works, you can get the width in a minute or two.

What Class Width Means In Statistics

Class width is the size of each interval in grouped data. In a table like 10–19, 20–29, 30–39, the class width is 10 because each class covers 10 values.

Another way to see it: class width is the difference between consecutive lower class limits. If one class starts at 20 and the next starts at 30, the width is 10.

  • Class width: how many values each class covers
  • Range: highest value minus lowest value
  • Class limits: the starting and ending values in each class
  • Number of classes: how many groups you want in the table

That’s why class width matters. It controls how your grouped data looks, how your histogram reads, and how easy it is to spot clusters, gaps, and spread.

How To Find The Class Width Step By Step

Use this order and you won’t get lost:

  1. Find the smallest value in the data set.
  2. Find the largest value in the data set.
  3. Subtract the smallest value from the largest value to get the range.
  4. Choose the number of classes you want, often 5 to 10 for classroom work.
  5. Divide the range by the number of classes.
  6. Round up to a clean number that works for the table.

That gives you a usable class width. Many teachers accept a clean whole number even if the raw answer is a decimal, since grouped tables need intervals that are easy to build and read.

Worked Example With Raw Data

Say your smallest value is 12 and your largest value is 67. The range is 67 − 12 = 55. If you want 6 classes, divide 55 by 6.

55 ÷ 6 = 9.17. Round up to 10. Your class width is 10.

Your classes could look like this:

  • 10–19
  • 20–29
  • 30–39
  • 40–49
  • 50–59
  • 60–69

Notice that the classes start a little below the minimum value. That’s normal. It keeps the intervals tidy.

How To Check That Your Width Works

After choosing a class width, scan the full set of intervals. The lowest class should cover the minimum value, and the highest class should cover the maximum value. Each class should be the same size, with no overlaps and no gaps.

If you’re building a histogram, this same width carries into the bars. The NIST histogram notes show why equal-width bins make the shape easier to read.

Step What You Do What You Get
1 List the smallest value Starting point of the data
2 List the largest value Ending point of the data
3 Subtract smallest from largest Range
4 Pick the number of classes Total groups in the table
5 Divide range by classes Raw class width
6 Round up if needed Usable class width
7 Build equal intervals Finished class limits
8 Check min and max fit Correct grouped table

Finding Class Width In Grouped Data Without Recomputing The Range

Sometimes the table is already made, and you just need the class width. In that case, subtract one lower class limit from the next lower class limit.

Take these classes:

  • 15–24
  • 25–34
  • 35–44

The lower limits are 15, 25, and 35. Then 25 − 15 = 10. So the class width is 10.

This is the cleanest method when the grouped table is already on the page. It matches the way many intro statistics texts explain frequency distributions, including OpenStax’s section on grouped displays.

Why Students Get Different Answers

Most mistakes come from one of four places. The math itself is usually fine. The setup is what slips.

  • Using the number of data values instead of the number of classes
  • Forgetting to subtract the minimum from the maximum
  • Rounding down instead of up
  • Counting class boundaries and class width as the same thing

That last one trips people up a lot. If a class runs from 20 to 29, the class width is still 10 for grouped work, not 9. The interval covers ten whole-number values.

When To Round The Class Width Up

Round up when division gives you a decimal that would make the class intervals awkward. A width of 7.4 is no fun to build into a neat frequency table. A width of 8 works. A width of 10 may work even better if the data set is broad enough.

Teachers often prefer widths such as 2, 5, 10, or 20 because the table is easier to read and plot. The grouped display should help the reader, not make them squint.

You can also check a class-building lesson from Penn State STAT 200 if you want a second academic reference for constructing frequency tables and intervals.

Raw Answer Better Width Why It Works
6.2 7 Covers the full spread with equal classes
9.17 10 Keeps intervals clean and readable
11.8 12 or 15 Either can work if all values fit
19.4 20 Makes tables and histograms tidy

How Class Width Changes The Shape Of Your Table

Class width doesn’t just organize the data. It changes what you notice. A narrow width can show little bumps and gaps. A wider width can smooth those out.

That’s why two people can graph the same data and end up with histograms that look different. The data did not change. The bin size did. If your teacher gives a fixed number of classes, stick with it. If not, choose a width that keeps the grouping easy to read without hiding the shape.

Good Rules For Picking The Number Of Classes

If your instructor doesn’t set the number, 5 to 10 classes is a common classroom target. Small data sets may use fewer. Larger data sets may use more. The main thing is consistency.

  • Use fewer classes when the sample is small
  • Use more classes when the sample is large
  • Keep widths equal across the full table
  • Make sure the top class still includes the maximum value

Common Examples Of Class Width

Test Scores

If scores run from 41 to 98 and you want 6 classes, the range is 57. Then 57 ÷ 6 = 9.5, so a class width of 10 works well.

Heights

If heights run from 58 inches to 74 inches and you want 4 classes, the range is 16. Then 16 ÷ 4 = 4, so the class width is 4.

Ages

If ages run from 18 to 52 and you want 7 classes, the range is 34. Then 34 ÷ 7 = 4.86, so round up to 5.

One Clean Way To Remember It

If you blank out during homework or a test, use this line: range divided by number of classes, then round up. That gets you to the class width fast.

After that, build equal intervals, check that the smallest and largest values fit, and make sure no class overlaps the next one. If those three checks pass, your grouped table is in good shape.

References & Sources