Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

How to Find the Median in Maths: Formula, Steps & Examples

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

Median Formula: How to Calculate Median for Odd and Even Data Sets

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:

  1. Arrange the data in ascending order.
    Example (odd): Data = 15, 7, 8, 5, 17
    Ordered: 5, 7, 8, 15, 17

  2. Count the total number of values, n.
    Here, n = 5 (odd)

  3. If n is odd:
    Pick the value at position (n + 1) ÷ 2.
    Position: (5+1)/2 = 3

  4. If n is even:
    Pick values at positions n/2 and n/2 + 1 and find their average.

  5. 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: Formula, Steps & Examples

1. How do you find the median in maths?

To find the median, first arrange your numbers in ascending order. If you have an odd number of data points, the median is the middle value. If you have an even number of data points, the median is the average of the two middle values. For example, the median of 3, 5, 7, 9 is (5+7)/2 = 6.

2. What is the median of 7, 10, 7, 5, 9, 10?

First, arrange the numbers in ascending order: 5, 7, 7, 9, 10, 10. Since there are six numbers (an even number), the median is the average of the two middle numbers: (7 + 9) / 2 = 8.

3. What is the formula for the median for an even set of data?

For an even number of data points (n), the median formula is: Median = [(n/2)th term + ((n/2) + 1)th term] / 2. Remember to arrange the data in ascending order first.

4. How do I calculate the median in Excel?

Excel uses the MEDIAN function. Simply input the data range into the function: `=MEDIAN(A1:A10)` (replace A1:A10 with your actual data range).

5. Why is the median preferred over the mean in some data sets?

The median is less sensitive to outliers than the mean. If your data has extreme values, the median provides a more robust measure of central tendency.

6. How does the median handle repeated numbers or outliers?

Repeated numbers don't change the *position* of the median, only potentially its *value*. Outliers have less impact on the median than on the mean because the median is based on the position of the data values, not their magnitude.

7. What happens if all the numbers in the data set are the same?

If all numbers are identical, the median is equal to that number. It's also equal to the mean and the mode in this case.

8. How is the median calculated for grouped or continuous data?

For grouped data, the median is calculated using a formula involving the cumulative frequency and class intervals. You first need to identify the median class (the class containing the median). Then, use interpolation to estimate the precise median value.

9. Can the median be a decimal or non-integer?

Yes, the median can be a decimal. This commonly occurs when you have an even number of data points and the average of the two middle values results in a non-integer.

10. How is the median different from percentile calculations?

The median represents the 50th percentile – meaning it's the value below which 50% of the data falls. Percentiles, however, can represent any percentage point of the data distribution (e.g., 25th percentile, 75th percentile, etc.).

11. How do you find the median from a frequency distribution table?

First, find the cumulative frequency. Then, locate the median class (the class containing the (N+1)/2 th observation, where N is the total frequency). The median is then calculated using the formula: Median = L + [(N/2 - CF)/f] * h; where L = lower boundary of the median class, CF = cumulative frequency of the class preceding the median class, f = frequency of the median class, and h = class width.

12. What is the median of a set with only two numbers?

For a dataset with just two numbers, arrange them in ascending order and find their average. This average is the median.