What is a Frequency Distribution Calculator?
A frequency distribution calculator (also called a frequency table calculator) counts how often each value, or each class interval, occurs in a dataset. For the quiz scores 7, 8, 6, 9, 7, 7, 10, 5, 8, 7, 6, 8, 9, 7, 6, 8, 4, 7, 9, 8, the score 7 occurs 6 times out of 20, a relative frequency of 6 ÷ 20 = 0.30 (30%), and 55% of the scores are 7 or lower. Each row lists the frequency f, the relative frequency f ÷ n, the percentage, and the cumulative frequency and percentage.
What the Frequency Distribution Calculator does
Paste raw data and choose how to group it. By distinct value gives one row per different value, which suits counts, scores and dice rolls (an ungrouped frequency distribution). By class intervals groups measurements into equal-width classes (a grouped frequency distribution); you choose either the number of classes or the class width, and optionally where the first class starts. Each row shows f, relative f, %, cumulative f and cumulative %, and a bar chart (distinct values) or histogram (classes) shows the shape.
It works as a frequency table maker, frequency table creator or frequency distribution maker: the table can be copied straight into a report or spreadsheet, and the class table includes each class midpoint. Class intervals follow one stated convention: each class includes its lower limit and excludes its upper limit, written [a, b), and the last class also includes its upper limit so the maximum is never lost. That removes the usual ambiguity about where a value sitting exactly on a boundary belongs. The class table can go straight into the Grouped Data Mean Calculator to estimate the mean, median and mode.
How to use the Frequency Distribution Calculator
- Paste or type your numbers into Data values, separated by commas, spaces or new lines. A column copied from Excel or Google Sheets works.
- Under Group the data, choose By distinct value or By class intervals. If you already have a tally, choose From value counts and enter each value with its frequency; the calculator adds the relative and cumulative columns.
- For class intervals, choose Number of classes or Class width, enter it, and optionally set First class starts at. Sturges’ rule in the results suggests a sensible number of classes.
- Read the frequency table and the chart. The cumulative % column tells you, for example, what percentage of values are below a given class boundary.
How to make a grouped frequency distribution table by hand
These steps build the table this calculator gives for the Commute times, width 10 example: 20 commute times in minutes, 12, 25, 31, 18, 44, 27, 35, 22, 15, 29, 38, 51, 26, 33, 19, 41, 28, 24, 36 and 30.
- Find the range. The minimum is 12 and the maximum is 51, so the range is 51 − 12 = 39.
- Choose the number of classes and the width. Sturges’ rule suggests 1 + log₂ 20 ≈ 5.3, so about 6 classes; 39 ÷ 5 = 7.8 rounds up to a convenient width of 10.
- Set the class limits. Start at a round number at or below the minimum: 10–20, 20–30, 30–40, 40–50 and 50–60. A value of exactly 20 goes in 20–30.
- Tally the values in each class and check that the frequencies add to n = 20.
- Add the other columns: relative frequency f ÷ n, the percentage, and the running total of f for the cumulative frequency.
| Class | Midpoint | f | Relative f | % | Cumulative f | Cumulative % |
|---|---|---|---|---|---|---|
| [10, 20) | 15 | 4 | 0.20 | 20% | 4 | 20% |
| [20, 30) | 25 | 7 | 0.35 | 35% | 11 | 55% |
| [30, 40) | 35 | 6 | 0.30 | 30% | 17 | 85% |
| [40, 50) | 45 | 2 | 0.10 | 10% | 19 | 95% |
| [50, 60] | 55 | 1 | 0.05 | 5% | 20 | 100% |
| Total | 20 | 1.00 | 100% |
Frequency distribution formulas
| Symbol | Meaning |
|---|---|
| f | frequency: how many observations fall in the row |
| n | total number of observations, Σf |
| k | number of classes |
| h | class width |
| m | class midpoint |
| start | lower limit of the first class (the minimum unless you set it) |
With a chosen width h and no start value, the first class starts at the largest multiple of h that is not above the minimum, so limits are round numbers (for example 10, 20, 30 for h = 10). Classes are [start, start + h), [start + h, start + 2h), …, and the last class is closed on the right.
Worked example
Worked example: quiz scores out of 10
Problem. Twenty students scored 7, 8, 6, 9, 7, 7, 10, 5, 8, 7, 6, 8, 9, 7, 6, 8, 4, 7, 9, 8. Build a frequency table by distinct value.
- 01Count each score: 4 → 1, 5 → 1, 6 → 3, 7 → 6, 8 → 5, 9 → 3, 10 → 1. The counts add to n = 20.
- 02Relative frequencies: 1/20 = 0.05 (5%), 0.05 (5%), 0.15 (15%), 0.30 (30%), 0.25 (25%), 0.15 (15%), 0.05 (5%).
- 03Cumulative frequencies: 1, 2, 5, 11, 16, 19, 20.
- 04Cumulative percentages: 5%, 10%, 25%, 55%, 80%, 95%, 100%.
Answer. The most common score is 7 (6 students, 30%). The cumulative column shows that 55% of students scored 7 or less and only 20% scored 9 or 10.
Frequency distribution terms: class limits, boundaries, width and midpoint
A frequency distribution shows how often each value or range of values occurs. A frequency table is the usual way to write one down, so the two terms are used almost interchangeably. An ungrouped distribution has one row per distinct value; a grouped distribution has one row per class interval. The terms below refer to the commute-time table above.
| Term | Meaning | Example (class 20–30) |
|---|---|---|
| Class limits | The smallest and largest values that belong to the class | Lower limit 20, upper limit 30 (30 itself goes in the next class) |
| Class boundaries | Where one class ends and the next begins. For whole-number limits written 20–29, the boundaries are 19.5 and 29.5 | Here the limits already touch, so the boundaries are 20 and 30 |
| Class width, h | Upper limit − lower limit (or the gap between consecutive lower limits) | 30 − 20 = 10 |
| Class midpoint | (lower limit + upper limit) ÷ 2, used to stand in for every value in the class | (20 + 30) ÷ 2 = 25 |
| Frequency, f | How many observations fall in the class | 7 |
| Relative frequency | f ÷ n, the share of the data in the class | 7 ÷ 20 = 0.35 (35%) |
| Cumulative frequency | Running total of f up to and including the class | 4 + 7 = 11 (55%) |
Choosing the number and width of classes
Too few classes hide the shape of the data; too many leave most classes with one or two values. For 20 to 100 observations, 5 to 10 classes usually work. Sturges’ rule, k ≈ 1 + log₂ n, gives 6 classes for 20 values and 8 for 100. It tends to suggest too few classes for very large or skewed datasets.
Round class widths (2, 5, 10, 0.5) make tables easier to read than exact widths such as 7.8. A practical method: divide the range by the number of classes you want, round the result up to a convenient width, and set the first class to start at a round number at or below the minimum. In this calculator, choose Class width to get round limits automatically.
Mean of a frequency distribution
For an ungrouped table, the mean is exact: multiply each value by its frequency, add the products and divide by n. For the quiz scores, (4×1 + 5×1 + 6×3 + 7×6 + 8×5 + 9×3 + 10×1) ÷ 20 = 146 ÷ 20 = 7.3.
For a grouped table, use each class midpoint m in place of the values: x̄ ≈ Σ(f × m) ÷ n. For the commute times, (4×15 + 7×25 + 6×35 + 2×45 + 1×55) ÷ 20 = 590 ÷ 20 = 29.5 minutes, close to the exact mean of 29.2 from the raw data. The Grouped Data Mean Calculator does this from a class table and also estimates the median, mode and standard deviation.
Common use cases
- Survey and exam results: how many respondents chose each rating, or how many students fall in each score band.
- Preparing a histogram: the class table is exactly what a histogram plots.
- Grouped statistics: feed the classes into the Grouped Data Mean Calculator for the estimated mean, median and standard deviation.
- Percentile questions: cumulative percentages answer “what share is below 30?” directly from the table. For an exact percentile, use the Percentile Calculator.
- Charting categories: turn the relative frequencies of a categorical variable into a pie chart to show each category’s share of the total.
- Reporting shares: a relative frequency such as 0.30 is the same as 30%; the decimal to percent converter shows that conversion step by step.
Assumptions and limitations
- Grouping into classes discards the exact values. Statistics computed from a class table are approximations.
- The look of the table and histogram depends on the class width and start point. Try a couple of settings before drawing conclusions about shape.
- Distinct-value tables are only useful when values repeat. For continuous measurements, use class intervals.
- The calculator takes numbers only. For categorical (text) data, use the Mode Calculator in categories mode or the Bar Graph Maker.
Frequently asked questions
How do you make a frequency distribution table?
What is the difference between a frequency table and a frequency distribution?
How do you find relative frequency?
What is the difference between relative and cumulative frequency?
How do I choose the class width?
Which class does a value on a boundary belong to?
How many classes should a frequency table have?
Cite this page
Statculator. (2026, November 14). Frequency Distribution Calculator. Retrieved November 14, 2026, from https://statculator.com/descriptive-statistics/frequency-table-calculator/