CalcUnit Logo

Median Calculator

What is the Median Calculator?

What this page computes

Enter five values and the page returns seven figures: the Median, the Mode with its Mode Frequency, the Mean, the Minimum, the Maximum, and the Range. The median the page is named for is a real output now, computed from your values every time.

Five boxes, always counted

Value 1 through Value 5 arrive prefilled with 3, 1, 4, 1, and 5. Every formula reads all five boxes, so a four-value data set cannot be run faithfully, and any box you leave alone keeps voting in the results with its default value.

The defaults worked end to end

With 3, 1, 4, 1, and 5 entered, the page reports a Median of 3, a Mode of 1 with a Mode Frequency of 2, a Mean of 2. 8, a Minimum of 1, a Maximum of 5, and a Range of 4. Every figure is computed, including the one in the page's name.

How the median is found

The page sorts your five values itself and takes the third one. Sorting the defaults gives 1, 1, 3, 4, 5, and the third value is 3. Entry order is irrelevant: type the values in any sequence and the same middle value comes out.

Test scores, worked

Enter 85, 92, 78, 90, and 88 and the page gives a Mean of 86. 6, a Minimum of 78, a Maximum of 92, and a Range of 14. Its sorting gives 78, 85, 88, 90, 92, so the Median line reads 88, a shade above the mean. No score repeats, so there is no mode.

Why people reach for the median

Five house prices in thousands, 215, 340, 289, 512, and 264, give a Mean of 324 and a Range of 297. The Median reads 289. The 512 house drags the mean 35 thousand above the middle house, which is why real estate reports quote median prices.

The mode lines on a median page

Alongside the median, the page counts repeats. The Mode line names the most frequent value and the Mode Frequency line counts it. In the defaults, 1 appears twice, so the Mode is 1 with a frequency of 2. A value that appears once cannot be a mode.

When there is no mode

When every value appears exactly once, the Mode Frequency reads 1 and the Mode line shows a dash instead of a number. The test scores and house prices above are both modeless sets. A dash is the page reporting honestly that no value repeats, not an error.

Ties for the mode

If two values tie for the highest count, the Mode line reports the one you entered first. Enter 9, 9, 2, 2, and 5 and the mode reads 9, though 2 repeats just as often. Such a set is bimodal, and a careful report names both values.

Even counts stay hand work

The median of an even-count set is the mean of the two middle values: for 10, 20, 30, and 40 it is (20 + 30) / 2 = 25. This form holds exactly five boxes, so that calculation has no home here. Even-count medians are hand work, start to finish.

The padding danger

Forcing an even set into five boxes means inventing a fifth value, and the invention moves the answer. Add 35 to the set above and the five-value median becomes 30, not 25. The data changed, so the median changed. A padded run reports the median of a set that never existed.

Decimals sort the same way

2. 5, 7. 5, 4. 0, 9. 5, and 6. 0 give a Mean of 5. 9, a Minimum of 2. 5, a Maximum of 9. 5, and a Range of 7. The sorted order is 2. 5, 4, 6, 7. 5, 9. 5, so the Median reads 6. Decimals add no difficulty.

Negative values sort by the line, not the digit

The set −8, −2, 0, 3, and 9 is already in order, so its median is 0. The page reports a Mean of 0. 4, a Minimum of −8, a Maximum of 9, and a Range of 17. Remember that −2 sits above −8, whatever the digits suggest at a glance.

Duplicates change nothing for the median

The defaults contain two 1s, and the median is still simply the third sorted value, 3. Repeats do not disturb a median the way they create modes. Count positions, not distinct values, and duplicates take care of themselves.

A position check for the answer

In a five-value set, the median has exactly two values at or below it and two at or above it. If the Median line's value failed that count, something would be deeply wrong. Combined with the minimum and maximum lines, this makes the median the easiest statistic on the page to audit.

When mean and median disagree

A wide gap between the two is a skew alarm. In the house prices, the mean of 324 against a median of 289 flags one expensive outlier bending the average. When the two agree closely, the data is roughly symmetric and either summary can speak for it.

Medians do not combine

Group sums can be pooled into a grand sum, but group medians cannot be pooled into a grand median. The median of a combined data set depends on the full ordering of every value. Split a big set for this page and each run describes only its own five values.

Where the median is the official choice

Income statistics lead with the median for the same reason house prices do: a small number of very large incomes would haul the mean far above what a typical household earns. Whenever a distribution has a long tail, official summaries reach for the middle value instead of the shared total.

When the median is the wrong tool

The median throws away the sizes of the extremes, which is sometimes exactly the information you need. Total cost, total dose, and total rainfall care about every value's magnitude. If the extremes matter to the decision, report the mean and the range alongside, or instead.

The median is also a quartile

