Frequency Distribution Calculator

Build grouped and ungrouped frequency distribution tables with histograms, cumulative frequencies, relative frequencies, and class count rule comparison.

Minimum 3 values
Classes (k)
5
Class width: 5.60
Total (n)
15
15 unique values
Range
28.0000
67.00 to 95.00
Mean
80.8000
Arithmetic average
Mode(s)
67.00, 68.00, 70.00, 72.00, 74.00, 76.00, 79.00, 81.00, 84.00, 85.00, 88.00, 90.00, 91.00, 92.00, 95.00
Freq: 1
Max Class Freq
4
26.7% of data

Grouped Frequency Distribution

ClassMidpointFreqRel FreqCum FreqHistogram
[67.00, 72.60)69.80426.7%4 (26.7%)
[72.60, 78.20)75.40213.3%6 (40.0%)
[78.20, 83.80)81.00213.3%8 (53.3%)
[83.80, 89.40)86.60320.0%11 (73.3%)
[89.40, 95.00]92.20426.7%15 (100.0%)

Histogram Visualization

4
67
2
73
2
78
3
84
4
89

Ungrouped Frequency Table

ValueFrequencyRel FreqBar
67.000016.7%
68.000016.7%
70.000016.7%
72.000016.7%
74.000016.7%
76.000016.7%
79.000016.7%
81.000016.7%
84.000016.7%
85.000016.7%
88.000016.7%
90.000016.7%
91.000016.7%
92.000016.7%
95.000016.7%

Class Count Rules

RuleFormulaSuggested k
Sturges' Rule1 + 3.322 log₁₀(n)5
Square Root√n4
Rice Rule2 × n^(1/3)5
Cumulative Frequency Ogive Data
Upper BoundCum FreqCum Rel FreqOgive
72.60426.7%
78.20640.0%
83.80853.3%
89.401173.3%
95.0015100.0%
Planning notes, formulas, and examples

About the Frequency Distribution Calculator

The frequency distribution calculator organizes raw data into a frequency table, either grouped into class intervals or left ungrouped as individual values. It can choose the number of classes automatically with Sturges' rule, the square root rule, or a custom count.

For each class, the calculator computes absolute frequency, relative frequency, cumulative frequency, and cumulative relative frequency. It also displays a histogram and ogive data so you can inspect the shape of the distribution and how values accumulate across the range.

Enter your raw data, pick a class-count method, and use the table to see where observations cluster, where gaps appear, and how the distribution changes when values are grouped into ranges.

When This Page Helps

Use this calculator when a raw list of numbers needs to be turned into a readable summary. The grouped table is useful for continuous measurements, while the ungrouped table is better when there are only a few unique values.

The histogram and cumulative frequency data help you see both the overall shape and the running total of the distribution.

How to Use the Inputs

  1. Enter numbers separated by commas, spaces, or newlines (minimum 3 values).
  2. Select the number of classes: Auto (Sturges'), Square Root, or Custom.
  3. For custom, enter the desired number of classes.
  4. Review the grouped frequency table with class intervals, frequencies, and histogram bars.
  5. Check the ungrouped table (shown for ≤25 unique values) to see individual value counts.
  6. Compare class-count rules to decide if you want to adjust.
  7. Expand the ogive data section for cumulative frequency curve information.
Formula used
Sturges' Rule: k = 1 + 3.322 log₁₀(n). Square Root: k = √n. Rice Rule: k = 2n^(1/3). Class width = Range / k (rounded up). Relative frequency = class frequency / n. Cumulative frequency = running total.

Example Calculation

Result: 5 classes, width 6.0, most frequent class: [73, 79) with 3 values

With 15 values, Sturges' rule gives k = 5 classes. Range = 95 − 67 = 28, class width = 6. The classes span from 67 to 97, with the most populated class containing 3 values (20% of data).

Tips & Best Practices

  • Sturges' rule works best for roughly normal data with n < 200; for larger datasets, the square root or Rice rule often produces better results.
  • Choosing too few classes hides patterns; too many creates noise. Aim for 5–20 classes for most datasets.
  • Class intervals should be equal width for fair comparison. Use the last class as closed on both ends ([a, b]) to include the maximum.
  • Relative frequency is more informative than absolute frequency when comparing datasets of different sizes.
  • The cumulative relative frequency at 50% approximates the median; at 25% and 75% approximates quartiles.
  • If your data has natural groupings (like age decades), consider using meaningful boundaries instead of automatic widths.

Grouped and Ungrouped Views

Ungrouped frequency tables count each distinct value. Grouped tables combine values into ranges, which is more useful when the dataset has many different measurements or when you need a compact summary.

Choosing Class Counts

The number of classes changes how much detail the table shows. Too many classes can hide the pattern in noise, while too few can hide important clusters. That is why the calculator compares simple class-count rules before building the table.

Reading the Distribution

Relative frequency shows the share in each class, cumulative frequency shows the running total, and the histogram gives a quick visual check of the shape. Together they provide a clear starting point for more detailed statistical analysis.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A frequency distribution organizes data by counting how many values fall into each category or class interval. It transforms raw, unstructured data into a summary table that reveals the distribution shape — where values concentrate, how they spread, and whether there are gaps or clusters.