Math Solver Free

Median Calculator

The middle value of any data set — with the sorted data and the middle position highlighted, so the answer explains itself.

Published 26 November 2026

Median
10
Mean 10.8 · Minimum 3 · Maximum 21 · Range 18 · n = 10

Your data, sorted — the middle is highlighted

357791112151821

Step by step

Step 1 — sort the data: 3, 5, 7, 7, 9, 11, 12, 15, 18, 21. There are n = 10 values.

Step 2 — average the two middle values: with an even count, the middle falls between position 5 (9) and position 6 (11), so the median is (9 + 11) ÷ 2 = 10.

Reading it: half of the values are ≤ 10 and half are ≥ 10. The mean of the same data is 10.8 — when the two disagree, a few large or small values are pulling the mean.

How This Median Calculator Works

The median is the value in the middle of a data set once it is sorted: half the values lie at or below it, half at or above it. This median calculator sorts your data, highlights the middle position (or the middle pair), and averages the pair when the count is even. It also shows the mean alongside, because the comparison between the two is often the real story: when they agree, the data is balanced; when they pull apart, something in the tails is doing the pulling.

Worked Example: Ten Commute Times

Ten commute times in minutes: 12, 7, 3, 15, 9, 21, 7, 18, 5, 11. Sorted: 3, 5, 7, 7, 9, 11, 12, 15, 18, 21. The count is even (n = 10), so the median is the average of the 5th and 6th values: (9 + 11) ÷ 2 = 10 minutes. The mean is 108 ÷ 10 = 10.8 minutes — close to the median, so this data is fairly symmetric; the one 21-minute trip lifts the mean only slightly. Add a single 95-minute nightmare commute and the mean jumps to about 18.5 while the median moves only to 11: that stubbornness is exactly why medians headline income and house-price statistics. For the full centre-and-spread picture, the mean, median and mode calculator analyses a data set in one pass, and the statistics calculator adds quartiles and standard deviation.

Median, Quartiles and the Middle Half

The median is the second quartile (Q2). The first quartile is the median of the lower half of the data and the third quartile the median of the upper half; together with the median they frame the box of a box plot and define the interquartile range. Our quartiles calculator computes the full five-number summary and draws the plot. The NIST/SEMATECH e-Handbook of Statistical Methods covers percentile and quartile definitions formally.

Common Mistakes

  • Forgetting to sort: the middle of the list as typed is not the median unless the list happens to be ordered already.
  • Stopping at one middle value for even counts: with an even n there is no single middle — the two central values must be averaged.
  • Quoting the median for tiny samples as if it were stable: with n = 3 the median is just the second value; treat it as descriptive, not decisive.

Frequently Asked Questions

How do you find the median?

Sort the data, then take the middle value. With an odd count the median is the single middle value: for 3, 7, 9 the median is 7. With an even count, average the two middle values: for 3, 7, 9, 12 the median is (7 + 9) ÷ 2 = 8. Sorting first is the step everyone forgets — the median of unsorted data is meaningless.

What is the median of an even number of values?

The average of the two middle values once the data is sorted. For 2, 3, 4, 5, 6, 7, 8, 8, 8, 9 the middle pair is 6 and 7, so the median is 6.5 — which is why a median does not have to be one of the data values themselves.

When is the median better than the mean?

When the data is skewed or has outliers: incomes, house prices, waiting times. One extreme value drags the mean towards it but barely moves the median, so the median describes the typical case more honestly. Reporting both, and noting the gap between them, is better still.

What position is the median in?

For n values, the median sits at position (n + 1) ÷ 2 in the sorted list. With 9 values that is position 5; with 10 values the formula lands between positions 5 and 6, which is the signal to average those two.

Can the median be used with non-numeric data?

Only if the data has a natural order — satisfaction ratings (poor to excellent), education levels, shoe sizes. Pure categories with no order (colours, countries) have a mode but no median.

Is this median calculator free?

Yes — every tool on Math Solver Free is completely free, with no sign-up and no usage limits. Calculations run in your browser, so your data never leaves your device.

Related Tools & Guides

About the Math Solver Team

The Math Solver Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team