Summarize this article:
1277 LearnersLast updated on November 28, 2025

The median of grouped data is the middle value that divides the dataset into two equal halves. To calculate it, we find the cumulative frequency, identify the median class, and apply the median formula for grouped data.
The meaning of median is the middle value of a given distribution, and the median of grouped data remains the same as the meaning of median. In grouped data, we have data that is in the form of intervals or classes. We also have a median class to find the value of the median.
Let us see how to calculate the media of grouped data using an example.
Examples: Student Test Scores
How to find the median of grouped data for a class of 50 students.
| Marks (Class Interval) | Number of Students (f) | Cumulative Frequency (CF) |
| 0 - 10 | 4 | 4 |
| 10 - 20 | 8 | 12 |
| 20 - 30 | 15 | 27 |
| 30 - 40 | 12 | 39 |
| 40 - 50 | 11 | 50 |
Calculation
Step A: Locate the Median Class
First, calculate \(\frac{N}{2}\) where N is the total frequency.
N = 50
\(\frac{N}{2} = 25\)
Look for the class interval where the Cumulative Frequency (CF) is greater than or equal to 25.
The 20 - 30 group has a CF of 27. This is our Median Class.
Step B: Apply the Median of Grouped Data Formula
\(Median = L + \left( \frac{\frac{N}{2} - CF_{pre}}{f} \right) \times h\)
Where:
Step C: Solve
To calculate the median of grouped data, we follow the following steps:
Step 1: We have to find the total number of observations by summing up the frequencies that are given.
Step 2: After that, we need to find the median class, which is the class having cumulative frequency just greater than half of the total number of observations.
Step 3: Now we note the values of lower limit of median class (L), frequency of the median class (f), cumulative frequency of the class preceding median class (cf), and the class width (w).
Step 4: We then substitute the values in the given formula and calculate the median of grouped data.
\(Median = l + ((n/2 - cf)/f) x w\)
To compare between mean, median, and mode of grouped data let us see the following table:
| Mean | Median | Mode |
| The average of all values in the dataset. |
The middle value that divides the dataset into two equal halves. |
The most frequently occurring value in the dataset. |
| Uses all values in the dataset. |
Uses cumulative frequency to determine the middle class. |
Uses frequency of the classes to determine the most repeated class. |
| Affected by extreme values (skewed data can distort the mean). |
Less impacted by extreme values. |
Not impacted by extreme values. |
| Finding the central tendency when all data points are important. |
Finding the central value, especially when there are extreme values. |
Finding the most frequent observation. |
| Used in statistics, economics, and finance. |
Used in income distribution, exam scores, and hospital stays. |
Used in fashion trends, marketing, and sales analysis. |
| The formula is: \(Mean = Σ(fixi)/Σfi\) |
The formula is: \(Median = L + ((n/2 - cf)/f) × h\) |
The formula is: \(Mode = L + ((f1 – f0) ÷ (2f1 – f0 – f2)) × h\) |


