Histogram Hub

Frequency Distribution Table Maker

Group raw numbers into classes with frequency, relative frequency, and cumulative frequency. Copy it or download a CSV.

30 values, 6 classes of width 6.83. Leave blank to use Sturges' rule.
ClassMidpointFrequencyRelativeCumulative
22 to 28.8325.42413.3%4
28.83 to 35.6732.25516.7%9
35.67 to 42.539.08620.0%15
42.5 to 49.3345.92723.3%22
49.33 to 56.1752.75413.3%26
56.17 to 6359.58413.3%30
Total30100%

Cumulative frequency is the running total of counts through each class. Everything is computed in your browser.

Build a frequency distribution table

A frequency distribution table groups raw data into classes and counts how many values fall in each one. Paste your numbers into the tool above and it builds the whole table: class intervals, frequency, relative frequency, and cumulative frequency, with a total row at the bottom.

The parts of the table

  • Class interval: the range each row covers, like 30 to 40. The width is the same for every class.
  • Frequency: how many values land in that class.
  • Relative frequency: the frequency divided by the total, shown as a percent. All the relative frequencies add up to 100 percent.
  • Cumulative frequency: the running total of frequency from the top down, so the last row equals your sample size.

How many classes to use

A good default is Sturges' rule, ceil(log2 n) + 1, which the tool uses when you leave the class box blank. For 20 values that is 6 classes. You can override it with any number of classes and the table rebuilds instantly.

Worked example

Here is the frequency distribution for the ages of 20 people, using 6 classes:

ClassFrequencyRelativeCumulative
23 to 29.67315%3
29.67 to 36.33420%7
36.33 to 43315%10
43 to 49.67420%14
49.67 to 56.33315%17
56.33 to 63315%20

The cumulative column climbs to 20, which is the sample size, a quick check that nothing was dropped. Once your table looks right, copy it or download it as a CSV, then use the histogram maker to chart the same data.

Frequently asked questions

What is a frequency distribution table?
It is a table that groups data into equal-width classes and records how many values fall in each class. It usually also shows relative frequency (a percent) and cumulative frequency (a running total).
How do I find relative frequency?
Divide the frequency of a class by the total number of values. Multiply by 100 to get a percent. Every relative frequency in the table adds up to 100 percent.
What is cumulative frequency?
The running total of frequencies from the first class down. Each row adds its own frequency to the total so far, and the final row equals the sample size.
How is a frequency table different from a histogram?
They show the same grouping. The frequency table lists the classes and counts as numbers, and the histogram draws those counts as bars. This site builds both from the same data.