Why this chapter matters. This chapter gave 12 questions in the 6 papers from CDS I 2024 to CDS II 2026, about 2 in every paper. Three ask for the median of a list of numbers, twice with an unknown โxโ in the list. Two ask for the median and the mode of a small frequency table. Five ask for the median or the mode of a grouped table, where a formula must be known by heart; in two of them the median is given and a missing frequency is asked. Two are one-line questions on what kind of average the median is. The two formulas are short, and each question uses only one of them.
What you will be able to do
- Find the median and the mode of a list of numbers, and find an unknown in the list when the median is given.
- Find the median and the mode of a frequency table of single values.
- Use the formulas for the median and the mode of a grouped table, also when the classes have gaps or the table is cumulative.
- Say how the mean, the median and the mode differ, and which of them an extreme value disturbs.
Before you start you should know: class limits, true limits and cumulative frequency (Chapter A7-1), and the mean (Chapter A7-3).
1. The median of a list
The median is the middle value when the observations are arranged in order. Half of the observations lie on each side of it.
First arrange the numbers in order. Then, for โnโ observations:
- if โnโ is odd, the median is the observation at position โ\dfrac{n + 1}{2}โ;
- if โnโ is even, the median is the mean of the two middle observations, at positions โ\dfrac{n}{2}โ and โ\dfrac{n}{2} + 1โ.
For 3, 5, 8, 9, 12 the median is the 3rd value, 8. For 3, 5, 8, 9 it is โ\frac{5 + 8}{2} = 6.5โ.
The median looks only at the middle. Change the largest value of 2, 3, 4, 5, 6 to 600. The median is still 4, but the mean jumps from 4 to 122.8. So a change in one observation moves the median only if it changes which values stand in the middle.
An unknown in the list. If the list is given in order and the median is given, the middle position gives an equation. Solve it, and then check that the answer keeps the list in order (Example 2).
2. The median of a frequency table
When each value has a frequency, do not write the list out. Use the running total.
| โxโ | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| โfโ | 4 | 12 | 9 | 7 | 3 |
| Running total | 4 | 16 | 25 | 32 | 35 |
There are โN = 35โ observations, so the median is the observation at position โ\frac{35 + 1}{2} = 18โ. The running total shows that positions 1 to 4 hold the value 1, positions 5 to 16 hold the value 2, and positions 17 to 25 hold the value 3. The 18th observation is 3. The median is 3.
The rule: the median is the first value whose running total reaches the middle position.
3. The median of a grouped table
In a grouped table the single values are not known, so the median is estimated. Let โNโ be the total frequency. The median class is the first class whose running total reaches โ\dfrac{N}{2}โ. Then
\text{Median} = l + \frac{\dfrac{N}{2} - cf}{f} \times h
| Letter | Meaning |
|---|---|
| โlโ | lower limit of the median class |
| โcfโ | running total of the class before the median class |
| โfโ | frequency of the median class |
| โhโ | class width |
Take the table of 50 students whose mean was found in Chapter A7-3.
| Marks | 0-10 | 10-20 | 20-30 | 30-40 | 40-50 |
|---|---|---|---|---|---|
| Number of students | 5 | 8 | 15 | 16 | 6 |
| Running total | 5 | 13 | 28 | 44 | 50 |
Here โ\frac{N}{2} = 25โ. The running total first reaches 25 in the class 20-30. So โl = 20โ, โcf = 13โ, โf = 15โ, โh = 10โ, and
\text{Median} = 20 + \frac{25 - 13}{15} \times 10 = 20 + 8 = 28
Why the formula works. Below 20 there are 13 students. To reach the 25th we need 12 more, out of the 15 students in the class 20-30. Taking those 15 to be spread evenly over the class, we must go โ\frac{12}{15}โ of the way across it: โ\frac{12}{15} \times 10 = 8โ marks beyond 20.

