Interview Q&A / Aptitude

BeginnerQuick answer1 min readUpdated 3 Oct 2026

A person travels from Pune to Mumbai at 60 km/h and returns at 40 km/h. What is the average speed for the whole trip?

SHORT ANSWER

48 km/h, not 50. For equal distances the average speed is the harmonic mean: 2 x 60 x 40 / (60 + 40) = 4,800 / 100 = 48 km/h, because more time is spent at the slower speed.

Explain it simply

Average speed is total distance divided by total time, never the plain average of the speeds. On the slow return leg you spend more hours, so the slow speed gets more weight. That pulls the true average below the simple 50 km/h.

Example

Question: Going at 60 km/h, returning at 40 km/h over the same route. Average speed?

Take the one-way distance as 120 km (LCM of 60 and 40).

  1. Time going = 120 / 60 = 2 h.
  2. Time returning = 120 / 40 = 3 h.
  3. Total distance = 240 km, total time = 5 h.
  4. Average speed = 240 / 5 = 48 km/h.

Formula for two equal distances: 2xy / (x + y) = 2 x 60 x 40 / 100 = 48. For three equal distances at x, y, z: 3xyz / (xy + yz + zx).

js
const avg = (x, y) => (2 * x * y) / (x + y);
console.log(avg(60, 40)); // Output: 48

What to say in the interview

"Average speed is total distance over total time. For equal distances that's the harmonic mean, 2xy over x plus y, which gives 48, lower than 50 because the slow leg takes longer."

Common mistakes

  • Answering 50 km/h by averaging the speeds.
  • Using the harmonic mean when the times, not the distances, are equal.

#aptitude#time-speed-distance#average-speed

Related questions

Practise more Aptitude questions

Test your recall with short answers, then return to the detailed explanations when you need context.

Open Aptitude quick answers →

Get new questions like this by email

One short email when something new and useful lands. No spam, unsubscribe in one tap.

By subscribing you agree to the Privacy Policy.