BUILDING & PLANNING · FIELD TOOL

Median Calculator

The median is the middle value once the numbers are sorted. For 7, 1, 3, 9, 4 and 6, sort them to 1, 3, 4, 6, 7, 9; with an even count, take the average of the two middle values: (4 + 6) ÷ 2 = 5. With an odd count, the median is simply the middle one. One extreme value does not pull the median the way it pulls the mean.

Inputs

Results update as you type.

Inputs
Median 5Median 519median 5myconstructioncalculator.com
Diagram updates as you type.

Results

Check the working before you order.

Median
5
Sorted1, 3, 4, 6, 7, 9
Count6
Position of the medianbetween values 3 and 4
Mean, for comparison5
Modenone
Quartiles Q1 and Q33 and 7
Price This optional: add your own prices

Your prices are remembered on this device only.

Send Order WhatsApp, SMS or email to your supplier
Include
Working
  1. Sort the 6 values: 1, 3, 4, 6, 7, 9
  2. The count is even, so the median is the average of values 3 and 4: (4 + 6) ÷ 2 = 5

Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.

Formula

Sort the values
Odd n:  median = value number (n + 1) ÷ 2
Even n: median = average of values n ÷ 2 and n ÷ 2 + 1

Worked Example

7, 1, 3, 9, 4, 6:

  1. Sorted: 1, 3, 4, 6, 7, 9 (6 values, an even count)
  2. Middle values: the 3rd and 4th, 4 and 6
  3. Median = (4 + 6) ÷ 2 = 5

Median and Mean Compared

Values Median Mean
1, 3, 4, 6, 7, 9 5 5
2, 4, 9 4 5
10,000, 10,500, 11,000, 25,000 10,750 14,125
5, 5, 5, 5, 50 5 14

Frequently Asked Questions

How do you find the median?

Sort the numbers from smallest to largest. With an odd count, the median is the middle value; with an even count, it is the average of the two middle values.

What is the median of an even set of numbers?

The average of the two in the middle. For 1, 3, 4, 6, 7, 9 the middle two are 4 and 6, so the median is 5.

When is the median better than the mean?

When a few values are far from the rest. Quotes of 10,000, 10,500, 11,000 and 25,000 have a mean of 14,125 but a median of 10,750, which is closer to a typical quote.

Where is the median in a list?

At position (n + 1) ÷ 2 in the sorted list. For 9 values that is the 5th; for 10 values it falls between the 5th and 6th.

What are quartiles?

The medians of the lower and upper halves. Q1 has a quarter of the values below it and Q3 has three quarters below it.

Embed This Calculator on Your Website

Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.

Preview
All Building & Planning Calculators