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.
My Construction Calculator
Median Calculator
Inputs
Results update as you type.
Diagram updates as you type.
Results
Check the working before you order.
Median
5
Sorted
1, 3, 4, 6, 7, 9
Count
6
Position of the median
between values 3 and 4
Mean, for comparison
5
Mode
none
Quartiles Q1 and Q3
3 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
The count is even, so the median is the average of values 3 and 4: (4 + 6) ÷ 2 = 5
Scan to open this calculationThe code links to this calculator with your inputs, so anyone can scan it with a phone camera and see the same result. Save it for a report, a site board or WhatsApp.Test copy: this code opens the live site, myconstructioncalculator.com, so it works on a phone once the site is launched.
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.
Scan to open this calculation with the same inputs.
Generated with myconstructioncalculator.com. Estimates for planning and ordering only; verify against drawings and specifications.
Formula
Sort the valuesOdd n: median = value number (n + 1) ÷ 2Even n: median = average of values n ÷ 2 and n ÷ 2 + 1
Worked Example
7, 1, 3, 9, 4, 6:
Sorted: 1, 3, 4, 6, 7, 9 (6 values, an even count)
Middle values: the 3rd and 4th, 4 and 6
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.