What To Do If There Are Two Medians

8 min read

Understanding how to handle a dataset with two middle values is a fundamental skill in statistics. Instead, you encounter two central values. Here's the thing — the standard procedure for finding the median in this scenario is to calculate the arithmetic mean of these two middle numbers. When a dataset contains an even number of observations, there is no single middle number. This process ensures the median accurately represents the center of the distribution, splitting the data perfectly into a lower half and an upper half.

Why Does This Happen?

The median is defined as the value separating the higher half from the lower half of a data sample. g.g., 4, 6, 8, 10), no single number occupies the exact center position. In a dataset with an odd number of values (e.Because of that, two numbers share the central positions. On the flip side, when the dataset has an even count (e., 5, 7, 9), the middle value sits exactly in the center with an equal count of numbers on either side. To resolve this, statisticians agreed upon a convention: the median becomes the midpoint between these two values.

Step-by-Step Guide to Finding the Median with Two Middle Numbers

Follow these precise steps to calculate the median correctly every time Worth keeping that in mind..

1. Sort the Data in Ascending Order

This is the most critical step. The median relies entirely on positional order. If your data is not sorted from smallest to largest (or largest to smallest), the "middle" values you pick will be incorrect.

  • Example: Raw data: 12, 4, 7, 19, 3, 10
  • Sorted: 3, 4, 7, 10, 12, 19

2. Count the Total Number of Observations (n)

Determine the sample size, denoted as n. In the example above, n = 6. Since 6 is an even number, you will have two middle values.

3. Identify the Positions of the Two Middle Values

For an even number n, the two middle positions are:

  • Position 1: n / 2
  • Position 2: (n / 2) + 1

Using our example (n = 6):

  • Position 1: 6 / 2 = 3rd position
  • Position 2: (6 / 2) + 1 = 4th position

4. Locate the Values at Those Positions

Look at your sorted list and find the values sitting at the 3rd and 4th positions.

  • Sorted List: 3, 4, **7, 10**, 12, 19
  • Value at 3rd position: 7
  • Value at 4th position: 10

These are your two medians (or more accurately, the two middle observations).

5. Calculate the Average of the Two Values

Add the two middle numbers together and divide the sum by 2.

  • Formula: Median = (Value₁ + Value₂) / 2
  • Calculation: (7 + 10) / 2 = 17 / 2 = 8.5

The median of this dataset is 8.In real terms, 5. Notice that 8.5 does not appear in the original dataset. This is perfectly normal and expected for even-numbered datasets.

Worked Examples for Clarity

Example 1: Simple Integers

Dataset: 5, 2, 9, 4

  1. Sort: 2, 4, 5, 9
  2. Count (n): 4
  3. Positions: 2nd and 3rd (4/2 = 2; 2+1 = 3)
  4. Middle Values: 4 and 5
  5. Median: (4 + 5) / 2 = 4.5

Example 2: Decimal Values

Dataset: 1.2, 3.5, 2.8, 4.1, 0.9, 3.0

  1. Sort: 0.9, 1.2, 2.8, 3.0, 3.5, 4.1
  2. Count (n): 6
  3. Positions: 3rd and 4th
  4. Middle Values: 2.8 and 3.0
  5. Median: (2.8 + 3.0) / 2 = 5.8 / 2 = 2.9

Example 3: Large Dataset (Using the Formula)

If you have a dataset with n = 100 (an even number), you do not need to count manually to the middle Practical, not theoretical..

  • Middle positions are the 50th and 51st values.
  • Find the 50th value and the 51st value in your sorted list.
  • Average them.

The Mathematical Justification: Why the Mean?

You might wonder why we average the two numbers instead of picking the lower one, the higher one, or reporting both It's one of those things that adds up..

1. Minimizing Absolute Deviation

The median is mathematically defined as the value that minimizes the sum of absolute deviations. In simpler terms, if you calculate the distance from every data point to the median and add those distances up, the total will be the smallest possible compared to any other number.

  • If you pick the lower middle number, the distances to the upper half become larger.
  • If you pick the upper middle number, the distances to the lower half become larger.
  • The midpoint (average) balances these distances perfectly.

2. The 50th Percentile Definition

The median is the 50th percentile (P50). By definition, 50% of the data should fall below this value and 50% above.

  • In an even dataset of size n, exactly n/2 data points are below the lower middle value, and n/2 are above the upper middle value.
  • Any number between the two middle values satisfies the condition that exactly 50% of data is below it and 50% is above.
  • The convention of taking the arithmetic mean is simply the standard, universally agreed-upon single point within that valid interval.

3. Invariance and Symmetry

Averaging preserves the symmetry of the data. If a dataset is symmetric (e.g., 1, 2, 3, 4, 5, 6), the mean and median should be equal.

  • Mean = (1+2+3+4+5+6)/6 = 3.5
  • Middle values = 3 and 4
  • Median = (3+4)/2 = 3.5 Using the average maintains this property for symmetric distributions.

Common Mistakes to Avoid

Even though the concept is simple, errors frequently occur in exams and real-world analysis Not complicated — just consistent..

Mistake 1: Forgetting to Sort

Error: Calculating the median on raw, unsorted data. Fix: Always sort first. This is non-negotiable Still holds up..

Mistake 2: Averaging the Wrong Positions

Error: For n = 8, averaging the 4th and 5th values is correct. But some mistakenly average the 3rd and 4th, or 4th and 6th. Fix: Memorize the positions: n/2 and n/2 + 1 Turns out it matters..

Mistake 3: Reporting Two Numbers

Error: Writing "The median is 7 and 10" or "The medians are 7, 10." Fix: The median is a single summary statistic. You must report the

Mistake 3: Reporting Two Numbers

Error: Writing “The median is 7 and 10” or “The medians are 7, 10.”
Fix: The median is a single summary statistic. You must report the average of the two middle values (i.e., (7 + 10) ÷ 2 = 8.5). This gives one number that represents the center of the dataset Worth keeping that in mind..

Mistake 4: Ignoring Outliers When Choosing a Measure of Central Tendency

Error: Automatically using the median even when the data contain extreme outliers that you actually want to reflect.
Fix: Recognize the purpose of each measure. The median protects against outliers, but if you need to highlight the impact of those extremes (e.g., income inequality), consider reporting both the median and the mean, or using a trimmed mean Surprisingly effective..

Mistake 5: Confusing the Median with the Midrange

Error: Taking the average of the minimum and maximum values as the “middle.”
Fix: The midrange is a different statistic ( (min + max) ÷ 2 ). It is highly sensitive to extremes and should not be used as a substitute for the median unless the data are uniformly distributed.


Practical Tips for Accurate Median Calculation

  1. Sort First, Then Count – Always begin by ordering the data. A quick check: after sorting, the first and last entries should be the minimum and maximum values.
  2. Use a Formula for Large Datasets – For (n) observations, the middle positions are (n/2) and (n/2 + 1). If (n) is odd, the median is simply the ((n+1)/2)‑th value.
  3. apply Technology – Spreadsheet programs (Excel, Google Sheets) and statistical software (R, Python’s pandas) have built‑in MEDIAN functions that handle sorting and averaging automatically.
  4. Document Your Steps – In reports or exam answers, briefly note: “Data were sorted, (n = 12); the 6th and 7th values are 14 and 18; median = (14 + 18)/2 = 16.” This shows transparency and reduces grading errors.
  5. Consider the Context – In a symmetric distribution, the median and mean will be close. In a heavily skewed distribution, the median often provides a more “typical” value.

Real‑World Example

Suppose a small tech startup records the number of remote‑work hours logged by its six developers in a week:

2, 4, 6, 8, 10, 12
  • Step 1 – Sort: Already sorted.
  • Step 2 – Identify middle positions: (n = 6); positions 3 and 4.
  • Step 3 – Extract values: 6 and 8.
  • Step 4 – Average: (6 + 8) ÷ 2 = 7.

The median work week is 7 hours, indicating that half the team works less than 7 hours and half works more. The mean is also 7, confirming the data’s symmetry Which is the point..


Conclusion

The median stands out as a solid measure of central tendency because it reflects the exact middle of a dataset, unaffected by extreme values. By correctly sorting the data, identifying the appropriate middle positions, and averaging those values when the sample size is even, you obtain a single, reliable figure that represents the 50th percentile. Avoiding common pitfalls—such as forgetting to sort, averaging the wrong positions, or reporting two numbers—ensures that your statistical reporting is both accurate and professional. Mastering the median not only strengthens your quantitative toolkit but also enhances the clarity of any data‑driven narrative you wish to convey.

New on the Blog

Dropped Recently

A Natural Continuation

These Fit Well Together

Thank you for reading about What To Do If There Are Two Medians. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home