Three cautions:
- In the grouped formula use โ\dfrac{N}{2}โ, whether โNโ is odd or even. Do not use โ\dfrac{N + 1}{2}โ here.
- If the classes have gaps (18-26, 27-35), close the gaps first: 17.5-26.5, 26.5-35.5. Then โlโ and โhโ come from the true limits (Chapter A7-1, section 3).
- If the table is cumulative ("Less than 10: 5, Less than 20: 30"), the running totals are already there. Get โfโ by subtracting neighbours.
4. The mode
The mode is the value that occurs most often. In 2, 3, 3, 5, 3, 7 the mode is 3.
In a frequency table of single values the mode is the value with the highest frequency. In the table of section 2 the highest frequency is 12, so the mode is 2. Take care: the mode is the value, 2, not the frequency, 12.
A list can have two modes (4, 4, 6, 6, 9 has modes 4 and 6), or none if no value repeats.
5. The mode of a grouped table
The modal class is the class with the highest frequency. Call its frequency โf_1โ, the frequency of the class before it โf_0โ, and the frequency of the class after it โf_2โ. Then
\text{Mode} = l + \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \times h
where โlโ is the lower limit of the modal class and โhโ is the class width.
In the table of section 3 the highest frequency is 16, in the class 30-40. So โl = 30โ, โf_1 = 16โ, โf_0 = 15โ, โf_2 = 6โ, and
\text{Mode} = 30 + \frac{16 - 15}{32 - 15 - 6} \times 10 = 30 + \frac{10}{11} \approx 30.9
A way to remember the fraction: the top is the step up to the modal class, โf_1 - f_0โ. The bottom is the step up plus the step down, โ(f_1 - f_0) + (f_1 - f_2)โ. The mode is pulled towards the neighbour with the larger frequency.
6. Mean, median and mode compared
The three are called measures of central tendency: each gives one value that stands for the whole data.
| Mean | Median | Mode | |
|---|---|---|---|
| How it is found | by a formula from all the values | from the middle position | from the highest frequency |
| Does one extreme value move it? | yes, strongly | hardly at all | no |
| Name used in books | mathematical average | positional average | the most frequent value |
The geometric mean and the harmonic mean are also worked out from all the values, so an extreme value moves them too. Of all the averages, the median is the least affected by extreme values, and the median is the positional average. CDS II 2025 asked both facts as one-line questions (Q91 and Q96).
The picture shows the nine observations 1, 2, 2, 2, 4, 6, 7, 8, 13. The mode is 2, the median (the 5th value) is 4, and the mean is โ\frac{45}{9} = 5โ. The one large value, 13, pulls the mean to the right. It does not move the median or the mode.

Two more facts:
- If the same number is added to every observation, or every observation is multiplied by the same positive number, the median and the mode change in the same way as the mean (Chapter A7-3, section 3).
- For a table with one peak that is not far from symmetric, a rule of thumb links the three: โ\text{Mode} \approx 3\,\text{Median} - 2\,\text{Mean}โ. For the table of section 3, โ3 \times 28 - 2 \times 27 = 30โ, close to the mode 30.9. It is an approximate rule, not an exact one. Here the mean is the smallest of the three and the mode the largest, because the thin lower classes pull the mean down.