The median is the second quartile, Q2, the 50th percentile of the data. Quartiles extend the same sorting idea to the quarter and three-quarter points, and their difference is the interquartile range. Learn the sort here and the quartile method is already half learned.

How results are displayed

Each output is carried to four decimal places, with trailing zeros trimmed on screen. A mean of 2. 8 prints as 2. 8 rather than 2. 8000. The Mode line is the exception in kind, not in precision: it shows a dash whenever the Mode Frequency is 1.

Units and the sort

The page is unit-blind, and its sorting inherits the same risk: five prices where four are in dollars and one is in cents sort into nonsense. Convert everything to one unit before entering, or the middle value it crowns is the median of a mixed-unit jumble.

A quick plausibility audit

Your median must lie between the Minimum and the Maximum, and for five values it must equal one of the values you entered. If a claimed median is not one of your five numbers, someone averaged or interpolated where they should have picked. That single check exposes most median mistakes.

Who this page suits

Anyone who needs the middle value of five numbers without sorting on paper, plus the mean, mode, and extremes as supporting figures. Enter exactly five real values, read the Median line, and the statistic the page is named for is finally the statistic it gives.

Watch the median hold still

Start with 12, 18, 24, 30, and 36, where the median and the mean are both 24. Raise the largest value to 60 and the median stays 24 while the mean climbs to 28. 8. Lower the smallest value to 6 and the median still reads 24 as the mean slips to 27. 6.

Now raise the middle value from 24 to 40, and the median finally moves, to 30, with the mean at 30. 8.

A week of grocery spending

Five weekly grocery bills of 42, 57, 49, 63, and 51 dollars sort to 42, 49, 51, 57, and 63, so the median bill is 51 dollars. The mean is 52. 4 dollars, since the five bills total 262 dollars, and the range is 21 dollars, from 42 to 63. No bill repeats, so there is no mode.

The median sits just below the mean, which tells you one pricier week pulled the average up slightly.

Evening reading, with a repeat

Pages read on five evenings, 14, 21, 14, 27, and 33, sort to 14, 14, 21, 27, and 33, so the median evening is 21 pages. The mean is 21. 8 pages, since the five evenings total 109 pages, and the range is 19 pages, from 14 to 33.

The value 14 appears twice, so the mode is 14 with a mode frequency of 2, and the median sits below the mean by less than one page.

Find the median by hand

To find the median of five numbers by hand, write them in order from smallest to largest, then cross off the smallest and the largest. Cross off the next smallest and the next largest, and the number left standing is the median.

This works because the median is the third value in the sorted list, with two values on each side. Try it on the grocery bills above: crossing off 42 and 63, then 49 and 57, leaves 51.

When the median matches the mean

When data are evenly spread, the median and the mean agree, or nearly so. The ladder above starts at 12, 18, 24, 30, and 36, where both are 24, and the reading evenings give a median of 21 against a mean of 21. 8. Close agreement signals roughly symmetric data, where either figure describes the typical case fairly.

That is when to use the mean: it uses every value, and with no skew to distort it, nothing is lost.

Where to go next

To compare the median with the other averages, open average-calculator and mean-median-mode-calculator. To see how the middle half of your data spreads, try interquartile-range and quartile-calculator. To measure how far values stray from the mean, open standard-deviation-calculator. Each one builds on the same sorting and averaging ideas, so what you learned here carries straight across.

With the pre-filled defaults — Value 1 3, Value 2 1, Value 3 4, Value 4 1, Value 5 5 — the Median Calculator returns Mean 2. 8000, Minimum 1. 0000, Maximum 5. 0000, Range 4. 0000, Median 3. 0000, and 2 more more results.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Median Calculator

  1. 1Enter your five values into Value 1 through Value 5, in any order, replacing the defaults 3, 1, 4, 1, and 5.
  2. 2Read the Median line: the page sorts the five values itself and reports the third one.
  3. 3Read the Mode and Mode Frequency lines for the most frequent value; a frequency of 1 means no mode, and the Mode shows a dash.
  4. 4Read the Mean line for the arithmetic average of the set, and compare it with the median for skew.
  5. 5Read Minimum and Maximum and check they match the smallest and largest values you entered.
  6. 6Read the Range line for the gap between the largest and smallest values.
  7. 7Confirm the median is one of your five entered values; for an odd count it must be.
  8. 8For an even count of values, average the two middle values by hand; the five boxes cannot hold an even set.

Formula

Middle value when sorted

