Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › Basic statistics › 3. GM and HM
Basic statistics · Lesson 3 of 10

Geometric and harmonic means

The arithmetic mean adds the values and divides. That is the right average for most things, and the wrong one for two kinds of numbers: ratios, which multiply, and rates such as speed and price, which have something fixed underneath them. This lesson introduces the geometric mean for the first and the harmonic mean for the second, and a picture that puts all three means in order. Growth rates, the geometric mean’s best-known use, have their own add-on lesson near the end of the module.

← Basic statistics moduleLesson 3 of 10 · about 35 minutes
1Data2Averages3GM and HM4Spread5Shape6Correlation7Regression8Index numbers9Growth rates10Hard problems
A question to hold on to
The price of a brand of milk was ₹28 a litre in September and ₹36 a litre in October. A family spends the same amount of money on it in each month. What is the average price per litre it paid over the two months?
IIT JAM 2025Solved at the end ↓
In this guide
Lesson · about 35 minutes
  1. The geometric mean
  2. The harmonic mean: averaging rates
  3. AM ≥ GM ≥ HM, in one picture
  4. Which mean, when?
  5. The opening question, solved
  6. The lesson on one screen
  7. Check yourself
  8. Past papers, by level
01
For numbers that multiply

The geometric mean

Some numbers combine by multiplying. A ratio of 1.5 followed by a ratio of 0.8 gives 1.5 × 0.8 = 1.2. The average of such numbers should be the single ratio that, used every time, gives the same product. That is the geometric mean: the n-th root of the product.

Geometric mean
GM=(x1​x2​⋯xn​)1/nlnGM=n1​i=1∑n​lnxi​
Multiply, then take the n-th root. Taking logarithms turns the product into a sum, so the log of the GM is the arithmetic mean of the logs.

The GM of 2, 4 and 8 is (2 × 4 × 8)1/3 = 641/3 = 4 (CUET 2025). The GM of 4 and 9 is √36 = 6. The log version is the one DSE 2013 asks: the arithmetic mean of the logarithm of wages is the log of the geometric mean of wages, which is why wage regressions in logs describe a typical wage rather than an average one.

Two conditions follow from the definition. The values must be positive. If any value is zero the product, and so the GM, is zero (JNU 2015): the GM of 4, 12, 20, 7, 0 and 5 is 0, which says nothing about the data. And the GM is never larger than the arithmetic mean, a fact the third picture of this lesson shows.

Pause and predict
Two ratios are 1.5 and 0.8. The geometric mean of the ratios is
The rule

Things that add are averaged with the arithmetic mean. Things that multiply, such as ratios, index relatives and growth factors, are averaged with the geometric mean. Rates whose numerator is fixed, such as speed over a set distance, are averaged with the harmonic mean. Growth factors are the geometric mean’s most common use, and Lesson 9 works them through in full.

02
Interactive

The harmonic mean: averaging rates

Rates such as speed (kilometres per hour) and price (rupees per litre) have a trap in them. A car drives 40 km/h out and 60 km/h back. The simple average is 50, but the car spends longer at the slow speed, so the true average over the round trip is less. For distance d each way, the time is d ÷ 40 + d ÷ 60 = d ÷ 24 hours for 2d kilometres, so the average speed is 48 km/h.

Pause and predict
A car drives to a town at 40 km/h and comes back by the same road at 60 km/h. Its average speed for the round trip is
Harmonic mean
HM=x1​1​+x2​1​+⋯+xn​1​n​
The reciprocal of the average of the reciprocals. It is the right average of a rate when the quantity on top of the rate (distance, money) is the same each time.

The question to ask is what is held fixed? The same prices can be averaged two ways, depending on how the family shops. JAM 2025: milk cost ₹28 a litre in September and ₹36 in October, and the family spends the same amount of money in each month. The average price it pays is the harmonic mean, ₹31.50. Had it bought the same number of litres, the average would be the plain mean, ₹32. Try other prices.