Worked examples
Example 1. Find the median and the mode of 4, 3, 9, 5, 3, 8, 3. Then find the median of 20, 4, 12, 16, 8, 10.
In order: 3, 3, 3, 4, 5, 8, 9. There are 7 values, so the median is the 4th, which is 4. The mode is 3. The second list in order is 4, 8, 10, 12, 16, 20. There are 6 values, so the median is the mean of the 3rd and 4th: โ\frac{10 + 12}{2} = 11โ.
Example 2. The numbers 5, 8, 11, โxโ, โx + 4โ, 20, 23, 30 are in ascending order and their median is 15. Find โxโ.
There are 8 numbers, so the median is the mean of the 4th and 5th: โ\frac{x + (x + 4)}{2} = 15โ. So โ2x + 4 = 30โ and โx = 13โ. Check the order: the list is 5, 8, 11, 13, 17, 20, 23, 30. It is in order, so โx = 13โ stands.
Example 3. A table is printed as: Less than 10: 4, Less than 20: 14, Less than 30: 32, Less than 40: 44, Less than 50: 50. Find the median and the mode.
The figures are running totals, and โN = 50โ. Subtract neighbours: the classes 0-10 to 40-50 have 4, 10, 18, 12 and 6 students.
Median. โ\frac{N}{2} = 25โ. The running total first reaches 25 in the class 20-30, so โl = 20โ, โcf = 14โ, โf = 18โ, โh = 10โ. Median โ= 20 + \frac{25 - 14}{18} \times 10 = 20 + 6.11 = 26.11โ.
Mode. The highest frequency is 18, in 20-30, so โf_1 = 18โ, โf_0 = 10โ, โf_2 = 12โ. Mode โ= 20 + \frac{18 - 10}{36 - 10 - 12} \times 10 = 20 + \frac{80}{14} \approx 25.71โ.
From the real papers
The first three questions are from CDS I 2024, CDS I 2025 and CDS II 2025 (Series A), and the answers agree with the final official key. The fourth and fifth are from the 2026 papers, where the official key is still provisional; our answers agree with it. Try each for 72 seconds before reading the solution.
CDS I 2024, Q15. Consider the following data : 110, 41, 43, 95, 127, 99, 61, 92, 71, 93, 110, 36. If 93 is replaced by 94, then consider the following statements :
The difference between new median and old median is 1.
The difference between new mean and old mean is less than 0ยท1.
The difference between new mode and old mode is zero.
Which of the statements given above are correct?
(a) 1 and 2 only (b) 2 and 3 only (c) 1 and 3 only (d) 1, 2 and 3
Solution. In order: 36, 41, 43, 61, 71, 92, 93, 95, 99, 110, 110, 127. There are 12 values, so the median is the mean of the 6th and 7th: โ\frac{92 + 93}{2} = 92.5โ. After the change it is โ\frac{92 + 94}{2} = 93โ. The difference is 0.5, so statement 1 is wrong. The total rises by 1, so the mean rises by โ\frac{1}{12} \approx 0.083โ, which is less than 0.1: statement 2 is correct. The mode is 110 before and after: statement 3 is correct. Answer (b).
CDS I 2025, Q87. Consider the following for the next five (05) items that follow : The frequency distribution of 205 observations on X is given below :
| X | 3 | 5 | 6 | 7 |
|---|---|---|---|---|
| Frequency | โfโ | โf + 2โ | โf - 3โ | โf + 6โ |
What is the median of the frequency distribution?
(a) 3 (b) 5 (c) 6 (d) It cannot be determined from the given data
Solution. The frequencies add up to 205, so โ4f + 5 = 205โ and โf = 50โ. The frequencies are 50, 52, 47, 56 and the running totals are 50, 102, 149, 205. With 205 observations the median is at position โ\frac{205 + 1}{2} = 103โ. The running total passes 103 at the value 6. (The next item, Q88, asked for the mode: the highest frequency is โf + 6 = 56โ, so the mode is 7.) Answer (c).
CDS II 2025, Q99. For the following two (02) items: Consider the following distribution having median value 24:
| Marks | Number of Students |
|---|---|
| Less than 10 | 5 |
| Less than 20 | 30 |
| Less than 30 | โ30 + kโ |
| Less than 40 | โ48 + kโ |
| Less than 50 | โ55 + kโ |
What is the value of โkโ?
(a) 20 (b) 22 (c) 25 (d) 30
Solution. Subtract neighbours: the classes 0-10 to 40-50 have 5, 25, โkโ, 18 and 7 students, and โN = 55 + kโ. The median 24 lies in the class 20-30, so โl = 20โ, โcf = 30โ, โf = kโ, โh = 10โ. The formula gives โ20 + \frac{\frac{55 + k}{2} - 30}{k} \times 10 = 24โ. So โ\frac{55 + k}{2} - 30 = 0.4kโ, which gives โ0.1k = 2.5โ and โk = 25โ. Check: โN = 80โ, โ\frac{N}{2} = 40โ, and โ20 + \frac{40 - 30}{25} \times 10 = 24โ. Answer (c).
CDS I 2026, Q40. The numbers 59, 53, 51, 43, 36, โ(8x + 1)โ, โ(x^2 + 1)โ, 13, 12, 9, 7, 3 are written in descending order and their median is 25. What is/are the values of x?
(a) โ-12โ only (b) 4 only (c) โ-12โ, 4 (d) 12, โ-4โ
Solution. There are 12 numbers, so the median is the mean of the 6th and 7th: โ\frac{(8x + 1) + (x^2 + 1)}{2} = 25โ. So โx^2 + 8x - 48 = 0โ, that is โ(x + 12)(x - 4) = 0โ, and โx = 4โ or โx = -12โ. Now check the order. For โx = 4โ the two terms are 33 and 17, which fit between 36 and 13. For โx = -12โ the 6th term is โ-95โ, which breaks the descending order. Only โx = 4โ stands. Answer (b). (Provisional key.)
CDS II 2026, Q96. Consider the following grouped data:
| Class | 0 โ 10 | 10 โ 20 | 20 โ 30 | 30 โ 40 | 40 โ 50 |
|---|---|---|---|---|---|
| Frequency | 4 | 8 | 15 | 10 | 3 |
What is the mode of the above distribution?
(a) 25ยท83 (b) 25ยท43 (c) 25ยท00 (d) 24ยท73
Solution. The highest frequency is 15, so the modal class is 20-30, with โl = 20โ, โf_1 = 15โ, โf_0 = 8โ, โf_2 = 10โ and โh = 10โ. Mode โ= 20 + \frac{15 - 8}{30 - 8 - 10} \times 10 = 20 + \frac{70}{12} = 25.83โ. A quick check without the formula: the class after has a larger frequency than the class before, so the mode lies above the middle of the class, 25. Only option (a) is above 25. Answer (a). (Provisional key.)
A question from CDS II 2024 (no official key was published; the answer is our own working)
CDS II 2024, Q54. Consider the following for the next two (02) items that follow: A frequency distribution is as follows:
| Marks | 18-26 | 27-35 | 36-44 | 45-53 | 54-62 | 63-71 | 72-80 |
|---|---|---|---|---|---|---|---|
| Number of students | 5 | 7 | 10 | 15 | 8 | 3 | 2 |
What is the median of the distribution?
(a) 44.9 (b) 45.5 (c) 45.9 (d) 46.3
Solution. The classes have gaps (26 to 27), so close them first: 17.5-26.5, 26.5-35.5, 35.5-44.5, 44.5-53.5 and so on. Each has width 9. โN = 50โ, so โ\frac{N}{2} = 25โ. The running totals are 5, 12, 22, 37, so the median class is 44.5-53.5 with โl = 44.5โ, โcf = 22โ, โf = 15โ, โh = 9โ. Median โ= 44.5 + \frac{25 - 22}{15} \times 9 = 44.5 + 1.8 = 46.3โ. Answer (d).
In the three questions that needed a formula, most of the work was in reading the table: closing a gap, subtracting neighbours, or finding the right class.
Mistakes that cost marks
- Taking the median without arranging the data. Sort first. For an even number of values, take the mean of the two middle ones.
- Using the wrong โcfโ. In the median formula, โcfโ is the running total of the class before the median class, not of the median class itself.
- Giving the frequency as the mode. The mode is the value (or the point in the modal class) that has the highest frequency. It is not the frequency.
- Keeping an answer that breaks the order. When an unknown stands in an ordered list, put each root back and check the order.
Quick check
Do these without help. Answers are at the end.
- Find the median and the mode of 7, 2, 9, 2, 5, 11, 2, 8.
- Find the median and the mode of the table: โxโ = 10, 20, 30, 40 with โfโ = 3, 6, 8, 4.
- For the median class of a table, โl = 30โ, โN = 60โ, โcf = 22โ, โf = 20โ and โh = 10โ. Find the median.
- For the modal class of a table, โl = 40โ, โf_1 = 20โ, โf_0 = 12โ, โf_2 = 8โ and โh = 10โ. Find the mode.
- The numbers 6, 9, โxโ, โx + 2โ, 20, 24 are in ascending order and their median is 13. Find โxโ.
Read and watch more, free
| What | Where | Language |
|---|---|---|
| Textbook, median and mode of grouped data | NCERT Class 10 Mathematics, Chapter 13 Statistics ยท Hindi edition | English, Hindi |
| Textbook, median and mode of a list | NCERT Class 7 Ganita Prakash Part II, Chapter 5 Connecting the Dots, section 5.2 ยท Hindi edition | English, Hindi |
| Self-study notes | NIOS Secondary Mathematics, Lesson 25 Measures of Central Tendency ยท Hindi edition | English, Hindi |
| Practice with answers | NCERT Exemplar Class 10, Unit 13 Statistics ยท Hindi edition | English, Hindi |
| The real papers | UPSC previous question papers | English, Hindi |
| Video, a full CDS course | R.S SIR: Maths Playlist for CDS 2025 (the statistics lesson, about 55 minutes) | Hindi and Hinglish |
| Video, numbered classes | Chandigarh Career Group: CDS advance maths by Sandeep Brar (the five statistics classes) | Hinglish |
| Video, in Hindi | Rojgar with Ankit Defence: CDS 01 2025, Maths By Neeraj Baisla Sir (the six statistics lessons) | Hindi |
The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.
Answers to the quick check
- In order: 2, 2, 2, 5, 7, 8, 9, 11. Median โ= \frac{5 + 7}{2} = 6โ. Mode โ= 2โ.
- โN = 21โ, so the median is the 11th value. The running totals are 3, 9, 17, 21, so the median is 30. The highest frequency is 8, so the mode is 30.
- โ30 + \frac{30 - 22}{20} \times 10 = 34โ.
- โ40 + \frac{20 - 12}{40 - 12 - 8} \times 10 = 40 + \frac{8}{20} \times 10 = 44โ.
- โ\frac{x + (x + 2)}{2} = 13โ, so โx = 12โ. The list 6, 9, 12, 14, 20, 24 is in order.
Next chapter: How CDS asks: statement questions, data sufficiency and linked items.