Median Calculator

Table of Contents

Enter any data set and get the median instantly — along with the mean, mode, range, and a step-by-step breakdown that shows exactly how the middle value was found. Our median calculator sorts your numbers for you, handles odd and even data sets, and works whether you type a handful of values or paste a whole column from a spreadsheet.

Separate values with commas, spaces, or new lines.
Result

Quick answer: The median is the middle value of a data set once the numbers are placed in order. If the count is odd, it is the single middle number; if the count is even, it is the average of the two middle numbers. Our calculator sorts the data and finds the median for you, with the steps shown.

How to Use This Median Calculator

Step 1: Enter your numbers. Type or paste your values separated by commas, spaces, or line breaks. The calculator reads data copied straight from Excel or Google Sheets.

Step 2: Click Calculate. The tool sorts your numbers from lowest to highest automatically — you do not have to order them first.

Step 3: Read your results. You see the median right away, alongside the mean, mode, range, count, and sum, plus an optional step-by-step breakdown so you can follow exactly how the middle value was located.

main image main image
Math program

Help your child reach their full potential!

Answer a few quick questions about your child’s learning, and we’ll recommend next steps.

Take the quiz

Odd vs. Even Data Sets — How the Median Is Found

The median always starts the same way: put every value in order from smallest to largest. What happens next depends on how many numbers you have. With an odd count there is one value sitting exactly in the middle, and that single number is the median. With an even count there is no single middle value — two numbers share the center — so you take the average of those two middle numbers instead. This is why the median of an even data set can be a number that is not actually in the data set at all. Sorting first is the step students skip most often, and it is the one that quietly produces wrong answers, so it always comes first.

Median of an Odd-Numbered Data Set

When the number of values n is odd, the median sits at position p = (n + 1) ÷ 2 in the ordered list. For seven values, that is position (7 + 1) ÷ 2 = 4, so the median is the 4th number once the data is sorted. There is exactly one middle value, and that value is your median.

Median of an Even-Numbered Data Set

When n is even, two values share the middle, at positions n ÷ 2 and n ÷ 2 + 1. The median is the average of those two values — add them and divide by 2. For six values, that means averaging the 3rd and 4th numbers in the sorted list.

Step-by-Step Example — How to Find the Median

Example 1 — An odd data set: 7, 3, 9, 4, 12, 1, 8.

Step 1: Sort the numbers. In order, they become 1, 3, 4, 7, 8, 9, 12.

Step 2: Find the middle position. There are 7 values, so the median is at position (7 + 1) ÷ 2 = 4.

Result: The 4th value is 7, so the median is 7. (For comparison, the mean of this set is about 6.29 — close, but not the same.)

Example 2 — An even data set: 10, 2, 8, 4, 6, 14.

Step 1: Sort the numbers. In order, they become 2, 4, 6, 8, 10, 14.

Step 2: Find the two middle values. With 6 values, the middle two are at positions 3 and 4 — that is 6 and 8.

Step 3: Average them. (6 + 8) ÷ 2 = 7.

Result: The median is 7, even though 7 never appears in the original data — exactly what you expect from an even-sized set.

What Is the Median?

The median is the value that splits a data set into two equal halves — half the numbers fall below it and half fall above. It is one of the three measures of central tendency, the tools statisticians use to describe the “typical” value in a set, alongside the mean and the mode. The median’s superpower is that it ignores how extreme the outliers are: it only cares about position, not size, so one enormous value can’t drag it around the way it drags the mean.

Median vs. Mean

The mean is the arithmetic average — add everything up and divide by the count — while the median is simply the middle value in order. They often land close together, but when a data set has a few very large or very small values, they part ways: the mean chases the outliers, and the median holds steady. That difference is exactly why the choice between them matters.

Median vs. Mode

The mode is the value that appears most often, while the median is the value in the middle. A data set has exactly one median, but it can have one mode, several modes, or no mode at all. The two answer different questions — “what’s typical by position?” versus “what’s most common?”

Where Is the Median Used?

The median shows up anywhere a few extreme values could distort the picture. Knowing when to reach for it, rather than the mean, is a genuinely useful real-world skill.

Household Income & Salaries

News reports almost always quote median income, not average income, because a handful of very high earners would pull the mean upward and make the typical household look richer than it is. The median gives a truer sense of the middle.

Home Prices & Real Estate

The “median home price” is the standard way to describe a housing market for the same reason — one mansion sale shouldn’t make an entire neighborhood look unaffordable. The median reflects the home a typical buyer actually faces.

Test Scores & Class Data