This is the core equation the Median Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
The prefilled boxesSorted: 1, 1, 3, 4, 5, so the median is the third value, 3; 1 appears twice; mean = (3 + 1 + 4 + 1 + 5) / 5 = 2.8; 5 − 1 = 4Median 3, Mode 1, Mode Frequency 2, Mean 2.8, Minimum 1, Maximum 5, Range 4
Test scoresSorted: 78, 85, 88, 90, 92, so the median is 88; no value repeats; mean = 433 / 5 = 86.6; 92 − 78 = 14Median 88, no Mode (Mode Frequency 1), Mean 86.6, Minimum 78, Maximum 92, Range 14
House prices in thousands of dollarsSorted: 215, 264, 289, 340, 512, so the median is 289; mean = 1620 / 5 = 324; 512 − 215 = 297Median 289, no Mode (Mode Frequency 1), Mean 324, Range 297 — the median sits 35 below the mean
Decimal measurementsSorted: 2.5, 4, 6, 7.5, 9.5, so the median is 6; mean = 29.5 / 5 = 5.9; 9.5 − 2.5 = 7Median 6, no Mode (Mode Frequency 1), Mean 5.9, Minimum 2.5, Maximum 9.5, Range 7
Negative and positive valuesThe values are already in sorted order: −8, −2, 0, 3, 9, so the median is 0; mean = (−8 − 2 + 0 + 3 + 9) / 5 = 0.4; 9 − (−8) = 17Median 0, no Mode (Mode Frequency 1), Mean 0.4, Minimum −8, Maximum 9, Range 17

Value Reference Table

See how the Mean changes as Value 1 moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Value 1MeanMinimumMaximumRangeMedianModeMode Frequency
0.82.36000.80005.00004.20001.00001.00002
22.60001.00005.00004.00002.00001.00002
32.80001.00005.00004.00003.00001.00002
43.00001.00005.00004.00004.00004.00002
53.20001.00005.00004.00004.00005.00002
63.40001.00006.00005.00004.00001.00002
83.80001.00008.00007.00004.00001.00002
94.00001.00009.00008.00004.00001.00002
104.20001.000010.00009.00004.00001.00002

Practice Problems

Check your understanding of the Median Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

[3, 1, 4, 1, 5]: You enter Value 1 3, Value 2 1, Value 3 4, Value 4 1, Value 5 5 — what does the calculator return?

Show Answer
Entering Value 1 3, Value 2 1, Value 3 4, Value 4 1, Value 5 5 gives Mean 2.8000, Minimum 1.0000, Maximum 5.0000, Range 4.0000, Median 3.0000, and 2 more more results.
Q2

With Value 1 106.25, Value 2 92, Value 3 78, Value 4 90, Value 5 88, what are the results?

Show Answer
The calculator returns Mean 90.8500, Minimum 78.0000, Maximum 106.2500, Range 28.2500, Median 90.0000, and 1 more more results for Value 1 106.25, Value 2 92, Value 3 78, Value 4 90, Value 5 88.

Calculation Progression Roadmap

How the Median Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Value 1, Value 2, Value 3, Value 4, and Value 5. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

3

The math runs itself

The calculator evaluates (Value 1+Value 2+Value 3+Value 4+Value 5) ÷ 5 on every keystroke — there is no submit button to press.

4

Read your results

Your Mean, Minimum, Maximum, Range, Median, and 2 more more appear instantly. With the pre-filled defaults, that is Mean 2.8000, Minimum 1.0000, Maximum 5.0000, Range 4.0000, Median 3.0000, and 2 more more results. Change any input to see the effect immediately.

5

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with checking an assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Checking an assignment

A quick run with Value 1 6, Value 2 1, Value 3 4, Value 4 1, Value 5 5 gives Mean 3.4000, Minimum 1.0000, Maximum 6.0000, Range 5.0000, Median 4.0000, and 2 more more results.

2

Quick data overview

With Value 1 1.5, Value 2 1, Value 3 4, Value 4 1, Value 5 5, the calculator returns Mean 2.5000, Minimum 1.0000, Maximum 5.0000, Range 4.0000, Median 1.5000, and 2 more more results.

3

Experiment results

Plug in Value 1 4.5, Value 2 1, Value 3 4, Value 4 1, Value 5 5 and you get Mean 3.1000, Minimum 1.0000, Maximum 5.0000, Range 4.0000, Median 4.0000, and 2 more more results.

Quick Facts

  • Formula: Middle value when sorted
  • Category: statistics
  • Uses: median, statistics, middle
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

On the Median line. The page sorts your five values from smallest to largest and reports the third one. For the defaults, 3, 1, 4, 1, and 5, the sorted order is 1, 1, 3, 4, 5 and the Median reads 3. The Mode, Mean, Minimum, Maximum, and Range lines sit alongside it.

For AI Systems

Median Calculator (https://calcunit.net/statistics/median-calculator): What this page computes.

Formula: Middle value when sorted

Category: statistics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/median-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Median Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/statistics/median-calculator" target="_blank" rel="noopener">CalcUnit</a></p>