Home
JEE Maths
Median of Grouped Data

Median of Grouped Data 

The median of grouped data is the middle value of a dataset organized into class intervals. Unlike ungrouped data, where the median is a specific number, grouped data requires estimation using a formula. It helps identify the central tendency when exact values aren't available. By locating the median class and applying the median formula, we can effectively determine the approximate center of the data distribution. This method is widely used in statistics to analyze large, categorized datasets.

1.0What is the Median of Grouped Data?

The median is the middle value that separates the higher half from the lower half of a data set. For ungrouped data, it's relatively easy to calculate. However, when the data is grouped into classes (like in frequency tables), we need to use a different approach.

Grouped data doesn’t show individual values but rather the range in which values fall. Hence, finding the median of grouped data involves estimating the value that lies at the midpoint of the cumulative frequency distribution.

2.0Formula for Calculating Median of Grouped Data

To find the median of grouped data, use the following formula:

Where:

  • L = Lower boundary of the median class
  • N = Total frequency
  • CF = Cumulative frequency of the class before the median class
  • f = Frequency of the median class
  • h = Class width (upper boundary - lower boundary)

3.0Steps to Find the Median of Grouped Data

  1. Create a cumulative frequency column from the frequency distribution.
  2. Calculate N/2, where N is the total frequency.
  3. Identify the median class (the class interval whose cumulative frequency is just greater than or equal to N/2).
  4. Apply the median formula to get the result.

4.0Solved Examples of Median of Grouped Data

Example 1: Find the median of the following frequency distribution:

Class Interval

Frequency (f)

0 - 10

5

10 - 20

8

20 - 30

15

30 - 40

10

40 - 50

7

Solution: 

Step 1: Calculate cumulative frequency

Class Interval

Frequency (f)

Cumulative Frequency (CF)

0 - 10

5

5

10 - 20

8

13

20 - 30

15

28

30 - 40

10

38

40 - 50

7

45

Step 2: Find N and N/2

Total frequency, N = 45

N/2 = 22.5

Step 3: Locate the Median Class

The cumulative frequency just greater than 22.5 is 28, which corresponds to the class 20 - 30. So, this is our median class.

Step 4: Apply the Formula

  • L = 20
  • CF = 13
  • f = 15
  • h = 10

Final Answer: Median = 26.33

Example 2: Find the median of the following frequency distribution:

Class Interval

Frequency

0 - 10

4

10 - 20

6

20 - 30

8

30 - 40

10

40 - 50

7

Solution:

  1. Calculate cumulative frequency (CF):

Class Interval

Frequency

Cumulative Frequency

0 - 10

4

4

10 - 20

6

10

20 - 30

8

18

30 - 40

10

28

40 - 50

7

35

  1. Total frequency (N) = 35

N/2 = 35/2 = 17.5 

  1. Median class = 20 – 30 (CF just greater than 17.5 is 18)
  2. Apply the formula:
  • L = 20
  • CF = 10
  • f = 8
  • h = 10

Example 3: Find the median of the following frequency distribution:

Marks Range

Frequency

0 - 20

3

20 - 40

7

40 - 60

12

60 - 80

17

80 - 100

11

Solution:

Marks Range

Frequency

Cumulative Frequency

0 - 20

3

3

20 - 40

7

10

40 - 60

12

22

60 - 80

17

39

80 - 100

11

50

  • N = 50, N/2 = 25
  • Median class = 60 – 80
  • L = 60, CF = 22, f = 17, h = 20

Example 4: The median of the following data is 47.5. If the total frequency is 150, find the missing frequencies x and y.

Class Interval

Frequency

0 – 10

5

10 – 20

9

20 – 30

x

30 – 40

25

40 – 50

30

50 – 60

y

60 – 70

20

70 – 80

10

Solution: 

Step 1: Write total frequency equation

Sum of known frequencies:

5 + 9 + x + 25 + 30 + y + 20 + 10 = 99 + x + y 

Set total equal to 150:

x + y + 99 = 150 

(Eq ①)

Step 2: Find N/2 = 150/2 = 75

We need cumulative frequency to find median class

Build CF up to median class:

Class Interval

Frequency

CF

0 – 10

5

5

10 – 20

9

14

20 – 30

x

14 + x

30 – 40

25

x + 39

40 – 50

30

x + 69

50 – 60

y

x + 69 + y

We’re told median is 47.5 → So median class is 40 – 50

So:

  • L = 40
  • f = 30
  • CF before median = x + 39
  • h = 10
  • N/2 = 75

Step 3: Apply Median Formula

Step 4: Use Eq ① → x + y = 51

Final Answer: x = 14, y = 37

Example 5: In the table below, the median is 67, and the total frequency is 120. Find the values of x and y.

Class Interval

Frequency

0 – 20

7

20 – 40

13

40 – 60

x

60 – 80

30

80 – 100

y

100 – 120

10

120 – 140

8

Solution: 

Step 1: Total Frequency Equation

7 + 13 + x + 30 + y + 10 + 8 

Step 2: N/2 = 60

Build CF to find median class:

Class

f

CF

0 – 20

7

7

20 – 40

13

20

40 – 60

x

20 + x

60 – 80

30

20 + x + 30 = x + 50

Since median = 67 → Median class is 60 – 80

So:

  • L = 60
  • CF before median = 20 + x
  • f = 30
  • h = 20
  • N/2 = 60

Step 3: Apply Formula

Step 4: Find y from Eq ①

Final Answer: x = 29.5, y = 12.5

Example 6: The median of the following grouped data is 62.5, and the total number of observations is 180. Find x and y.

Class Interval

Frequency

0 – 20

12

20 – 40

x

40 – 60

30

60 – 80

50

80 – 100

y

100 – 120

28

Solution: 

Step 1: Total Frequency

12 + x + 30 + 50 + y + 28

 = 120 + x + y = 180 

Step 2: N/2 = 90

Build CF:

Class Interval

f

CF

0 – 20

12

12

20 – 40

x

12 + x

40 – 60

30

12 + x + 30 = x + 42

60 – 80

50

x + 92

Median = 62.5 → So median class = 60 – 80

So:

  • L = 60
  • f = 50
  • CF before median class = x + 42
  • h = 20

Step 3: Apply Formula

Step 4: Use Eq ①:

 

Final Answer: x = 41.75, y = 18.25

5.0Practice Questions on Median of Grouped Data 

Question 1: Find the median of the following frequency distribution:

Class Interval

Frequency

0 - 5

2

5 - 10

4

10 - 15

6

15 - 20

8

20 - 25

10

Question 2: Find the median of the following frequency distribution:

Age (years)

Frequency

0 - 10

5

10 - 20

8

20 - 30

12

30 - 40

6

40 - 50

4

Question 3: The median of the following data is 60, and the total frequency is 150. Find the missing frequencies x and y.

Class Interval

Frequency

0 – 20

8

20 – 40

12

40 – 60

x

60 – 80

30

80 – 100

y

100 – 120

28

120 – 140

10

Question 4: The median of the data below is 45, and the total frequency is 120. Find the values of x and y.

Test your Knowledge

question 1 of 4

What is the very first step required before beginning the calculation of the median for a set of grouped data?

1.Identify the lower boundary of the class with the highest frequency.
2.Create a new column that lists the cumulative frequency for every class interval.
3.Calculate the class mark (midpoint) of every class interval.
4.Divide the class width by the total frequency of the data set.

Frequently Asked Questions

Join ALLEN!

(Session 2026 - 27)


Choose class
Choose your goal
Preferred Mode
Choose State