Trimean Calculator

Combine the median and quartiles into one resistant centre estimate.

Math and PercentUpdated 2026-11-192 min read
Trimean Calculator
Numbers separated by commas or spaces.
Trimean
...
Median...
Midhinge...

What it does

The trimean is a single measure of the centre of a data set that uses all three quartiles. It was popularised by John Tukey as part of exploratory data analysis, and it gives the median twice the weight of the first and third quartiles.

This tool sorts the data, finds the three quartiles by linear interpolation, and applies the weighted formula. It also reports the median and the midhinge, which is the average of the two outer quartiles.

Because it leans on the median, the trimean is more resistant to extreme values than the ordinary mean. Because it also includes the quartiles, it responds to the spread of the middle half of the data in a way the median alone does not.

The measure is best used alongside a plot or a five-number summary. A single number cannot show shape or gaps, and the trimean is no exception, but it offers a useful middle ground between a fragile mean and a coarse median.

How to use

  1. Enter the values separated by commas or spaces.
  2. The tool sorts them and locates the three quartiles.
  3. Read the trimean in the main result.
  4. Compare it with the median and midhinge below.
  5. Try adding an extreme value to see how little it moves.
  6. Use a five-number summary for the fuller picture.

Formula

Trimean = (Q1 + 2 x Q2 + Q3) / 4, where Q2 is the median.
Q1
First quartile, the 25th percentile.
Q2
Second quartile, the median.
Q3
Third quartile, the 75th percentile.

Quartiles are found by linear interpolation, the same convention used by common statistical software: the position is (n - 1) times the percentile plus one. The trimean can also be written as the average of the median and the midhinge, where the midhinge is (Q1 + Q3) / 2. For a symmetric data set the trimean, median and ordinary mean often coincide, which makes symmetry easy to spot.

Worked example

Example: the numbers 1 through 9

Values 1, 2, 3, 4, 5, 6, 7, 8, 9.

  1. There are nine values, so each quartile lands exactly on a value.
  2. Q1 is the third value, which is 3.
  3. The median Q2 is the fifth value, which is 5.
  4. Q3 is the seventh value, which is 7.
  5. Trimean = (3 + 2 x 5 + 7) / 4 = 20 / 4 = 5.
  6. The midhinge (3 + 7) / 2 is also 5.

Reference table

Trimean values for small data sets
ValuesQ1MedianQ3Trimean
1, 2, 32222
1, 2, 3, 4, 52343
1 through 93575
10, 20, 30, 4017.52532.525
0 through 10025507550

Limits

  • It still depends on the quartile convention used.
  • A single value cannot describe the shape of the distribution.
  • Small samples give unstable quartile estimates.
  • It ignores everything outside the quartiles except through their positions.

Common mistakes

  • Confusing the trimean with a trimmed mean.
  • Weighting all three quartiles equally.
  • Using the average of Q1 and Q3 as the whole answer.
  • Forgetting to sort before locating quartiles.
  • Reading the result as a measure of spread.

Try it yourself

Quick checks. Answers sit tucked under each question.

Q1 = 3, median = 5, Q3 = 7. Trimean?

(3 + 10 + 7) / 4 = 5.

What is the midhinge for that set?

(3 + 7) / 2 = 5.

Which quartile gets double weight?

The median.

Questions

What is the trimean?

A centre measure that combines the median and the two quartiles.

Who popularised it?

John Tukey, in his work on exploratory data analysis.

How is it different from the median?

It also uses the first and third quartiles, with half the median's weight each.

Is it resistant to outliers?

Yes. Its breakdown point is 25 percent.

What is a midhinge?

The average of the first and third quartiles.

When does it equal the ordinary mean?

Often for symmetric data sets.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.