Same litres each month

Buy 30 litres both months

Month 130 L
Month 230 L

Spend ₹840 and ₹1,080: ₹1,920 for 60 litres.

Average price ₹32= the arithmetic mean of 28 and 36
Same rupees each month

Spend ₹1,000 both months

Month 135.7 L
Month 227.8 L

Buy 35.71 and 27.78 litres: ₹2,000 for 63.49 litres.

Average price ₹31.5= the harmonic mean of 28 and 36

Holding spending fixed, the family buys more when milk is cheap and less when it is dear, so more of its litres carry the low price. That is why ₹31.5 is below ₹32. The harmonic mean of the two prices is 31.5; the arithmetic mean is 32.

JAM 2026 gives twelve observations, 15, 20, 20, 5, 20, 20, 15, 20, 15, 20, 20, 20, and asks for their harmonic mean. Count them: three 15s, one 5 and eight 20s, so the sum of reciprocals is 3 ÷ 15 + 1 ÷ 5 + 8 ÷ 20 = 0.2 + 0.2 + 0.4 = 0.8, and HM = 12 ÷ 0.8 = 15.0.

Hyderabad 2012 lists the properties: the HM uses every observation, it gives the largest weight to the smallest items (a small value has a big reciprocal), and it cannot be computed if any value is zero.

Watch out for

Which mean for a rate?

  • Same distance, same spending, same weight on top of the fraction: harmonic mean.
  • Same time, same litres, same quantity underneath the fraction: arithmetic mean. Half an hour at each speed averages to the plain mean of the two speeds.
  • Rates of change compounded over time: geometric mean.
03
Interactive

AM ≥ GM ≥ HM, in one picture

For any positive numbers that are not all equal, the three means come in a fixed order: arithmetic mean at least the geometric, geometric at least the harmonic. Equality holds only when every number is the same (Hyderabad 2012 and 2017). JNU 2010 and 2015 ask the first half, GM ≤ AM.

For two numbers a and b there is a picture that shows it. Put a and b end to end on a line and draw the semicircle whose diameter is the whole line. Stand at the join and go up to the arc, to a point D. Then three lengths run out of D: the radius to the centre is the arithmetic mean; the straight drop to the join is the geometric mean; and the short segment to the foot of the perpendicular dropped from the join onto the radius is the harmonic mean. Three lengths from one point, and plainly in order.

Arithmetic mean6.5
Geometric mean6
Harmonic mean5.538
GM² against AM × HM36 = 36
a = 4b = 9DAMGMHM

From the point D the three means are three lengths: the radius (AM, 6.5) is the longest, the drop to the join (GM, 6) is shorter, and the segment to the foot of the perpendicular (HM, 5.54) is shortest. The gap AM − HM is (a − b)² / (2(a + b)) = 0.962.

Two facts to take away. First, for two numbers GM² = AM × HM: for 4 and 9 the means are 6.5, 6 and 5.54, and 6.5 × 5.538 = 36 = 6². Second, the picture gives a proof: since AM × HM = GM² and AM ≥ GM, we get HM = GM² ÷ AM ≤ GM. The other half is the algebra (√a − √b)² ≥ 0, which rearranges to a + b ≥ 2√(ab).

In words: the arithmetic mean treats differences additively, the geometric mean multiplicatively and the harmonic mean through reciprocals. The further the numbers are spread, the further the three drift apart. The gap between AM and HM for two numbers is (a − b)² ÷ (2(a + b)).

04
Choosing

Which mean, when?

MeanUse it forTrap
ArithmeticQuantities that add: incomes, marks, weights.Pulled by extreme values. Never the right average of ratios or rates.
GeometricQuantities that multiply: ratios, price relatives, growth factors.Zero if any value is zero. Needs positive values.
HarmonicRates with a fixed numerator: speed over equal distances, price with equal spending.Undefined if any value is zero. Gives the most weight to the smallest values.
05
Solving the opening question

