Median is defined as the middle term of the given set of data if the data is arranged either in ascending or descending order.
Example: Suppose we have the height of 5 friends as 167 cm, 169 cm, 171 cm, 174 cm, 179 cm. Now clearly observing the data we see that 171 cm is the middle term in the given data thus, we can say that the median height of the friends is, 171 cm.
In this article, we will learn about the median, its formula for grouped and ungrouped data, examples of median, and others in detail.
Median is the middle value of the dataset when arranged in ascending or descending order. If the dataset has an odd number of values, the median is the middle value. If the dataset has an even number of values, the median is the average of the two middle values.
A median divides the data into two halves. Median is among one of the three measures of central tendency and finding the median gives us very useful insight into the given set of data.
The three measures of the central tendency are,
Read more on Mean and Mode.
Various examples of the median are:
Example 1: Median salary of five friends, where the individual salary of each friend is, 74,000, 82,000, 75,000, 96,000, and 88,000. First arranged in ascending order 74,000, 75,000, 82,000, 88,000, and 96,000 then by observing the data we get the median salary as 82,000.
Example 1: Median Age of a Group- Consider a group of people ages 25, 30, 27, 22, 35, and 40. First, arrange the ages in ascending order: 22, 25, 27, 30, 35, 40. The median age is the middle value, which is 30 in this case.
Example 1: Median Test Scores- In a class, the test scores of 10 students are 78, 85, 90, 72, 91, 68, 80, 95, 87, and 81. Arrange them in ascending order: 68, 72, 78, 80, 81, 85, 87, 90, 91, and 95. Since there are an even number of scores, the median is the average of the two middle values, which are 81 and 85. The median test score is (81 + 85) / 2 = 83.
As we know median is the middle term of any data, and finding the middle term when the data is linearly arranged is very easy, the method of calculating the median varies when the given number of data is even or odd, for example, if we have 3(odd-numbered) data 1, 2, and 3 then 2 is the middle term as it has one number to its left and one number to its right.
So finding the middle term is quite simple, but when we are given with even number of data(say 4 data sets), 1, 2, 3, and 4, then finding the median is quite tricky as by observing we can see that there is no single middle term then for finding the median we use a different concept.
Here, we will learn about the median of grouped and ungrouped data in detail.
Median formula is calculated by two methods,
- Median Formula (when n is Odd)
- Median Formula (when n is Even)
Now let’s learn about these formulas in detail.
If the number of values (n value) in the data set is odd then the formula to calculate the median is,

If the number of values (n value) in the data set is even then the formula to calculate the median is:

