Frequency Table Calculator

Build a frequency table from a list of numbers, by value or in equal-width classes, with relative, cumulative and cumulative relative frequency.

1 to 5000 values. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.

Results

Frequency table
2: frequency 2, relative 0.1053, cumulative 2, cumulative relative 0.1053 3: frequency 1, relative 0.0526, cumulative 3, cumulative relative 0.1579 4: frequency 1, relative 0.0526, cumulative 4, cumulative relative 0.2105 5: frequency 3, relative 0.1579, cumulative 7, cumulative relative 0.3684 7: frequency 2, relative 0.1053, cumulative 9, cumulative relative 0.4737 10: frequency 3, relative 0.1579, cumulative 12, cumulative relative 0.6316 12: frequency 2, relative 0.1053, cumulative 14, cumulative relative 0.7368 13: frequency 1, relative 0.0526, cumulative 15, cumulative relative 0.7895 15: frequency 1, relative 0.0526, cumulative 16, cumulative relative 0.8421 18: frequency 2, relative 0.1053, cumulative 18, cumulative relative 0.9474 20: frequency 1, relative 0.0526, cumulative 19, cumulative relative 1.0000
Total count (n)
19
Number of distinct values
11
Most frequent value (3 times)
5; 10
Check
Frequencies add up to 19; relative frequencies add up to 1.

How it’s calculated

A frequency table counts how often each value, or each range of values, appears in a data set. Relative frequency turns each count into a share of the total, and the cumulative columns show running totals, which answer questions such as “what share of the values are 5 or less?”.

relative frequency = frequency ÷ n cumulative frequency = this row's frequency + all earlier rows cumulative relative frequency = cumulative frequency ÷ n (the last row is 1)

For classes, pick a start and a width. Each class includes its lower limit and excludes its upper limit, so the value 5 with start 0 and width 5 falls in the class “5 to under 10”. Every value must belong to exactly one class.

Example (OpenStax Introductory Statistics 2e, Example 1.17): nineteen people report how many miles they commute: 2, 5, 7, 3, 2, 10, 18, 15, 20, 7, 10, 18, 5, 12, 13, 12, 4, 5, 10. The value 2 occurs twice (2 ÷ 19 = 0.1053), 3 once (cumulative 3 ÷ 19), 4 once (cumulative 4 ÷ 19), 5 three times (cumulative 7 ÷ 19), and so on up to 20 with cumulative relative frequency 19 ÷ 19 = 1. So 12 ÷ 19 of the people commute 10 miles or less.

Frequently asked questions

What is the difference between relative and cumulative relative frequency?

Relative frequency is one row’s share of the total. Cumulative relative frequency adds up the shares from the first row down to the current row, so it ends at 1 (100%).

How wide should the classes be?

Aim for roughly 5 to 15 classes. Too few hide the shape of the data; too many make it look jagged. Use equal widths and start at or below the minimum.

Which class does a boundary value go in?

Here every class includes its lower limit and excludes its upper limit. A value of exactly 10 with classes 5 to under 10 and 10 to under 15 goes in the second class. Some textbooks use the opposite convention, so check yours.

Can I use this for text categories?

No, this tool works with numbers. For categories, count each label and divide by the total using the same formulas.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator