Median Calculator
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
Step-by-step solution
- Put the values in order: 3, 5, 7, 9, 12.
- 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.
How to use the Median Calculator
- Type or paste your numbers into the box above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| Odd n | Median = value at position (n + 1) ÷ 2 |
|---|---|
| Even n | Median = average of the values at positions n ÷ 2 and n ÷ 2 + 1 |
Worked examples
Example 1: 3, 5, 7, 9, 12
Median = 7
- Put the values in order: 3, 5, 7, 9, 12.
- 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
- Put the values in order: 3, 5, 7, 9.
- 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
- Put the values in order: 2, 4, 8, 9, 15, 31.
- 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
- Put the values in order: 10, 10, 20, 100.
- 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
How to Find the Median: Odd and Even Data Sets
Step-by-step method to find the median: sort the data, then pick the middle value of an odd list or average the middle two of an even list.
Mean vs Median vs Mode: Differences and When to Use Each
Mean, median and mode compared: how each is calculated, how outliers affect them and which one to choose for your data.
Related calculators
Mean Calculator
Free mean calculator. Enter your numbers to calculate the arithmetic mean, with the sum, count and full working shown.
Mode Calculator
Free mode calculator. Find the most frequent value (or values) in a list of numbers, with a count of how often each appears.
Interquartile Range Calculator
Find Q1, Q3 and the interquartile range (IQR) of your data. Shows the median, the steps and a box plot.
Mean Median Mode Range Calculator
Enter a list of numbers and get the mean, median, mode and range at once, with the working for each and a picture of where they fall.
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.