Skip to content
Statculator
Descriptive Statistics

Frequency Distribution Calculator

Free frequency distribution calculator. Make a frequency table from raw data, by value or class interval, with relative, cumulative and percentage columns.

Free, no sign-up Runs in your browserBy Hira Noor, BS MathematicsUpdated

Try
20 values

Separate values with commas, spaces or new lines.

Group the data

Distinct values suit counts and scores with few different values; class intervals suit measurements. Choose value counts if you already have a tally of each value.

Class intervals include their lower limit and exclude their upper limit, [a, b). The last class also includes its upper limit, so the maximum is always counted.

Results

Total count, n
20
Distinct values
7
Most frequent
7
6 times (30%)
Minimum
4
Maximum
10
Range
6
Suggested classes (Sturges’ rule)
6

Interpretation: The 20 observations take 7 different values. The most common value is 7, with 6 observations (30% of the total). Read the cumulative % column to see what share of the data lies at or below each value.

Frequency of each valueFrequency of each value0123456Frequency4: 1145: 1156: 3367: 6678: 5589: 33910: 1110Value

Frequency distribution table

ValuefRelative f%Cumulative fCumulative %
410.055%15%
510.055%210%
630.1515%525%
760.330%1155%
850.2525%1680%
930.1515%1995%
1010.055%20100%
Total201100%

Relative f = f ÷ n. Rounded percentages may not add to exactly 100%.

Step-by-step solution

  1. 1

    Sort the data and count each distinct value

    4: 1, 5: 1, 6: 3, 7: 6, 8: 5, 9: 3, 10: 1
    Check: Σf = 20
  2. 2

    Divide each frequency by n for the relative frequency

    Relative f = f / n, e.g. 1 / 20 = 0.05 = 5%
  3. 3

    Add the frequencies down the table for the cumulative frequency

    Cumulative f for 5 = 1 + 1 = 2
    The last cumulative f equals n = 20 (100%).

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

  1. Paste or type your numbers into Data values, separated by commas, spaces or new lines. A column copied from Excel or Google Sheets works.
  2. 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.
  3. 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.
  4. 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.

  1. Find the range. The minimum is 12 and the maximum is 51, so the range is 51 − 12 = 39.
  2. 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.
  3. 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.
  4. Tally the values in each class and check that the frequencies add to n = 20.
  5. Add the other columns: relative frequency f ÷ n, the percentage, and the running total of f for the cumulative frequency.
Frequency table with percentages: commute times (minutes), class width 10
ClassMidpointfRelative f%Cumulative fCumulative %
[10, 20)1540.2020%420%
[20, 30)2570.3535%1155%
[30, 40)3560.3030%1785%
[40, 50)4520.1010%1995%
[50, 60]5510.055%20100%
Total201.00100%

Frequency distribution formulas

Relative frequency and percentage
relative f = f / n % = 100 × f / n
Cumulative frequency
cumulative fₖ = f₁ + f₂ + … + fₖ
Class width from a number of classes
h = (max − start) / k
Class midpoint
m = (lower limit + upper limit) / 2
Sturges’ rule for the number of classes
k ≈ 1 + log₂ n
Formula symbols
SymbolMeaning
ffrequency: how many observations fall in the row
ntotal number of observations, Σf
knumber of classes
hclass width
mclass midpoint
startlower 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.

  1. 01Count each score: 4 → 1, 5 → 1, 6 → 3, 7 → 6, 8 → 5, 9 → 3, 10 → 1. The counts add to n = 20.
  2. 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%).
  3. 03Cumulative frequencies: 1, 2, 5, 11, 16, 19, 20.
  4. 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.

Parts of a grouped frequency distribution
TermMeaningExample (class 20–30)
Class limitsThe smallest and largest values that belong to the classLower limit 20, upper limit 30 (30 itself goes in the next class)
Class boundariesWhere one class ends and the next begins. For whole-number limits written 20–29, the boundaries are 19.5 and 29.5Here the limits already touch, so the boundaries are 20 and 30
Class width, hUpper 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, fHow many observations fall in the class7
Relative frequencyf ÷ n, the share of the data in the class7 ÷ 20 = 0.35 (35%)
Cumulative frequencyRunning total of f up to and including the class4 + 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?

List each distinct value or class interval, then count how many observations fall in each. Add a relative frequency column (count ÷ total) and a cumulative column (running total of the counts) if you need proportions or “at or below” questions answered. For measured data, first pick a class width by dividing the range by the number of classes you want and rounding up.

What is the difference between a frequency table and a frequency distribution?

A frequency distribution is the pattern of how often each value or range occurs; a frequency table is the table that displays it, with one row per value or class. In practice the terms are used interchangeably, and a histogram or bar chart is the same distribution drawn as a graph.

How do you find relative frequency?

Divide the frequency of a value or class by the total number of observations: relative f = f ÷ n. If 7 of 20 values fall in a class, its relative frequency is 7 ÷ 20 = 0.35, or 35%. The relative frequencies always add to 1 (100%), apart from rounding. If you already have the counts, choose From value counts above to get every relative and cumulative frequency at once.

What is the difference between relative and cumulative frequency?

Relative frequency is the share of the data in one row, f ÷ n. Cumulative frequency is the running total of the counts up to and including that row, so the last row always equals n. Cumulative percentages tell you what share of the data lies at or below each value or class.

How do I choose the class width?

Divide the range (maximum − minimum) by the number of classes you want, then round up to a convenient number. For data from 12 to 51 with 5 classes, 39 ÷ 5 = 7.8, which rounds up to a width of 10 and gives classes 10–20, 20–30, 30–40, 40–50 and 50–60.

Which class does a value on a boundary belong to?

This calculator uses intervals of the form [a, b): a value equal to a class’s upper limit belongs to the next class up. The only exception is the last class, which includes its upper limit so the maximum value is counted. State the convention you use when you report a class table.

How many classes should a frequency table have?

Usually between 5 and 15. Sturges’ rule, 1 + log₂ n rounded up, is a common starting point: about 6 classes for 20 values, 8 for 100 and 11 for 1,000. Adjust it so the classes have round limits and the shape of the data is clear.

Cite this page

Statculator. (2026, November 14). Frequency Distribution Calculator. Retrieved November 14, 2026, from https://statculator.com/descriptive-statistics/frequency-table-calculator/