Calculators
Home › Calculators › Midhinge Calculator

Midhinge Calculator

The centre of the middle half: the average of Q1 and Q3.

Calculate the midhinge

Midhinge with Q1, Q3, median and IQR, and the quartile working shown.

Quick answer: The midhinge is the average of the first and third quartiles: (Q1 + Q3) / 2. It marks the centre of the middle half of your data, halfway between the quartile cut points. It leans on the quartiles, so one extreme barely moves it. For the quiz scores, Q1 is 67.5 and Q3 is 73.5, giving a midhinge of 70.5.

How to use this midhinge calculator

Paste your numbers above and press Calculate. You will get the midhinge, Q1, Q3, the median, the interquartile range and the count, plus the sorted list and the quartile working under the step-by-step panel. Quartiles use linear interpolation, the method behind Excel QUARTILE.INC, the same method the quartile calculator on this site uses.

A street of house prices

Ten houses sold on one street last year. Nine of them went for ordinary money: 210, 225, 240, 248, 255, 262, 275, 290 and 310, in thousands of dollars. The tenth was the big corner house with the pool. It sold for 890.

The average sale price is 320.5 thousand dollars. That number is higher than nine of the ten sales. It describes no house anyone actually bought, except by accident. The median is 258.5, the middle of the list, and it tells a truer story. The quartiles cut deeper: Q1 is 242 and Q3 is 286.25, so the middle half of the sales ran from 242 to 286.25. Average those two cut points and you get the midhinge, 264.125, or about $264,000. It sits inside the pack of ordinary sales. One mansion cannot drag it away.

That is the whole idea. The midhinge is a centre built from the middle of the data, and the extremes get no vote.

What is the midhinge?

The midhinge is the average of the first and third quartiles. Q1 marks the point a quarter of the way through sorted data. Q3 marks the point three quarters through. The midhinge is the point halfway between them.

Midhinge = (Q1 + Q3) ÷ 2

John Tukey, who gave statistics the box plot and much of exploratory data analysis, called the quartiles "hinges". They are the joints the data folds at. The midhinge is the middle of those hinges. On a box plot it is the centre of the box: the box runs from Q1 to Q3, and the midhinge is its midpoint. You may also see it called the midquartile. Same number, older name.

It belongs to the family of resistant centres. A resistant statistic barely moves when an extreme value moves a long way. The mean is the opposite: every value counts, so one mansion counts as much as any house on the street. The median is resistant too, and it is the better known of the two. The midhinge earns its place when the quartiles are already in your hands, or when you want a centre that listens to the whole middle half rather than only the one or two values at the very centre.

How to calculate the midhinge by hand

Three steps. Step 1: sort the values from smallest to largest. Quartiles are positions in a sorted list, so nothing works until the list is in order. Step 2: find Q1 and Q3. For a percentile p, the position is p × (n − 1), counting the first sorted value as position 0. Q1 uses p = 0.25 and Q3 uses p = 0.75. When a position lands between two values, interpolate: take the lower value plus the fraction of the gap to the next value. Step 3: add Q1 and Q3 and divide by 2. That is the midhinge.

One warning before the examples. Quartiles can be placed by more than one rule, and small datasets show the differences. This page uses linear interpolation throughout, the QUARTILE.INC rule. If your class uses Tukey hinges or the exclusive method, your hand answer may differ a little. The method differs, and the arithmetic is still right. Say which method you used and nobody has to guess.

Worked example: ten quiz scores

Scores: 58, 72, 65, 80, 91, 67, 72, 74, 69, 72. Sorted: 58, 65, 67, 69, 72, 72, 72, 74, 80, 91. There are 10 values, so n − 1 = 9.

Q1: position 0.25 × 9 = 2.25. That is a quarter of the way from the 3rd value (67) to the 4th (69): 67 + 0.25 × (69 − 67) = 67.5. Q3: position 0.75 × 9 = 6.75. That is three quarters of the way from the 7th value (72) to the 8th (74): 72 + 0.75 × (74 − 72) = 73.5. Midhinge = (67.5 + 73.5) ÷ 2 = 70.5.

For comparison, the median is 72 and the mean is 72. The midhinge sits a little lower, at 70.5. Look at the quartiles and you can see why: Q1 sits 4.5 below the median while Q3 sits only 1.5 above it, so the middle half leans toward the lower scores. The midhinge reports that lean. The interquartile range is 73.5 − 67.5 = 6, the width of that middle half.

Worked example: eleven worksheet times

Eleven students timed themselves finishing a worksheet, in minutes: 12, 15, 11, 18, 15, 20, 15, 13, 17, 14, 19. Sorted: 11, 12, 13, 14, 15, 15, 15, 17, 18, 19, 20. Here n = 11, so n − 1 = 10.

Q1: position 0.25 × 10 = 2.5, halfway between the 3rd value (13) and the 4th (14): (13 + 14) ÷ 2 = 13.5. Q3: position 0.75 × 10 = 7.5, halfway between the 8th value (17) and the 9th (18): (17 + 18) ÷ 2 = 17.5. Midhinge = (13.5 + 17.5) ÷ 2 = 15.5 minutes. The median is 15 minutes and the IQR is 4 minutes.

