Frequency Distribution Table Maker
What a frequency distribution table does
A frequency distribution table groups raw data into classes and records how many values fall into each class. Instead of reading a long list of numbers one by one, you see the shape of the data at a glance: where values cluster, where they thin out, and which range holds the most observations. This tool was built by the team at statistics fundamentals to handle the arithmetic for you, but the page also walks through every step so you can reproduce the table by hand for a class or an exam.
A finished table usually carries four kinds of numbers per class. The frequency (f) is the plain count. The relative frequency (f/n) is that count as a proportion of the whole sample, which makes two datasets of different sizes comparable. The cumulative frequency is a running total that answers "how many values are at or below this point." The percentage frequency is simply the relative frequency times 100. The maker can show or hide any of these columns with the checkboxes above the table.
Grouped vs. ungrouped data
Ungrouped data lists every distinct value with its own count. That works well for a survey with answers from 1 to 5, or a die rolled fifty times, where only a handful of values are possible. Once a dataset spreads across dozens of distinct numbers, an ungrouped tally becomes as hard to read as the raw list. Grouping fixes that by collecting values into equal ranges called class intervals. A common rule of thumb is to switch to grouped intervals once the sample passes about 30 values, though the right choice depends on how many distinct numbers appear, not just the sample size.
How the maker chooses class intervals
By default the tool applies Sturges' Rule to pick the number of classes, then derives the width from the data range. You can override either step. Herbert Sturges proposed the rule in 1926, and it remains a sensible starting point for roughly bell-shaped data. For very large or heavily skewed samples, the Rice Rule (k = 2 · n^(1/3)) often suggests more classes, so treat any formula as a first draft you can adjust.
Build a frequency table by hand: eight steps
Worked example: 30 exam scores
Take 30 test scores ranging from 68 to 92. The range is 24. Sturges' Rule gives k = 1 + 3.322 · log₁₀(30) ≈ 5.9, so we use 6 classes. The width is 24 / 6 = 4. Starting at 68 and adding 4 each time produces the table below. The 76–79 class holds the most students, so it is the modal class.
| Class interval | Frequency (f) | Relative (f/n) | Percentage | Cumulative |
|---|---|---|---|---|
| 68 – 71 | 4 | 0.133 | 13.3% | 4 |
| 72 – 75 | 5 | 0.167 | 16.7% | 9 |
| 76 – 79 | 6 | 0.200 | 20.0% | 15 |
| 80 – 83 | 5 | 0.167 | 16.7% | 20 |
| 84 – 87 | 5 | 0.167 | 16.7% | 25 |
| 88 – 92 | 5 | 0.167 | 16.7% | 30 |
Reading the cumulative column, 15 of 30 students scored below 80, which puts the median in the 76–79 class. The top class is written 88–92 rather than 88–91 so the maximum score of 92 is included. To see this dataset rendered live, press Load Example on the tool and the histogram preview will appear underneath the table.
From the table to a chart
A frequency table is the data behind three of the most common statistical charts, and the maker draws the first one for you.
Mistakes that quietly break a table
Entity and formula reference
| Term | Formula | What it tells you |
|---|---|---|
| Frequency (f) | count per class | How many values fall in an interval; the tallest count marks the modal class. |
| Relative frequency | f / n | The share of the sample in a class, on a 0-to-1 scale for fair comparison across datasets. |
| Percentage frequency | (f / n) × 100 | The same proportion as a percentage, ready for a report or dashboard. |
| Cumulative frequency | running Σf | How many values sit at or below a class boundary; the basis for percentiles and the ogive. |
| Class width (w) | (max − min) / k | The span of each interval, kept equal across classes. |
| Class midpoint | (lower + upper) / 2 | The representative value of a class, used for the grouped mean and the frequency polygon. |
Related topics
Frequently asked questions
It is a summary that groups raw data into classes and records how many values fall in each class. Most tables also include relative frequency (the proportion of the total), cumulative frequency (a running total), and percentage frequency. The table makes patterns such as clustering and skew visible without reading every individual value.
Sort the values, find the range (max minus min), choose a class count, divide the range by that count to get the width, and build equal non-overlapping intervals. Then tally how many values land in each interval and, if needed, add relative, cumulative, and percentage columns. The maker on this page does all of that the moment you paste data and press Build Table.
Between 5 and 15 classes suits most datasets. Sturges' Rule, k = 1 + 3.322 · log₁₀(n), gives a starting point based on the sample size n. For 30 values it rounds to 6 classes. If the data is large or skewed, the Rice Rule (k = 2 · n^(1/3)) often points to a few more. Use the "Set number of classes" option to test alternatives.
Relative frequency divides a class count by the total, giving the share of the sample in that class (f/n). Cumulative frequency adds each class count to a running total as you move down the table, so it reports how many values sit at or below a given boundary. Relative frequency answers "how big is this class?"; cumulative frequency answers "how much of the data is below here?"
Plot the class intervals on the horizontal axis and the frequencies as bar heights, with the bars touching because the classes are continuous. This maker draws that histogram automatically beneath the table, and you can download it as an SVG. For more control over colors and labels, send the same data to the Histogram Maker.
Yes. For data with only a few distinct values, such as ratings from 1 to 5, switch to the Ungrouped Tally tab. It counts each distinct value separately and reports the mode, which is clearer than forcing small discrete data into class intervals.
Sources & further reading:
- Sturges, H. A. (1926). "The Choice of a Class Interval." Journal of the American Statistical Association, 21(153), 65–66.
- NIST/SEMATECH e-Handbook of Statistical Methods — Histogram & frequency methods
- OpenStax, Rice University — Introductory Statistics 2e (frequency, frequency tables, and levels of measurement)