Time Speed Distance — Average Speed Trap Delayed ETAs
Planned arrival times showed early — system averaged speeds as (s1+s2)/2 causing 30%+ ETA errors.
- Core relationship: Distance = Speed × Time, with three rearrangements
- Unit conversion is the #1 trap: km/h to m/s multiply by 5/18, minutes to hours divide by 60
- Relative speed: add speeds when moving toward, subtract when same direction
- Average speed is total distance / total time, never the arithmetic mean
- Performance insight: A 1-second error in speed conversion mis-calculates ETA by minutes at highway speeds
- Production insight: Ride-hailing ETA engine used arithmetic mean — average was off by 30% on mixed-speed routes
Imagine you're on a road trip. You know your car does 60 miles every hour, and you need to travel 180 miles — how long will it take? That simple question IS a time-speed-distance problem. The three values are always connected: if you know any two, you can always find the third. Think of it like a triangle where covering one corner always reveals the other two.
Time, speed, and distance problems show up everywhere — from Google Maps calculating your arrival time to airline pilots computing fuel burn rates. They're not just textbook puzzles. Any system that involves movement, throughput, or rates is secretly a TSD problem. That's why every major tech company, consulting firm, and bank includes them in their aptitude screening rounds — they test whether you can model a real situation mathematically under time pressure.
The core challenge isn't the formula itself (it's just three words: Distance equals Speed times Time). The real difficulty is knowing which form of the formula to use, how to handle unit mismatches, and how to set up problems that involve multiple moving objects or direction changes without losing track of what's relative to what.
By the end of this article you'll be able to instantly classify any TSD problem into one of five patterns, apply the right formula variant without second-guessing yourself, avoid the three unit-conversion traps that cost candidates marks, and confidently walk an interviewer through your reasoning on the trickiest relative motion scenarios.
What is Time Speed Distance Problems?
Time Speed Distance Problems is a core concept in Interview. Rather than starting with a dry definition, let's see it in action and understand why it exists.
TSD problems model any moving object: a car, a train, a data packet, or a rocket. The three variables — distance, speed, time — are locked in a tight relationship. Given any two, the third is determined. The real challenge isn't the formula; it's identifying the hidden variable and converting all units to a common system before plugging numbers. In interviews, the question rarely hands you the exact values you need. You must extract knowns and unknowns from the narrative.
The Core Formula: D = S × T and Its Three Forms
The relationship is simple: Distance = Speed × Time. From that you can derive Speed = Distance / Time and Time = Distance / Speed. The trick is picking the right form without second-guessing. Always ask: which variable am I solving for?
Example: A car travels 240 km at 60 km/h. Time = 240 / 60 = 4 hours. If instead you know time and distance, apply the appropriate rearrangement.
In interviews, problems rarely hand you the exact formula you need. They'll give you two quantities and leave the third hidden. Your job is to identify which form to use.
Unit Conversion: The Hidden Trap
You'd be surprised how many candidates lose marks because they use km/h with time in minutes. The rule: convert everything to the same unit system before plugging into the formula.
- km/h to m/s: multiply by 5/18 (or 1000/3600)
- m/s to km/h: multiply by 18/5
- minutes to hours: divide by 60
- hours to minutes: multiply by 60
- km to meters: multiply by 1000
Example: A train moves at 72 km/h. Express speed in m/s: 72 × (5/18) = 20 m/s.
Common mistake: use 5/18 but apply it the wrong way — multiplying when you should divide. Remember: m/s is a smaller number than km/h, so you multiply by 5/18 to go down.
Relative Speed: When Two Objects Move
When two objects move along the same line, the distance between them changes at their relative speed: - Moving toward each other: relative speed = speed1 + speed2 - Moving in the same direction: relative speed = |speed1 - speed2|
Classic problem: Two trains of lengths 150 m and 200 m move toward each other at 60 km/h and 40 km/h. How long to fully pass each other?
Step 1: Convert speeds to m/s. 60 km/h = 60 × 5/18 = 16.67 m/s. 40 km/h = 11.11 m/s. Step 2: Relative speed = 16.67 + 11.11 = 27.78 m/s. Step 3: Total distance to cover = 150 + 200 = 350 m. Step 4: Time = 350 / 27.78 ≈ 12.6 seconds.
Many forget to add the lengths. Always include both lengths when objects pass each other.
Average Speed: Don't Average Speeds
The most common trap in TSD: taking the arithmetic mean of two speeds to get average speed. That is almost always wrong.
Correct: Average speed = Total distance / Total time.
Example: A car goes 60 km/h for 2 hours, then 40 km/h for 3 hours. Wrong average: (60 + 40)/2 = 50 km/h. Correct: Total distance = (60×2) + (40×3) = 120 + 120 = 240 km. Total time = 2 + 3 = 5 hours. Average speed = 240/5 = 48 km/h.
The harmonic mean (2ab/(a+b)) gives the correct answer only when distances are equal. In this case distances are not equal (120 vs 120? Actually they are equal in this example, 120 each, so harmonic mean would work but that's a special case. Better to stick to total distance / total time.
Boats, Streams, Trains, and Circular Tracks
Real-world TSD extensions test your ability to handle multiple frames of reference.
Boats and Streams: - Downstream speed = boat speed + stream speed - Upstream speed = boat speed - stream speed
Trains passing objects: - Passing a stationary object: distance = train length - Passing a moving object: distance = train length + object length (if moving opposite) or difference (if same direction)
Circular tracks: - Time for two runners to meet when running in same direction = track length / (relative speed) - When running opposite directions = track length / (sum of speeds)
These variations are the bread and butter of interview aptitude rounds. There's nothing new in them — it's still D = S × T with adjusted 'distance' and 'speed' definitions.
Interview Strategy: How to Attack Any TSD Problem in Under 30 Seconds
In aptitude rounds, time pressure is the real test. Here's a repeatable framework:
- Identify the scenario: single object, two objects (relative speed), average speed, or special case (boats, trains, circular).
- Write down known variables and their units. Convert all to consistent units immediately.
- Select the correct formula variant. For relative speed, determine direction.
- Solve step by step — interviewers want clear reasoning, not fast mental math.
- Double-check: does the answer make sense? (e.g., time shouldn't be negative, speed should be less than absurd.)
Practice this sequence until it's automatic. Most candidates lose marks not because they don't know the formulas but because they rush and skip unit conversion or misidentify the scenario.
The 10-Minute Delay That Added Two Hours
- Never average speeds you didn't weigh by time.
- Always verify ETA algorithms against real trip logs before deploying.
- The correct average speed formula is: total distance ÷ total time.
Key takeaways
Common mistakes to avoid
6 patternsMemorising formulas before understanding the concept
Skipping practice and only reading theory
Using km/h with minutes without converting
Averaging speeds arithmetically
Forgetting to add lengths when trains pass
Misidentifying reference frame — using ground speed when you need relative speed
Interview Questions on This Topic
A car travels from town A to town B at 60 km/h and returns from B to A at 40 km/h. What is the average speed for the entire trip?
Frequently Asked Questions
That's Aptitude. Mark it forged?
5 min read · try the examples if you haven't