Home · Statistics · Descriptive Statistics · Class Width Calculator

Class Width Calculator

The class width needed to split a data set into a chosen number of equal classes: the range divided by the number of classes.

Your figures

Example result — edit the figures to make it yours

11.1667

Minimum5
Maximum72
Range67
Class 5 to 16.1666672 (16.666667%)
Class 16.166667 to 27.3333332 (16.666667%)
Class 27.333333 to 38.52 (16.666667%)

What this calculator does

The class width needed to split a data set into a chosen number of equal classes: the range divided by the number of classes. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Class width = (max − min) / classes

Class width is the range of the data, max − min, divided by the number of classes; every class then spans the same interval.

The first class starts at the minimum, classes are left-closed and right-open, and the last class also includes the maximum, so the classes exactly tile the range.

The raw quotient is reported as-is; in hand-drawn tables it is often rounded up to a convenient number, which slightly widens the covered range.

Worked example

With the example inputs this page opens with (number of classes 6), the result is 11.1667. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying number of classes
Number of classesResult
322.3333
611.1667
97.4444
125.5833
79.5714
88.3750

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Should I round the class width up or down?

Up, if you round at all: rounding down can leave the largest values outside the last class, while rounding up only adds a little empty space at the top. This calculator reports the exact quotient so you can choose the rounding yourself.

Does the class width have to be a whole number?

No. It is simply the range divided by the class count, and decimal widths are perfectly valid, though whole or half-unit widths are easier to read on a hand-drawn table.

How does the Class Width Calculator work?

The class width needed to split a data set into a chosen number of equal classes: the range divided by the number of classes. Data (list) · Number of classes → Class width. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Class Width Calculator need?

Data (list) · Number of classes → Class width. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.