Harmonic Mean Formula

What is Harmonic Mean?

The harmonic mean is the reciprocal of the arithmetic mean of reciprocal, i.e., the average is calculated by dividing the number of observations in the given dataset by the sum of its reciprocals (1/Xi) of every observation in the given dataset.

Harmonic Mean Formula

Harmonic Mean = n / ∑ [1/Xi]

You are free to use this image on your website, templates etc, Please provide us with an attribution linkHow to Provide Attribution?Article Link to be Hyperlinked
For eg:
Source: Harmonic Mean Formula (wallstreetmojo.com)


You can download this Harmonic Mean Formula Excel Template here – Harmonic Mean Formula Excel Template

Example #1

Consider a data set of the following numbers: 10, 2, 4, 7. Using the above-discussed formula, you are required to calculate Harmonic mean.


Use the following data for the calculation.

Harmonic Mean Formula Example 1
Example 1.1

The Harmonic mean =  n / ∑ [1/ Xi ]

= 4/ (1/10 + 1/2 + 1/4 + 1/7)

= 4 / 0.99

Example 1.2

Example #2

Mr.Vijay is a stock analyst at JP Morgan. His manager has asked him to determine the P/E ratio of the index, which tracks the stock prices of Company W, Company X, and Company Y.

Company W reports earnings of $40 million and the market capitalization of $2 billion, Company X reports earnings of $3 billion and the market capitalization of $9 billion and while Company Y reports earnings of $10 billion and the market capitalization of $40 billion. Calculate the Harmonic mean for the P/E ratio of the index.


Use the following data for the calculation.

Harmonic Mean Formula Example 2

First, we shall calculate the P/E ratioP/E RatioThe price to earnings (PE) ratio measures the relative value of the corporate stocks, i.e., whether it is undervalued or overvalued. It is calculated as the proportion of the current price per share to the earnings per share. read more.

P/E ratio is essentially (the market capitalization / the earnings).

  • P/E of (Company W) = ($2 billion) / ($40 million) = 50
  • P/E of (Company X) = ($9 billion) / ($3 billion) = 3
  • P/E of (Company Y) = ($40 billion) / ($10 billion) = 4

Calculation of 1/X value

  • Company W = 1/50 = 0.02
  • Company X= 1/3 = 0.33
  • Company Y= 1/4 = 0.25

The calculation can be done as follows,

Example 2.1

The Harmonic mean = n / ∑[1/ Xi]

  • =3/(1/50 + 1/3 + 1/4)
  • =3/0.60
Example 2.2

Example #3

Rey, a resident of northern California, is a professional sports biker and is on his tour to a beach from his home on Sunday evening around 5:00 PM EST. He drives his sports bike at 50 mph for 1st half of the journey and 70 mph for 2nd half from his home to the beach. What will be his average speed?


Use the following data for the calculation.

Harmonic Mean Formula Example 3

In this example, Rey went on a journey at a certain speed, and here the average would base on distance.

The calculation is as follows,

Example 3.1

Here, we can calculate the Harmonic mean for the average speed of Rey’s sports bike.

The Harmonic mean = n / ∑[1/ Xi]

  • =2/ (1/50 + 1/70)
  • =2/ 0.03
Example 3.2

The average speed of Rey’s sports bike is 58.33.

Use and Relevance

Harmonic means, like other average formulas, they also do have several usages. They are mainly used in the field of finance to certain average data such as price multiples. The financial multiples like the P/E ratio must not be averaged using the normal mean or the arithmetic mean because those mean are biased towards the larger values. Harmonic means further can also be used to identify a certain type of pattern like Fibonacci sequences that are majorly used in technical analysis by the market technicians.

The Harmonic mean also deals with averages of units such as rates, ratios or speed, etc. Also, it is essential to note that it is affected by the extreme values in the given data set or a given set of observations.

The harmonic mean is defined rigidly and is based upon all values or observations in a given dataset or sample, and it can be suitable for further mathematical treatment. Like the geometric mean, the Harmonic mean is also not affected much with the fluctuations in observations or sampling. It would be giving greater importance to the small values or the small observations, and this will be useful only when those small values or those small observations need to be given greater weight.

Recommended Articles

This article has been a guide to Harmonic Mean and its definition. Here we discuss the formula to calculate harmonic mean along with examples and a downloadable excel template. You can learn more about excel modeling from the following articles –