Mastering the median of grouped data helps summarize large datasets effectively. These tips guide you to identify the median class and calculate it accurately.
The "Middle Student" Analogy: Start without numbers. Ask the student to imagine a school assembly where students are lined up by height in groups (e.g., 140-150cm group, 150-160cm group). Explain that finding the median is like walking down the line to find the exact student standing in the middle position. Since we only know which group they are in, we have to use a formula to estimate exactly where they stand within that group.
Visualize the Area Split: Use a histogram to show that the median is the "Equal Area Line." Draw a histogram on graph paper and explain that the median vertical line cuts the total area of the bars exactly in half (50% area on the left, 50% on the right). This visual connection helps them understand why we calculate N/2.
Explain Interpolation Simply: The most confusing part for students is often why the formula looks so complex. Explain that the formula is just "interpolation." It assumes the data points are spread out evenly inside the median class. We are simply calculating how far into that specific class we need to go to reach the middle count.
The "Running Total" (Cumulative Frequency): Before jumping to the formula, practice calculating Cumulative Frequency (cf) as a "running total." Use the analogy of a video game score or a bank savings account that keeps adding up. Emphasize that without the cf column, we cannot locate which group the middle value lives in.
Decode the Variables: Students typically get overwhelmed by the letters (L, f, cf, h). Create a "Cheat Sheet" where they label these variables in plain English alongside the math symbol:
L = The Starting Line (Lower limit of the median group)
h = The Step Size (Width of the class interval)
f = The Crowd Size (Frequency of the median group)
Use Discrete Examples First: Before using continuous grouped data (0-10, 10-20), revisit a simple list of numbers (e.g., 2, 5, 9, 12, 14). Show that the median is 9. Then group them and show how the formula gets us a value close to 9. This bridges the gap between what they already know (ungrouped median) and the new concept (grouped median).
Students tend to make mistakes when they solve problems related to the median of grouped data. Let us now see the common mistakes they make and the solutions to avoid them:
The median of grouped data is applied in income distribution, exam results, and healthcare analysis. Let us now see the various fields and applications we use in median of grouped data:
Income and wealth distribution analysis: We use the median of grouped data in income and wealth distribution, where Governments and economists use the median income to understand income inequality in a country.
Exam results: We use the median of grouped data in exam results, where schools and universities analyze students’ marks using the median to determine a typical student’s performance.
Healthcare and medical studies: We use the median of grouped data in medical studies and healthcare, where hospitals use the median length of hospital stays for specific treatments to measure healthcare efficiency.
Real estate pricing: Median property prices in a region are calculated using grouped data to understand typical housing costs and market trends.
Customer spending analysis: Retailers use the median of grouped data to determine the typical amount spent by customers, helping in pricing and marketing strategies.
Find the median of the following frequency distribution:
| Class Interval | Frequency |
| 10 – 20 | 5 |
| 20 – 30 | 8 |
| 30 – 40 | 12 |
| 40 – 50 | 5 |
The median is 31.67
Total Frequency (n) = 5 + 8 + 12 + 5 = 30
n/2 = 15
Cumulative Frequency:
10 – 20: 5
20 – 30: 5 + 8 =13
30 – 40: 13 + 12 = 25
40 – 50: 25 + 5 = 30
Identify the median class:
The first class where cumulative frequency is less than or equal to 15 is 30 – 40
Apply the formula:
\(Median = L + [n/2 - cf / f] × h = 30 + [(15-13)/12] ×10 = 30 +1.67 = 31.67\)
Given the age distribution below, find the median age:
| Class Interval | Frequency |
| 0 – 10 | 5 |
| 10 – 20 | 8 |
| 20 – 30 | 12 |
| 30 – 40 | 5 |
The median age is 17.5
Total Frequency:
n = 7 + 12 + 9 + 4 = 32
n/2 = 16
Cumulative frequency:
0-10: 7
10-20: 7 + 2 = 9
20-30: 19 + 9 = 28
30-40: 28 + 4 = 32
Median class is 10-20
Apply the formula:
\( L + [n/2 - cf / f] × h = 10 + (9/12 ×10)\)
= 10 + 7.5 = 17.5.
Find the median for the grouped data:
| Class Interval | Frequency |
| 5– 15 | 10 |
| 15 – 25 | 15 |
| 25 – 35 | 5 |
The median is 18.33
Total Frequency:
n = 10 + 15 + 5= 30
n/2 = 15
Cumulative frequency:
5-15: 10
15-25: 10 + 15 = 25
25-35: 25 + 5 = 30
Median class is 15-25
Apply the formula:
L + [n/2 - cf / f] × h = 15 + (5/15 × 10)
= 15 + 3.33 = 18.33.
Determine the median of the following data:
| Class Interval | Frequency |
| 0 – 5 | 3 |
| 5 – 10 | 7 |
| 10 – 15 | 10 |
| 15 – 20 | 5 |
| 20 – 25 | 2 |
The median class is 11.75.
Total Frequency:
n = 3 + 7 + 10 + 5 + 2 = 27
n/2 = 13.5
Cumulative frequency:
0-5: 3
5-10: 3 + 7 = 10
10-15: 10 + 10 = 20
15-20: 20 + 5 = 25
20-25: 25 + 2 = 27
Median class is 10-15
Apply the formula:
L + [n/2 - cf / f] × h = 10 + (3.5/10 × 5)
= 10 + 1.75 = 11.75.
An exam score distribution is given below. Find the median score:
| Class Interval | Frequency |
| 40 – 50 | 2 |
| 50 – 60 | 5 |
| 60 – 70 | 12 |
| 70 – 80 | 20 |
| 80 – 90 | 8 |
The median class is 72.25
Total Frequency:
n = 2 + 5 + 12 + 20 + 8 = 47
n/2 = 23.5
Cumulative frequency:
40-50: 2
50-60: 2 + 5 = 7
60-70: 7 + 12 = 19
70-80: 19 + 20 = 39
80-90: 39 + 8 = 47
Median class is 70-80
Apply the formula:
L + [n/2 - cf / f] × h = 70 + (4.5/20 × 10)
= 70 + 2.25 = 72.25.
Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref
: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!






