Median Calculator

Quick answerTo find the median, sort the numbers from smallest to largest. With an odd count, the median is the middle value. With an even count, average the two middle values. For 3, 5, 7, 9 the middle two are 5 and 7, so the median is 6.

Type or paste numbers separated by commas, spaces or new lines. Decimals and negative numbers are fine.

Median = 7

  • Count: 5
  • Mean: 7.2
  • Lower half / upper half: 2 values each side
Half of the values sit on each side of the median4681012Median 7Half of the values sit on each side of the median

Step-by-step solution

  1. Put the values in order: 3, 5, 7, 9, 12.
  2. There are 5 values (an odd number), so the median is the middle one, number 3: 7.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Median Calculator. A list of numbers → Sort, then take the middle → The median marked on a number lineWhat you get from the Median CalculatorYOU ENTERA list of numbersTHE CALCULATORSort, then take themiddleYOU GETThe median marked ona number line

How to use the Median Calculator

  1. Type or paste your numbers into the box above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Odd nMedian = value at position (n + 1) ÷ 2
Even nMedian = average of the values at positions n ÷ 2 and n ÷ 2 + 1

Worked examples

Example 1: 3, 5, 7, 9, 12

Median = 7

  1. Put the values in order: 3, 5, 7, 9, 12.
  2. There are 5 values (an odd number), so the median is the middle one, number 3: 7.

Example 2: 3, 5, 7, 9

Median = 6

  1. Put the values in order: 3, 5, 7, 9.
  2. There are 4 values (an even number), so average the two middle ones, 5 and 7: (5 + 7) ÷ 2 = 6.

Example 3: 15, 2, 9, 31, 4, 8

Median = 8.5

Show the steps
  1. Put the values in order: 2, 4, 8, 9, 15, 31.
  2. There are 6 values (an even number), so average the two middle ones, 8 and 9: (8 + 9) ÷ 2 = 8.5.

Example 4: 10, 10, 20, 100

Median = 15

Show the steps
  1. Put the values in order: 10, 10, 20, 100.
  2. There are 4 values (an even number), so average the two middle ones, 10 and 20: (10 + 20) ÷ 2 = 15.

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 14, 3, 8, 21, 6

Median = 8

Problem 2: 2, 4, 6, 8, 10, 12

Median = 7

Problem 3: 55, 60, 65, 70, 1000

Median = 65

Frequently asked questions

How do you find the median?

Sort the data, count the values and pick the middle one. If there are two middle values, add them and divide by 2.

Why use the median instead of the mean?

The median ignores how extreme the largest and smallest values are, so it describes a typical value in skewed data such as house prices or salaries.

What if there are duplicate numbers?

Keep every copy when sorting. Duplicates count as separate values.

Is the median always in the data set?

Only when the count is odd. With an even count the median can fall between two values.

Learn the method

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a report, a research paper), double-check it and read the methodology. Read the disclaimer.