Grouped Data Calculator
NEWEnter class intervals and frequencies to get the mean, median, mode, quartiles, variance and standard deviation of grouped data, with a cumulative frequency table and the worked formulas.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
| Class | Boundaries | Midpoint (x) | f | Cumulative f | Relative % | f·x |
|---|---|---|---|---|---|---|
| 0 – 10 | 0 – 10 | 5 | 5 | 5 | 12.5% | 25 |
| 10 – 20 | 10 – 20 | 15 | 8 | 13 | 20% | 120 |
| 20 – 30 | 20 – 30 | 25 | 12 | 25 | 30% | 300 |
| 30 – 40 | 30 – 40 | 35 | 10 | 35 | 25% | 350 |
| 40 – 50 | 40 – 50 | 45 | 5 | 40 | 12.5% | 225 |
| Total | 40 | 100% | 1,020 | |||
The highlighted row is the modal class.
x = class midpoint, L = lower boundary of the class, CF = cumulative frequency before the class, f = frequency of the class, h = class width, f₀ and f₂ = frequencies (or densities for unequal widths) of the classes before and after the modal class; Me = median, Mo = mode.
Quick Examples
Typical inputs and the results this tool produces.
Overview
When data comes as a frequency table, such as ages in bands or exam marks in ranges, the individual values are lost and the usual formulas need the grouped versions. This calculator takes each class interval with its frequency and estimates the mean from the class midpoints, the median and quartiles by linear interpolation inside the class, and the mode with the grouped formula L + d₁ / (d₁ + d₂) × h.
It also gives the population and sample variance and standard deviation and builds the cumulative frequency table. Gaps such as 10–19 and 20–29 are closed with class boundaries, unequal widths use frequency density for the mode, and an open-ended class like 60+ gets a clear message asking for an assumed limit. Each result shows its formula with your numbers.
Why use this tool?
- Mean, median, mode, quartiles and SD in one pass
- Cumulative frequency table built for you
- Handles gaps between classes and unequal widths
- Sample and population variance side by side
- Type a table or paste rows from a spreadsheet
Features
Grouped formulas
Mean from midpoints, median and quartiles by interpolation, and the mode from the modal class and its neighbours.
Cumulative table
Class, boundaries, midpoint, frequency, cumulative frequency, relative frequency and f·x for every class, plus totals.
Gaps and widths
Classes with gaps get boundaries halfway between them; unequal widths are used per class and the mode switches to frequency density.
Clear errors
Open-ended classes, overlapping intervals, negative frequencies and a zero total each get their own message.
Paste from a sheet
Paste lines like 10-20 5 or tab-separated columns instead of typing every row.
Copy the results
Copy all statistics and the frequency table as tab-separated text for a report or spreadsheet.
How to Use
Enter the classes
Type the lower limit, upper limit and frequency of each class, or switch to Paste rows.
Check the messages
Fix any open-ended or overlapping class the tool points out.
Read the statistics
Mean, median, mode, quartiles, variance and standard deviation update as you type.
Review and copy
Check the cumulative table and worked formulas, then copy the results.