Paste raw data and get a complete frequency distribution table: classes, boundaries, midpoints, frequency, relative frequency and cumulative frequency. Numbers are grouped into classes of the width you choose (or one picked with Sturges' rule); text labels are counted category by category.
Last updated:
Numbers or text labels separated by commas, spaces (numbers) or new lines.
Data type
Enter your values to see the result.
Advertisement
Advertisement
How to use the Frequency Table Generator
Paste your data: numbers or labels separated by commas, spaces or new lines.
Choose the data type or leave it on automatic detection.
Set the class width and the first class start for numbers (leave blank for automatic).
Read the table with frequency, relative and cumulative columns.
Check the histogram and download the table as CSV.
Frequency table formulas
Column
Formula
Example (n = 30)
Frequency f
Count of values in the class
70–79: 8 values
Relative frequency
f ÷ n
8 ÷ 30 = 0.2667 (26.67%)
Cumulative frequency
f₁ + f₂ + … + fi
3 + 4 + 8 = 15
Cumulative %
cumulative f ÷ n × 100
15 ÷ 30 = 50%
Midpoint m
(lower limit + upper limit) ÷ 2
(70 + 79) ÷ 2 = 74.5
Class boundaries
limits ± half the measuring unit
69.5 to 79.5
Grouped mean
Σ(f × m) ÷ n
Estimate of the mean
How many classes? (Sturges' rule)
Sturges' rule suggests k = ⌈1 + log₂ n⌉ classes. Too few classes hide the shape of the data; too many leave most classes nearly empty.
Number of values n
Suggested classes k
10
5
20
6
30–50
6–7
100
8
500
10
1,000
11
Then width ≈ range ÷ k, rounded up to a tidy value. Make sure the first class starts at or below the minimum so every value fits.
Frequently asked questions
What is a frequency table?
A frequency table lists each value or class of values together with how many times it occurs (its frequency). It usually also shows the relative frequency (frequency ÷ total) and the cumulative frequency (running total), which make the distribution of the data easy to read.
How do I choose the class width?
A common start is Sturges' rule: number of classes k = ⌈1 + log₂ n⌉, then width ≈ (maximum − minimum) ÷ k, rounded up to a convenient number such as 2, 5 or 10. Most textbooks recommend 5 to 20 classes. Leave the width blank and this tool applies that rule for you.
What is relative frequency?
Relative frequency is the frequency of a class divided by the total number of observations. For example, 6 values out of 30 gives 6 ÷ 30 = 0.2, or 20%. All relative frequencies add up to 1 (100%).
What is cumulative frequency?
Cumulative frequency is the total of the frequencies up to and including a class. The last class always has a cumulative frequency equal to n. Cumulative percentages are used to read off medians and percentiles and to draw an ogive.
What is the difference between class limits and class boundaries?
Class limits are the smallest and largest values that can belong to a class, such as 60–69 for whole numbers. Class boundaries split the gap between classes, such as 59.5–69.5, so the classes touch with no gaps; they are used for histograms.
How is the grouped mean calculated?
The grouped mean multiplies each class midpoint by its frequency, adds the products and divides by n: mean ≈ Σ(f × m) ÷ n. It is an estimate because it assumes the values in each class sit at the midpoint, so it can differ slightly from the exact mean of the raw data, which is also shown.
Can I count words or categories?
Yes. Text labels such as colours, survey answers or product names are counted per category. You can sort by frequency, alphabetically or by first appearance, and merge different capitalisations.
Are all the tools on FreeToolCabin tested for quality and accuracy?
Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.