The short answer: speed = distance ÷ time, and the other two forms follow from it: distance = speed × time and time = distance ÷ speed. Trains, boats and relative-motion questions only change what is added to or subtracted from the speed.

Units first

Most mistakes come from mixing units. To change km/h to m/s, multiply by 5/18. To change m/s to km/h, multiply by 18/5. So 72 km/h = 72 × 5/18 = 20 m/s, and 10 m/s = 36 km/h.

Average speed

Average speed is total distance divided by total time, and not the average of two speeds. When the same distance is covered at two speeds x and y, the average speed is 2xy / (x + y).

Example 1. A man goes to a town at 40 km/h and returns at 60 km/h. Average speed = 2 × 40 × 60 / 100 = 48 km/h, not 50.

Relative speed

  • Two objects moving in opposite directions: add the speeds.
  • Two objects moving in the same direction: subtract the smaller speed from the larger.

Example 2. Two trains of length 100 m and 120 m run in opposite directions at 60 km/h and 40 km/h. Relative speed = 100 km/h = 100 × 5/18 = 250/9 m/s. Distance to cover = 100 + 120 = 220 m. Time = 220 ÷ (250/9) = 1980/250 = 7.92 seconds.

Trains

When a train crosses a pole, a person or a signal, the distance covered is the length of the train. When it crosses a platform or a bridge, the distance is the length of the train plus the length of the platform.

Example 3. A 150 m train crosses a pole in 15 seconds. Its speed is 150/15 = 10 m/s = 36 km/h. If it crosses a 250 m platform at that speed, the distance is 400 m and the time is 400/10 = 40 seconds.

Boats and streams

Let the boat's speed in still water be b and the stream's speed be s. Downstream speed = b + s. Upstream speed = b − s. The boat's speed in still water is (downstream + upstream)/2 and the stream's speed is (downstream − upstream)/2.

Example 4. A boat goes at 12 km/h in still water; the stream flows at 3 km/h. Downstream speed is 15 km/h and upstream speed is 9 km/h. For 30 km, the downstream time is 2 hours and the upstream time is 30/9 = 3 hours 20 minutes.

Ratio shortcut

When the distance is fixed, speed and time are inversely proportional. If speeds are in the ratio 3 : 4, the times taken are in the ratio 4 : 3. This turns many 'faster by x minutes' questions into one-line ratio problems.

Common mistakes

  • Forgetting to convert km/h to m/s when the train length is in metres.
  • Averaging two speeds directly.
  • Adding the lengths of the two trains and then using the wrong relative speed.
  • Using still-water speed as the upstream speed.

Course · Beginner · Free

Quantitative Aptitude — Time Speed and Distance: Foundation

Foundation course on Time Speed and Distance (Quantitative Aptitude): the basics, explained from the start.

Course · Beginner · Free

Quantitative Aptitude — Boats and Streams: Foundation

Foundation course on Boats and Streams (Quantitative Aptitude): the basics, explained from the start.

Try a timed set of speed and distance questions.

Take a practice test

Frequently asked questions

How do I convert km/h to m/s?

Multiply by 5/18. For example, 54 km/h is 54 × 5/18 = 15 m/s.

What is the formula for average speed?

Average speed = total distance ÷ total time. If equal distances are covered at speeds x and y, it equals 2xy/(x + y).

How do I solve train crossing problems?

Decide the distance: the train's own length for a pole or person, and the train plus platform length for a platform. Divide by the speed in the same units.

What are upstream and downstream speeds?

Downstream speed is boat speed plus stream speed. Upstream speed is boat speed minus stream speed.

What if two trains move in the same direction?

Subtract their speeds to get the relative speed, then divide the combined length by it for the time taken to overtake.