ExamSaathi learning library · School · CBSE Class 10 Mathematics 2026-27; teacher review pending · Mathematics
Median and mode of grouped data: median class and modal class
Estimate the median of grouped data from the median class and a cumulative frequency column, and the mode from the modal class and its two neighbours, including classes written with gaps.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Build a cumulative frequency column and locate the median class, the first class whose cumulative frequency reaches n / 2.
- Estimate the median of grouped data with median = L + ((n / 2 - cf) / f) x h.
- Identify the modal class and estimate the mode of grouped data with the mode formula.
- Change classes with gaps, such as 10-19 and 20-29, into class boundaries before using either formula.
Before you start
You need four things from a grouped table: the total frequency n, the class width h, the lower limit L of a class, and a column of cumulative frequencies. The cumulative frequency of a class is the running total of frequencies up to the end of that class, so it counts the values below its upper limit. For frequencies 5, 8 and 15, the cumulative frequencies are 5, 13 and 28. The formulas below assume that the values inside each class are spread evenly across it, so the median and the mode they give are estimates.
The median class and the median formula
Work out n / 2 first. The median class is the first class whose cumulative frequency is n / 2 or more. Then median = L + ((n / 2 - cf) / f) x h, where L is the lower limit of the median class, cf is the cumulative frequency of the class just before it, f is the frequency of the median class and h is the class width. The idea: cf values lie below the median class, so n / 2 - cf more values are needed from inside it, and its f values are spread over a width of h. For grouped data use n / 2, not (n + 1) / 2.
The modal class and the mode formula
When every class has the same width h, the modal class is the class with the highest frequency. Call its frequency f1, the frequency of the class before it f0 and the frequency of the class after it f2. Then mode = L + ((f1 - f0) / (2 x f1 - f0 - f2)) x h, where L is the lower limit of the modal class. The mode leans towards the busier neighbour: when f0 and f2 are equal, it falls exactly at the middle of the modal class. Both the rule and the formula rely on equal widths. If the widths differ, a wide class can have the largest frequency without being the most crowded, so each frequency must first be adjusted to a common width, a step this lesson does not cover. The CBSE curriculum leaves out bimodal tables, so expect a single clear peak.
Classes with gaps and classes at the edge
Some tables list classes such as 10-19, 20-29 and 30-39, with a gap of 1 between one class and the next. Before using either formula, change them to class boundaries: take half the gap, 0.5, off each lower limit and add it to each upper limit, giving 9.5-19.5, 19.5-29.5 and so on. L is then a boundary such as 19.5, and h = 10. If the modal class is the first class, there is no class before it, so f0 = 0; if it is the last class, f2 = 0. When the median class is the first class, cf = 0.
Common mistakes
Choosing the median class by the highest frequency mixes it up with the modal class. In the median formula, cf belongs to the class before the median class, not to the median class itself. In the mode formula the top line is f1 - f0, and the bottom line 2 x f1 - f0 - f2 deserves a second look, because a slip there changes the whole answer. Switch to class boundaries whenever the classes have gaps. Last, each answer should fall inside its own class; a median outside the median class, or a mode outside the modal class, means something went wrong.
Step by step
For the median: add a cumulative frequency column, find n / 2, pick the first class whose cumulative frequency reaches it, note L, cf, f and h, then substitute. For the mode: check that the classes have equal widths, find the largest frequency, note f1 with its neighbours f0 and f2, note L and h, then substitute. In both cases convert gapped classes to boundaries first, keep fractions exact until the last step, and give the answer with its unit, such as kg or marks.
Worked examples
The weights of 50 students are grouped as 40-45 kg: 5, 45-50: 8, 50-55: 15, 55-60: 12, 60-65: 6 and 65-70: 4. Estimate the median weight.
- Cumulative frequencies: 5, 13, 28, 40, 46 and 50, and n / 2 = 50 / 2 = 25.
- The first cumulative frequency to reach 25 is 28, so the median class is 50-55.
- L = 50, cf = 13 (from the class before), f = 15 and h = 5.
- Median = 50 + ((25 - 13) / 15) x 5 = 50 + (12 / 15) x 5 = 50 + 4 = 54.
Answer: The median weight is about 54 kg.
For the same 50 weights (40-45: 5, 45-50: 8, 50-55: 15, 55-60: 12, 60-65: 6 and 65-70: 4), estimate the mode.
- The highest frequency is 15, so the modal class is 50-55, with L = 50 and h = 5.
- f1 = 15, f0 = 8 (class 45-50) and f2 = 12 (class 55-60).
- Mode = 50 + ((15 - 8) / (2 x 15 - 8 - 12)) x 5 = 50 + (7 / 10) x 5 = 50 + 3.5 = 53.5.
- The mode lies in the upper half of its class because the class after it (12) is busier than the class before it (8).
Answer: The mode is about 53.5 kg.
In a class test, 40 students scored marks in these classes: 10-19: 4, 20-29: 9, 30-39: 14, 40-49: 8 and 50-59: 5. Estimate the median mark.
- The classes have gaps, so use the boundaries 9.5-19.5, 19.5-29.5, 29.5-39.5, 39.5-49.5 and 49.5-59.5, with h = 10.
- Cumulative frequencies: 4, 13, 27, 35 and 40, and n / 2 = 20.
- 27 is the first cumulative frequency to reach 20, so the median class is 29.5-39.5, with L = 29.5, cf = 13 and f = 14.
- Median = 29.5 + ((20 - 13) / 14) x 10 = 29.5 + 5 = 34.5.
Answer: The median mark is about 34.5.
Practice checks
- Frequencies for the classes 0-10, 10-20, 20-30, 30-40 and 40-50 are 8, 14, 12, 16 and 10. The median class is:
- In a grouped table, n = 80, the median class is 30-40, the cumulative frequency before it is 32 and its frequency is 16. The median is:
- The modal class is 40-50 with frequency 20, and the classes before and after it have frequencies 14 and 16. The mode is:
- The classes are 25-34, 35-44 and 45-54. The class boundaries of 35-44 are:
- In a table with class width 20, the first class 0-20 has the highest frequency, 18, and the next class has frequency 12. The mode is:
Sources checked
- CBSE Mathematics curriculum, Class X (2026-27) — Unit VII Statistics and Probability (Statistics) (Median and mode of grouped data); confirm the unit name in this document; draft topic mapping, not an examinability guarantee
- OpenStax, Introductory Statistics 2e — Chapter 2 Key Terms: class interval, frequency table for grouped data, the median as the number that splits ordered data into halves and the mode as the most frequent value; mathematical relationships only