The positions landed exactly halfway this time. Do not count on that. With most datasets the position falls at an awkward fraction and the interpolation does real work, as in the quiz example above. The calculator shows the position and the two bracketing values for your own data, so you can follow each step.

Midhinge vs median vs trimean

Three resistant centres, one dataset. Ten salaries, in thousands of dollars: 32, 35, 38, 40, 41, 42, 44, 45, 47, 120. Nine ordinary salaries and one senior hire at 120.

Q1 is 38.5 and Q3 is 44.75. The median, the average of the 5th and 6th values, is 41.5. The midhinge is (38.5 + 44.75) ÷ 2 = 41.625. The trimean weights the median double and each quartile single: (Q1 + 2 × median + Q3) ÷ 4 = (38.5 + 83 + 44.75) ÷ 4 = 41.5625. The mean is 48.4, a full 7 above the pack. All three resistant centres land within a whisker of each other, near 41.5. The mean stands apart, pulled up by the one large salary.

So what separates the three? The median listens only to the middle one or two values. The midhinge listens only to the quartile cut points. The trimean listens to all three cut points, with the median counting double. Tukey favoured the trimean for that reason: it uses more of the data than the median while keeping the same resistance to extremes. In practice the three rarely disagree by much, and when they do, the gaps are information. A midhinge well above the median means the upper half stretches further than the lower half. A midhinge well below it means the reverse.

Which one should you report? The median is the safe default. Readers know it, and most guidelines expect it. Reach for the midhinge when you already have the quartiles in front of you, for instance when reading a five-number summary or a box plot, and you want its centre in one step. The box plot maker draws that box for your own data, with the quartiles labelled.

When to use the midhinge, and when to leave it alone

Use it when the data is skewed or carries values you do not trust. House prices, salaries, waiting times, incomes: all of them lean to one side with a long tail, and all of them punish the mean for it. The midhinge stays with the typical values. It is also the natural centre to quote beside the IQR, since both come from the same two cut points. A report that gives Q1, Q3 and the IQR can add the midhinge for free.

The resistance is easy to see. Go back to the quiz scores and change the top score from 91 to 191, the kind of slip an extra keystroke makes. Q1 and Q3 do not move at all: 67.5 and 73.5, exactly as before. The midhinge stays at 70.5 and the median stays at 72. The mean jumps from 72 to 82. One typo, ten points of damage, and only the mean notices.

Leave it alone in a few cases. With very few values, say under five, the quartiles rest on interpolation more than on data, and the honest summary is the values themselves. In a formal report, use the centre your readers expect, usually the median, and save the midhinge for your own checking. And when the data is clean and roughly symmetric, the mean earns its keep: it uses every value, and there is nothing to resist. The measures of central tendency guide compares all the centres side by side, with the cases where each one leads.

Common mistakes

Common mistake: mixing up the midhinge and the midrange. The midrange averages the minimum and the maximum. On the salary data that gives (32 + 120) ÷ 2 = 76, a number higher than nine of the ten salaries. The midhinge averages the quartiles and gives 41.625. The names sound alike. The answers live far apart. See the midrange calculator for what that statistic is good for, which is quick estimates on small clean datasets, and little else.
Common mistake: comparing midhinges computed by different quartile rules. Tukey hinges put Q1 at 38 and Q3 at 45 on the salary data, giving a midhinge of 41.5. Linear interpolation gives 41.625. Both answers are right under their own rule, and arguing about the 0.125 gap wastes an afternoon. Pick one rule, name it, and use it for every group you compare. This site uses linear interpolation on every quartile page, including the quartile calculator.
Common mistake: forgetting to sort. Quartiles are positions, and positions only mean something in an ordered list. Averaging the 3rd and 8th values of an unsorted list gives a number with no meaning at all. Sort first, then count positions. The calculator sorts your data for you and shows the sorted list in the working, so you can check it did.

One more habit worth keeping: quote the quartiles next to the midhinge, not the midhinge on its own. A midhinge of 41.625 with quartiles 38.5 and 44.75 tells you the centre and the width of the middle half in one breath. The centre alone hides how spread out the typical values are.

Frequently asked questions

What is the midhinge in simple terms?

The average of the first and third quartiles. It is the middle of the middle half of your data: half the values sit between Q1 and Q3, and the midhinge is the centre of that band.

How is the midhinge different from the median?

The median is the middle value, or the average of the two middle values. The midhinge averages the two quartile cut points instead. On symmetric data they are close; on skewed data they part company. In the salary example the median is 41.5 and the midhinge is 41.625, while the mean is 48.4.

Is the midhinge the same as the midrange?

No. The midrange averages the minimum and maximum, so one extreme value drags it anywhere: 76 for the salary data. The midhinge averages Q1 and Q3, giving 41.625. The names sound alike and the answers do not.

Why does my textbook give a slightly different midhinge?

Quartiles can be placed by more than one rule. This calculator uses linear interpolation (Excel QUARTILE.INC). Tukey hinges give 41.5 on the salary data against 41.625 here. Name the method you used and the difference stops looking like an error.

When should I use the midhinge instead of the mean?

When the data is skewed or carries outliers and you want a centre that describes the typical values rather than the extremes: house prices, salaries, waiting times. For formal reporting the median is the more familiar choice, and for clean symmetric data the mean uses every value.