Group a list of numbers into equal-width classes and get a frequency table with relative and cumulative columns, ready for a histogram or ogive.
Classes ≈ log₂ n + 1 · width = range ÷ classes
A frequency distribution is a table that sorts data into classes (ranges of values) and counts how many observations fall into each one. It turns a long list of numbers into a picture of where values cluster and how they spread.
Relative frequency shows each class as a share of the total, so tables of different sizes can be compared. Cumulative frequency runs a total down the table, answering questions like "how many took under 30 minutes?".
The table is the step before a histogram (bars of the counts) or an ogive (a line through the cumulative percentages). Choosing the class width is the main judgement call, and it changes the story the table tells.
As given in OpenStax Introductory Statistics, section 2.2, and Sturges (1926) for the number of classes. See Sources.
Each class includes its lower limit and excludes its upper limit, so every value lands in exactly one class.
63% of the office commutes for under 30 minutes. The single 52-minute journey sits alone in the top class, a long right tail that the table makes easy to spot.
Sturges' rule against the square-root rule. Both are starting points, not laws.
| Values (n) | Sturges | √n |
|---|---|---|
| 20 | 6 | 5 |
| 50 | 7 | 8 |
| 100 | 8 | 10 |
| 500 | 10 | 23 |
| 1,000 | 11 | 32 |
Frequency is a count; relative frequency is that count divided by the total, giving a proportion or percentage.
The number of values in a class and all the classes below it. The last row always equals n.
Leave it blank for an automatic, rounded width from Sturges’ rule, or enter a width that makes sense for your units, such as 5 minutes.
The class with the highest frequency. If two classes tie, the first is shown.
The higher one. Classes include their lower limit and exclude their upper limit, except that the last class always holds the maximum.
No, this groups numbers. For categories, use the relative frequency calculator.
It starts at a multiple of the width for tidy limits. Set the first lower limit to choose your own.
It works well for roughly bell-shaped data up to a few hundred values. For large or skewed data sets it suggests too few classes.
Related Tools
Gaussian probabilities.
Z-score from probability.
Binary outcome probabilities.
Rare event frequency.
Time between events.
Equal probability distribution.