How to Calculate the Median: A Step-by-Step Guide

How to Calculate the Median by Hand: A Step-by-Step Guide

The median is the middle value of a dataset when it's arranged in order. Unlike the mean, it isn't skewed by extreme numbers, making it a reliable measure of central tendency. This guide walks you through the manual calculation process, so you can find the median even without a calculator. For a quick computation, use our Median Calculator. If you need a refresher on what the median represents, visit our page on What Is the Median in Statistics.

What You'll Need

  • A dataset (a list of numbers)
  • A quiet place to sort the numbers (pen and paper or a spreadsheet)
  • Basic math skills: addition and division (for even-sized datasets)

Step-by-Step Instructions

  1. Sort the data in ascending order. Write all the numbers from smallest to largest. This step is crucial; the median is based on position, not the original order.
  2. Count how many values (n) are in the dataset. This number determines the formula you'll use.
  3. Determine if n is odd or even.
    • If odd: The median is the middle number. Its position is (n+1)/2.
    • If even: The median is the average of the two middle numbers. Their positions are n/2 and (n/2)+1.
  4. Find the median value(s). For odd n, locate the value at the middle position. For even n, add the two middle numbers and divide by 2.
  5. Write the answer. The result is the median of your dataset.

For a deeper dive into the formula, check our Median Formula: Examples for Odd & Even Data page.

Worked Example 1: Odd Number of Values

Dataset: Test scores of 5 students: 85, 72, 91, 68, 55.

  1. Sort: 55, 68, 72, 85, 91.
  2. Count: n = 5 (odd).
  3. Middle position: (5+1)/2 = 3. The 3rd value in the sorted list is 72.
  4. Result: Median = 72.

This tells us that half the students scored below 72 and half above.

Worked Example 2: Even Number of Values

Dataset: Daily sales ($): 200, 150, 300, 120, 250, 500.

  1. Sort: 120, 150, 200, 250, 300, 500.
  2. Count: n = 6 (even).
  3. Middle positions: n/2 = 3, so positions 3 and 4. The 3rd value is 200, the 4th is 250.
  4. Average: (200 + 250) / 2 = 225.
  5. Result: Median = $225.

Notice that the extreme sale of $500 does not pull the median as it would the mean. The median gives a more typical daily sales figure. For business-specific examples, see Median for Business Analysts.

Common Pitfalls to Avoid

  • Forgetting to sort: The median relies on ordered data. Skipping this step gives a meaningless result.
  • Misidentifying the middle position: With odd n, the position is (n+1)/2. With even n, it’s n/2 and its neighbor. Double-check your count.
  • Using unsorted data for even n: You must average the two middle numbers from the sorted list, not the original order.
  • Confusing median with mean: The median is the middle value; the mean is the average. They can be very different, especially with outliers.
  • Incorrect averaging: For even n, remember to sum the two numbers and divide by 2. Some mistakenly take the lower middle value as the median.

By following these steps and avoiding common errors, you can confidently compute the median by hand. For additional insights into what the median tells you about your data, read Interpreting Median Values: What They Tell You.

Try the free Median Calculator ⬆

Get your The median is the middle value of a sorted dataset, a measure of central tendency robust to outliers. result instantly β€” no signup, no clutter.

Open the Median Calculator

Contact Us