A teacher uses the median to find the score a typical student earned, especially when one or two very low or very high results would skew the average. It answers “where did the middle of the class land?”

Sports & Everyday Comparisons

From the median age of a team to the median time in a fun run, the median sums up a group with a single, outlier-resistant number. It is the average you can trust when the data is lopsided.

For more practice with averages and data, our statistics tutoring covers mean, median, mode, and beyond, one example at a time.

Struggling With Averages and Statistics?

Your child can get the median from the calculator above and still mix it up with the mean on a test — the two look similar but answer different questions, and that confusion costs marks. Our certified tutors make the difference stick, showing your child not just how to find each average but when to use it. They can work through median, mean, mode, and the full statistics unit with a certified tutor inside our structured math courses. The first lesson is free, with no card required.

Book Free Math Lesson

  • ⭐ 4.8/5 rating from 200,000+ parents
  • Certified math tutors for Grades K–12
  • Starting from $17.70/lesson — first lesson free, no card required

Median, Mean, or Mode: Which Average Should You Use?

All three describe the “center” of a data set, but they are not interchangeable — picking the right one depends on your data. Here is the quick guide:

  • Use the mean when the data is fairly even with no extreme values, such as test scores in a tight range. It uses every number, which makes it precise when nothing is pulling it off-balance.
  • Use the median when the data is skewed or has outliers, such as incomes, home prices, or any set with a few very large or very small values. It stays anchored at the true middle.
  • Use the mode when you care about the most common value rather than the center, such as the most popular shoe size or the best-selling item. It is also the only average that works for non-numbers like colors or categories.

Frequently Asked Questions

What is the median?

The median is the middle value of a data set when the numbers are arranged in order from lowest to highest. It splits the data into two equal halves, with half the values below it and half above.

How do I find the median?

Sort the numbers from smallest to largest, then locate the middle value. If there is an odd count, the median is the single middle number; if there is an even count, it is the average of the two middle numbers.

What is the median of an even set of numbers?

For an even-sized data set, the median is the average of the two middle values once the numbers are in order. For 2, 4, 6, 8, 10, 14, the two middle values are 6 and 8, so the median is (6 + 8) ÷ 2 = 7.

What is the difference between the median and the mean?

The mean is the arithmetic average, found by adding all the values and dividing by how many there are, while the median is simply the middle value in order. The mean is affected by extreme values, but the median is not.

When should I use the median instead of the mean?

Use the median when your data is skewed or contains outliers, such as incomes or house prices, because a few extreme values would distort the mean. The median gives a more representative “typical” value in those cases.

What is the median formula?

For an odd count of n values, the median is the value at position (n + 1) ÷ 2 in the sorted list. For an even count, it is the average of the values at positions n ÷ 2 and n ÷ 2 + 1.

Do I have to put the numbers in order to find the median?

Yes. The median is defined by position, so the data must be sorted from lowest to highest first — our calculator does this step for you automatically.

Can a data set have more than one median?

No. Every data set has exactly one median, unlike the mode, which can have several values or none at all.

How do I find the median in Excel?

Use the formula =MEDIAN(range), where “range” is the cells that hold your numbers, such as =MEDIAN(A1:A20). Excel sorts and calculates the median for you in one step.

What is the median of two numbers?

The median of two numbers is simply their average — add them together and divide by 2. For 5 and 8, the median is (5 + 8) ÷ 2 = 6.5.

How is the median related to quartiles?

The median is the second quartile, Q2, which marks the 50th percentile of the data. It divides the lower half of the data from the upper half, just as Q1 and Q3 mark the 25th and 75th percentiles.

Can the median be a number that is not in the data set?

Yes. For an even-sized data set, the median is the average of the two middle values, which may produce a number that does not appear in the original data.

What does the median tell you that the mean does not?

The median reveals the true center of a data set even when extreme values are present, because it depends only on position, not size. Comparing it to the mean is a quick way to detect whether your data is skewed.

How can a tutor help my child understand the median?

A tutor helps a student see not just how to calculate the median but when it is the right average to use, which is where most confusion lives. One-to-one sessions let a child practice sorting data and comparing the median, mean, and mode on problems matched to their grade.

Want your kid to excel in math and reading?

Kid’s grade

  • Grade 1
  • Grade 2
  • Grade 3
  • Grade 4
  • Grade 5
  • Grade 6
  • Grade 7
  • Grade 8
  • Grade 9
Image full form
image
Close a child’s math gaps with a tutor!

Close a child’s math gaps with a tutor!

Book a free demo lesson with our math tutor and see your kid fill math gaps with interactive lessons
Book demo lesson Median Calculator
Get full test results