Home · Statistics · Descriptive Statistics · Frequency Distribution Calculator

Frequency Distribution Calculator

Build a frequency distribution from raw data: equal-width classes over the range, with the count of observations falling in each class.

Your figures

Example result — edit the figures to make it yours

12.8

Observations20
Class width12.8
Class 3 to 15.85 (25%)
Class 15.8 to 28.64 (20%)
Class 28.6 to 41.43 (15%)
Class 41.4 to 54.24 (20%)
Class 54.2 to 67 (inclusive)4 (20%)

What this calculator does

Build a frequency distribution from raw data: equal-width classes over the range, with the count of observations falling in each class. 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

The data are split into the requested number of equal-width classes spanning the range: class width = (max − min) / classes.

The first class starts at the minimum value, and classes are left-closed, right-open — a value on a boundary belongs to the class above it — except the last class, which also includes the maximum.

Frequencies count how many observations fall in each class; relative frequencies divide those counts by the total number of observations.

Worked example

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

Quick reference

Quick reference — varying number of classes
Number of classesResult
416.00
512.80
106.40
610.67
79.14
154.27

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

Common questions

How many classes should I choose?

Five to fifteen is the usual working range: too few classes hide the shape of the data, too many leave most classes nearly empty. Rules of thumb such as √n or Sturges' rule (1 + log₂ n) give a starting point for n observations.

Where does a value exactly on a class boundary go?

Into the class above it: classes are left-closed and right-open, [lower, upper), so each boundary value is counted once, in the higher class. Only the last class is closed on both ends so the maximum is included.

How does the Frequency Distribution Calculator work?

Build a frequency distribution from raw data: equal-width classes over the range, with the count of observations falling in each class. 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 Frequency Distribution 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.