Grouped data is the data where the class interval frequency and cumulative frequency of the data are given. The median of the grouped data median is calculated using the formula,
Median = l + [(n/2 – cf) / f]×h
where,
- l is Lower Limit of Median Class
- n is Number of Observations
- f is Frequency of Median Class
- h is Class Size
- cf is Cumulative Frequency of Class Preceding Median Class
We can understand the use of the formula by studying the example discussed below,
Example: Find the Median of the following data,
If the marks scored by the students in a class test out of 50 are,
| Marks |
0-10 |
10-20 |
20-30 |
30-40 |
40-50 |
| Number of Students |
5 |
8 |
6 |
6 |
5 |
Solution:
For finding the Median we have to build a table with cumulative frequency as,
| Marks |
0-10 |
10-20 |
20-30 |
30-40 |
40-50 |
| Number of Students |
5 |
8 |
6 |
6 |
5 |
| Cumulative Frequency |
0+5 = 5 |
5+8 = 13 |
13+6 = 19 |
19+6 = 25 |
25+5 = 30 |
n = ∑fi = 5+8+6+6+5 = 30(even)
n/2 = 30/2 = 15
Median Class = 20-30
Now using the formula,
Median = l + [(n/2 – cf) / f]×h
Comparing with the given data we get,
- l = 20
- n = 30
- f = 6
- h = 10
- cf = 13
Median = 20 + [(15 – 10)/6]×10
= 20 + 5/3
= 60/3 + 5/3
= 65/3 = 21.67 (approx)
Thus, the median mark of the class test is 21.67
To find the median of the data we can use the steps discussed below,
Step 1: Arrange the given data in ascending or descending order.
Step 2: Count the number of data values(n)
Step 3: Use the formula to find the median if n is even, or the median formula when n is odd, accordingly based on the value of n from step 2.
Step 4: Simplify to get the required median.
Study the following example to get an idea about the steps used.
Example: Find the median of given data set 30, 40, 10, 20, and 50
Solution:
Median of the data 30, 40, 10, 20, and 50 is,
Step 1: Order the given data in ascending order as:
10, 20, 30, 40, 50
Step 2: Check if n (number of terms of data set) is even or odd and find the median of the data with respective ‘n’ value.
Step 3: Here, n = 5 (odd)
Median = [(n + 1)/2]th term
Median = [(5 + 1)/2]th term = 33r term = 30
Thus, the median is 30.
Median formula has various applications, this can be understood with the following example, in a cricket match the scores of the five batsmen A, B C, D, and E are 29, 78, 11, 98, and 65 then the median run of the five batsmen is,
First arrange the run in ascending order as, 11, 29, 65, 78, and 98. Now by observing we can clearly see that the middle term is 65. thus the median run score is 65.
For two numbers finding the middle term is a bit tricky as for two numbers there is no middle term, so we find the median as we find the mean by adding them and then dividing it by two. Thus, we can say that the median of the two numbers is the same as the mean of the two numbers. Thus, the median of the two numbers a and b is,
Median = (a + b)/2
Now let’s understand this using an example, find the median of the following 23 and 27
Solution:
Median = (23 + 27)/2
Median = 50/2
Median = 25
Thus, median of 23 and 27 is 25.
Read More,
Example 1: Find the median of the given data set 60, 70, 10, 30, and 50
Solution:
Median of the data 60, 70, 10, 30, and 50 is,
Step 1: Order the given data in ascending order as:
10, 30, 50, 60, 70
Step 2: Check if n (number of terms of data set) is even or odd and find the median of the data with respective ‘n’ value.
Step 3: Here, n = 5 (odd)
Median = [(n + 1)/2]th term
Median = [(5 + 1)/2]th term = 3rd term
= 50
Example 2: Find the median of the given data set 13, 47, 19, 25, 75, 66, and 50
Solution:
Median of the data 13, 47, 19, 25, 75, 66, and 50 is,
Step 1: Order the given data in ascending order as:
13, 19, 25, 47, 50, 66, 75
Step 2: Check if n (number of terms of data set) is even or odd and find the median of the data with respective ‘n’ value.
Step 3: Here, n = 7 (odd)
Median = [(n + 1)/2]th term
Median = [(7 + 1)/2]th term = 4th term
= 47
Example 3: Find the Median of the following data,
If the marks scored by the students in a class test out of 100 are,
| Marks |
0-20 |
20-40 |
40-60 |
60-80 |
80-100 |
| Number of Students |
5 |
7 |
9 |
4 |
5 |
Solution:
For finding the Median we have to build a table with cumulative frequency as,
| Marks |
0-20 |
20-40 |
40-60 |
60-80 |
80-100 |
| Number of Students |
5 |
7 |
9 |
4 |
5 |
| Cumulative Frequency |
0+5 = 5 |
5+7 = 12 |
12+9 = 21 |
21+4 = 25 |
25+5 = 30 |
n = ∑fi = 5+7+9+4+5 = 30(even)
n/2 = 30/2 = 15
Median Class = 40-60
Now using the formula,
Median = l + [(n/2 – cf) / f]×h
Comparing with the given data we get,
- l = 40
- n = 30
- f = 9
- h = 10
- cf = 21
Median = 20 + [(15 – 21)/6]×10
= 40 – 1/10
= 40 – 0.1
= 39.9
Thus, the median mark of the class test is 39.9
Conclusion
Median is an important statistical measure that helps us find the middle value of a dataset. It is especially useful when the data contains extreme values, as it provides a better representation of the central tendency compared to the mean. Calculating the median is simple and offers an easy way to understand the distribution of values in a set.
Median is defined as the middle term of the given data when the data is arranged in, ascending or descending order.
Relationship between mean median and mode is:
Mode = 3 Median – 2 Mean
Formula for calculating the median when the given ‘n’ is an even number,
Median = [(n/2)th term + {(n/2) + 1}th term] / 2
Formula for calculating the median when the given ‘n’ is an odd number,
Median = [(n + 1)/2]th term
Formula for calculating the median of grouped data is,
Median = l + [(n/2 – cf) / f]×h
To find median in statistics, we can use the following steps:
- Step 1: Arrange the data in ascending order (from smallest to largest).
- Step 2: If the dataset has an odd number of values, the median is the middle value.
- Step 3: If the dataset has an even number of values, the median is the average of the two middle values.
The median of 7 and 7 is 7.
8, 5, 7, 9, 11, 6, 10 arranged in ascending order is 5, 6, 7, 8, 9, 10, 11 and thus, the median of given data is, 8.
7 6 4 8 2 5 and 11 arranged in ascending order is 2, 4, 5, 6, 7, 8, 11 and thus, the median of given data is, 6.
Similar Reads
Statistics in Maths
Statistics in Maths: Statistics constitutes a mathematical discipline focused on gathering, scrutinizing, interpreting, and portraying data. While some view it as a standalone scientific field, others classify it as a separate branch within mathematics. In simpler words, it is a field to collect and
11 min read
Introduction to Statistics
Mean
Mean in Statistics
Mean in Mathematics is the measure of central tendency and is mostly used in Statistics. Mean is the easiest of all the measures. Data is of two types, Grouped data and ungrouped data. The method of finding the mean is also different depending on the type of data. Mean is generally the average of a
15+ min read
How to find Mean of grouped data by direct method?
Statistics involves gathering, organizing, analyzing, interpreting, and presenting data to form opinions and make decisions. Applications range from educators computing average student scores and government officials conducting censuses to demographic analysis. Understanding and utilizing statistica
9 min read
How to Calculate Mean using Step Deviation Method?
Step Deviation Method is a simplified way to calculate the mean of a grouped frequency distribution, especially when the class intervals are uniform. In simple words, statistics implies the process of gathering, sorting, examining, interpreting and then understandably presenting the data to enable o
7 min read
Frequency Distribution - Table, Graphs, Formula
Frequency Distribution is a tool in statistics that helps us organize the data and also helps us reach meaningful conclusions. It tells us how often any specific values occur in the dataset. A frequency distribution in a tabular form organizes data by showing the frequencies (the number of times val
12 min read
Cumulative frequency Curve
In statistics, graph plays an important role. With the help of these graphs, we can easily understand the data. So in this article, we will learn how to represent the cumulative frequency distribution graphically. Cumulative FrequencyThe frequency is the number of times the event occurs in the given
10 min read
Mean Deviation
We define the mean deviation of the data set as the value which tells us how far each data is from the centre point of the data set. The centre point of the data set can be the Mean, Median or Mode. Thus, the mean of the deviation of all the data in a set from the centre point of the data set is cal
12 min read
Standard Deviation - Formula, Examples & How to Calculate
Standard deviation is a fundamental concept in statistics that measures the dispersion of data points which defines the extent to which data points in a dataset deviate from the mean, providing a clear sense of the variability or spread within the data. The standard deviation formula is used to find
15+ min read
Variance
Variance is a measurement value used to find how the data is spread concerning the mean or the average value of the data set. It is used to find the distribution of data in the dataset and define how much the values differ from the mean. The symbol used to define the variance is σ2. It is the square
13 min read
Difference between Correlation and Regression
In the realm of data analysis and statistics, these two techniques play an important role- Correlation and Regression techniques understand the relationship between variables, make predictions and generate useful data insights from data. For data analysts and researchers, these tools are essential a
7 min read