The opening question, solved

IIT JAM 2025 · moderate
Milk costs ₹28 a litre in September and ₹36 in October, and the family spends the same money in each month. What is the average price per litre?
  1. 1
    Pick an amount.
    Say ₹1,008 a month (the common multiple 28 × 36). In September it buys 36 litres, in October 28 litres.
  2. 2
    Total money over total litres.
    ₹2,016 ÷ 64 litres = ₹31.50 a litre.
  3. 3
    Check with the formula.
    HM = 2 ÷ (1/28 + 1/36) = 2 ÷ 0.0635 = 31.50.
Answer
₹31.50, the harmonic mean. The simple average, ₹32, would be right only if the family had bought the same number of litres each month. With equal spending it buys more when the price is low, so its average price sits below ₹32.
06
Revise

The lesson on one screen

The lesson on one screen
Geometric mean
(x₁x₂…xₙ)^(1/n). Log of GM = mean of logs. Zero if any value is zero. Right for ratios and growth factors.
Harmonic mean
n ÷ Σ(1/x). Right when the numerator of the rate is fixed (equal distance, equal spending). Needs non-zero values; weights small items most.
Order
AM ≥ GM ≥ HM, equal only if all values are equal. For two numbers, GM² = AM × HM.
What is fixed?
Same distance or same spending: harmonic. Same time or same litres: arithmetic. Compounding over time: geometric.
07
Practice

Check yourself

0 of 12 correct so far

Compute

Geometric mean
Find the geometric mean of 3 and 12.
Geometric mean of three
Find the geometric mean of 4, 6 and 9.
Geometric mean of four
Find the geometric mean of 1, 3, 9 and 27.
Harmonic mean of speeds
A delivery van goes 30 km/h on the outward leg and 60 km/h on the return, over the same road. What is its average speed for the round trip?
Harmonic mean
Find the harmonic mean of 2, 3 and 6.
Equal spending
Milk costs ₹28 and ₹36 a litre in two months and the same money is spent each month. Find the average price per litre.
Equal quantity
Now the family buys the same number of litres each month, at ₹28 and ₹36. Find the average price per litre.
The three means of two numbers
For two numbers the arithmetic mean is 6.5 and the geometric mean is 6. Use GM² = AM × HM to find the harmonic mean.

Quick questions

1For positive numbers that are not all equal, which ordering is correct?
2Equal sums of money are spent each month on a good whose price changes. The average price paid is the
3If one value in a set is zero, the geometric mean of the set is
4The arithmetic mean of the logarithms of a set of positive values equals
08
Real questions

Past papers, by level

Foundation

Definitions, one-step arithmetic and which-measure questions. Most CUET and Hyderabad questions sit here.

5 questionsPractise →

Standard

Grouped data, combined means, effects of shifting and scaling, and statement questions, up to JNU level.

6 questionsPractise →

Delhi School level

This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 10: Data and averages.

5 questionsLesson 10 →
All 11 past-paper questions for this lesson, easiest first: practise the full set →

✦These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.

← Lesson 2Mean, median and modeLesson 4 →Spread: range, variance and standard deviation

Read next

All resources →
StatisticsStatistics 4: variance, standard deviation and spreadRange, quartile deviation and mean deviation, variance as an average of squares, why a sample divides by n − 1, shifting and scaling, the coefficient of variation, z-scores and combined groups.Complete guide · 60 minStatisticsStatistics 9: growth rates, CAGR and the rule of 70Why growth multiplies, successive percentage changes, the compound annual growth rate, continuous growth and logs, doubling time, and aggregate growth as a weighted average.Complete guide · 45 minStatisticsStatistics 2: mean, median and modeThe mean as a balance point, the median and what it minimises, the mode, weighted and combined means, grouped data by step deviation, and quartiles read off an ogive.Complete guide · 55 min