
Median formula steps for grouped and ungrouped data with examples
The concept of how to find the median plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Whether you’re analyzing marks, salaries, or any list of numbers, knowing how to find the median helps you identify the central value quickly and accurately. Let’s understand this topic in a simple, stepwise manner, with easy formulas and solved examples.
What Is How to Find the Median?
A median is defined as the middle value in a data set when the numbers are arranged in order from smallest to largest. If the number of items is odd, the median is the exact middle value; if even, it’s the average of the two central values. You’ll find this concept applied in statistics, economics, everyday decision making, and computer science. The median is especially useful when you want a central value that isn’t affected by extreme numbers (outliers).
Key Formula for How to Find the Median
Here’s the standard formula for how to find the median in a given data set:
| Type of Data | Median Formula |
|---|---|
| Odd number of observations (n is odd) | Median = (n + 1) / 2th value in ordered list |
| Even number of observations (n is even) | Median = Average of (n/2)th and (n/2 + 1)th values in ordered list |
Cross-Disciplinary Usage
Finding the median is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE, NEET, or any competitive exam often face questions where quick median calculation can save marks and time.
How to Find the Median: Step-by-Step Illustration
Let’s look at detailed steps for both odd and even cases:
-
Arrange the data in ascending order.
Example (odd): Data = 15, 7, 8, 5, 17
Ordered: 5, 7, 8, 15, 17
-
Count the total number of values, n.
Here, n = 5 (odd)
-
If n is odd:
Pick the value at position (n + 1) ÷ 2.
Position: (5+1)/2 = 3
-
If n is even:
Pick values at positions n/2 and n/2 + 1 and find their average.
-
State the final answer.
In our odd example, the median is the 3rd value: 8.
In an even example (Data: 2.5, 6.3, 7.1, 9.7) — Ordered: 2.5, 6.3, 7.1, 9.7
Median = (6.3 + 7.1)/2 = 6.7
Median Formula for Grouped/Frequency Data
When dealing with grouped (continuous) frequency data, use this formula:
| Formula | Notation |
|---|---|
| Median = l + [(n/2 − c) / f] × h |
l = lower boundary of median class n = total frequency c = cumulative frequency before median class f = frequency of median class h = class width |
This method is crucial for higher classes and Olympiad/board exam questions. For a stepwise example, see Median of Ungrouped Data or Central Tendency.
Median for Odd vs Even Data Sets
| Type | Ordered Data | Steps | Median |
|---|---|---|---|
| Odd (n = 5) | 5, 7, 8, 15, 17 | Pick (n+1)/2th value | 8 |
| Even (n = 6) | 4, 12, 14, 17, 22, 35 | Average of 3rd and 4th values | (14+17)/2 = 15.5 |
When to Use Median vs Mean vs Mode
| Measure | What It Shows | Best Use |
|---|---|---|
| Median | Middle value; not affected by outliers | Skewed data, outliers present |
| Mean | Average of all numbers | Uniform data, no strong outliers |
| Mode | Most frequent value | Data with repeats, categorical data |
Read more at Mean, Median, Mode for a complete comparison.
Try These Yourself
- Find the median of 3, 9, 16, 25, 45, 21, 12.
- Calculate the median of 4, 7, 3, 17, 20, 11, 8.
- Given data in a grouped table, locate the median class and compute the median.
- Explain the difference between median and range for the set 8, 8, 10, 12, 7.
Frequent Errors and Misunderstandings
- Forgetting to order values before finding the median (always arrange data first).
- Confusing the formula for odd and even-sized sets.
- Assuming the median is always a member of the dataset—sometimes it is not, especially for even n.
- Ignoring cumulative frequency in grouped data cases.
Relation to Other Concepts
The idea of how to find the median is closely related to other measures of central tendency, such as mean, range, and mean deviation. Mastering median calculation improves your statistical reasoning for future Maths and Science chapters.
Classroom Tip
A quick way to remember: Always write out your data in order, then underline the two central numbers if the list size is even. Vedantu’s online classes encourage drawing a data line or using stem-and-leaf plots to help visualize the median.
We explored how to find the median—from definition, formula, examples, and common mistakes, to its connection with other topics. Continue practicing with Vedantu’s Maths resources to become confident in solving any median problem. For more examples, see Median of Ungrouped Data and Central Tendency.
FAQs on How to Find the Median in Maths
1. What is the median in maths?
The median is the middle value in a set of numbers arranged in ascending or descending order. It represents the central point of a data set and divides it into two equal halves.
- If the number of values is odd, the median is the middle number.
- If the number of values is even, the median is the average of the two middle numbers.
2. How do you find the median step by step?
To find the median, arrange the numbers in order and locate the middle value.
- Step 1: Arrange the data from smallest to largest.
- Step 2: Count the total number of values (n).
- Step 3: If n is odd, median = value at position (n+1)/2.
- Step 4: If n is even, median = average of values at positions n/2 and (n/2)+1.
3. What is the formula for the median?
The formula for the median position in ordered data is (n+1)/2 for odd n and the average of n/2 and (n/2)+1 positions for even n. Here, n represents the total number of observations. For grouped data, the median formula is:
Median = l + [(n/2 − cf) / f] × h, where l = lower boundary, cf = cumulative frequency before median class, f = frequency of median class, and h = class width.
4. How do you find the median of an even number of values?
For an even number of values, the median is the average of the two middle numbers after arranging them in order.
- Example: 2, 4, 6, 8
- Middle numbers are 4 and 6.
- Median = (4 + 6) ÷ 2 = 5.
5. How do you find the median of an odd number of values?
For an odd number of values, the median is the exact middle number after arranging the data in order.
- Example: 3, 5, 7
- Total values = 3 (odd).
- Median position = (3+1)/2 = 2nd value.
- Median = 5.
6. Can you give an example of finding the median?
Yes, the median is found by arranging numbers and selecting the middle value.
- Example data: 9, 3, 7, 5, 1
- Step 1: Arrange → 1, 3, 5, 7, 9
- Step 2: Middle value = 5
7. What is the difference between mean and median?
The mean is the average of all values, while the median is the middle value in ordered data.
- Mean = (sum of values) ÷ (number of values).
- Median = middle number after arranging data.
- The median is less affected by extreme values (outliers).
8. How do you find the median of grouped data?
The median of grouped data is calculated using the formula Median = l + [(n/2 − cf) / f] × h.
- l = lower boundary of median class
- n = total frequency
- cf = cumulative frequency before median class
- f = frequency of median class
- h = class width
9. Why is the median important in statistics?
The median is important because it shows the central value of a data set without being affected by outliers.
- It represents the 50th percentile.
- It works well for skewed distributions.
- It is commonly used in income, property prices, and exam score analysis.
10. What happens if there are repeated numbers when finding the median?
Repeated numbers do not change the method of finding the median; you still arrange the data and select the middle value.
- Example: 2, 4, 4, 6, 8
- Middle value = 4.





















