Skip to content

Average Speed Calculator

Choose your units

Trip legs

This leg: 30.00 km/h over 1 h 60 min

This leg: 60.00 km/h over 59 min 60 s

Average speed (total distance ÷ total time)

40.00 km/h

11.11 m/s · 40.00 km/h · 24.85 mph

Total distance

120.00 km

Total time

2 h 60 min

Watch the trap

Simply averaging the leg speeds gives 45.00 km/h, but the true average is 40.00 km/h — a difference of 5.00 km/h. The slower, longer-lasting legs always pull the real average down.

How to Use This Calculator

  1. 1.Pick the units you want to work in at the top — distance, speed, and time. Every leg uses the same set.
  2. 2.For each leg, enter the distance, then either its speed or its time. Tap know time instead (or know speed instead) to switch which one you type.
  3. 3.Add as many driving legs as your trip has. Use Add a stop for time spent parked — it adds time but no distance, which drags the average down realistically.
  4. 4.Read the blue panel for the true average speed. The amber box shows how far off you'd be if you naively averaged the leg speeds instead.

Rate this calculator

Average Speed Calculator: Why Total Distance ÷ Total Time Beats the Simple Average

Here's a question that trips up more physics students than any formula ever could: you drive 60 km to a friend's town at 30 km/h, then drive the same 60 km home at 60 km/h. What was your average speed? Almost everyone blurts out 45 — the halfway point between 30 and 60. It's wrong, and it's wrong by a margin that matters. The real answer is 40 km/h, and the reason why is the entire point of an average speed calculator: average speed is total distance divided by total time, and that is almost never the same as averaging the speed numbers.

Average speed calculator diagram showing a multi-leg trip with slow, fast, and stopped segments combining into one average speed

The Average of 30 and 60 Isn't 45

Walk through the numbers from that drive. The outbound leg covers 60 km at 30 km/h, which takes 60 ÷ 30 = 2 hours. The return covers the same 60 km at 60 km/h, taking 60 ÷ 60 = 1 hour. Total distance: 120 km. Total time: 3 hours. Average speed = 120 ÷ 3 = 40 km/h. The 45 you instinctively reached for assumes you spent equal time at each speed — but you didn't. You crawled along at 30 km/h for twice as long as you spent zipping back at 60, so the slow leg gets double the weight in the time total. That weighting is exactly what the simple average throws away.

This is why the calculator above starts with that very trip pre-loaded. Hit the page and you immediately see 40 km/h in the blue panel and the wrong answer, 45 km/h, flagged in amber. The gap is small here, but it widens fast when the speeds are further apart — and in an accident reconstruction or a fuel-economy estimate, a 5 km/h error in average speed can be the difference between a plausible reconstruction and a thrown-out one.

Total Distance Over Total Time, Never the Reverse

The formula is short enough to fit on a sticky note: average speed = total distance ÷ total time, or v̄ = Δd_total / Δt_total. Every other way of combining speeds is a shortcut that only works under special conditions. A car covering 250 km in 3 hours and 20 minutes has an average speed of 250 ÷ 3.333 = 75 km/h — full stop, regardless of how it sped up and slowed down in between. The beauty of this definition is that it doesn't care about the messy details. Floor it, brake, idle at a light: the average only ever needs the two totals.

That's also what separates average speed from the instantaneous speed on a single leg. Instantaneous speed is what your speedometer reads at one frozen moment; average speed smears the whole journey into one number. The two agree only when you hold a perfectly constant speed the entire way, which essentially never happens outside a physics problem labeled "assume constant velocity."

Stacking Up a Trip With Several Legs

Real journeys come in chunks: a slow crawl out of the neighborhood, a fast highway stretch, a stop for fuel, then surface streets to the destination. The procedure scales to any number of these legs without getting harder. Find each leg's distance and each leg's time, sum both columns, divide. That's the whole algorithm, and it's exactly what the calculator does when you press Add a driving leg.

The one piece people forget is the stop. A 15-minute coffee break covers zero distance but adds 0.25 hours to the time total — so it can only lower your average. That's why the calculator has a dedicated Add a stop button: it injects fixed time with no distance. If you find your destination ETA always optimistic, this is the culprit. Your moving average might be a brisk 70 km/h, but the door-to-door average that actually predicts your arrival includes every red light and rest break.

Worked Example: A Commute With a Traffic Jam

Take a realistic morning commute with three driving legs and a delay. First, 4 km of city streets at 24 km/h — that's 4 ÷ 24 = 0.1667 h, or 10 minutes. Then a 12 km highway stretch at 90 km/h — 12 ÷ 90 = 0.1333 h, or 8 minutes. But today there's a 6-minute standstill in a jam (0.1 h, zero distance). Finally, 3 km of slow surface roads at 18 km/h — 3 ÷ 18 = 0.1667 h, or 10 minutes.

Add it up. Total distance: 4 + 12 + 0 + 3 = 19 km. Total time: 0.1667 + 0.1333 + 0.1 + 0.1667 = 0.5667 h, about 34 minutes. Average speed = 19 ÷ 0.5667 = 33.5 km/h. Notice how brutally the highway speed gets diluted — you touched 90 km/h, but the door-to-door average is barely a third of that. Drop the 6-minute jam and the average climbs to 19 ÷ 0.4667 = 40.7 km/h. A single short delay knocked more than 7 km/h off the whole trip, because those six stationary minutes added time while contributing nothing to the distance. Plug these four legs into the calculator and you'll watch the totals build leg by leg.

Equal Distances and the Harmonic Mean

There's an elegant shortcut hiding in the equal-distance case — the one from our opening trip. When two legs cover the same distance at speeds v₁ and v₂, the average speed is the harmonic mean: v̄ = 2v₁v₂ / (v₁ + v₂). Check it on 30 and 60: 2 × 30 × 60 / (30 + 60) = 3600 / 90 = 40 km/h. Same answer, no need to compute the individual times. The harmonic mean always comes out below the arithmetic mean, which is the mathematical reason your equal-distance average leans toward the slower leg.

The crucial caveat: this only holds for equal distances. Spend equal timeat each speed instead — say 30 minutes at 30 km/h then 30 minutes at 60 km/h — and the plain arithmetic average (30 + 60) / 2 = 45 km/h is the correct one, because now each speed genuinely gets equal weight. Equal distance uses the harmonic mean; equal time uses the arithmetic mean. Mixing up which scenario you're in is the deeper version of the 45-vs-40 mistake.

ScenarioCorrect averageWhy
Equal distance per leg2v₁v₂/(v₁+v₂)Slower leg takes more time, so it dominates
Equal time per leg(v₁+v₂)/2Each speed gets equal weight in the total
Mixed legsΣd / ΣtNo shortcut — sum the distances and times

Average Speed vs Average Velocity on a Round Trip

Average speed and average velocity sound interchangeable, and on a one-way straight drive they're numerically equal. On a round trip they diverge dramatically. Average speed uses the total path length you actually covered; average velocity uses the straight-line displacement from start to finish. Run a single 400 m lap around a track in 80 seconds and your average speed is 400 ÷ 80 = 5 m/s. Your average velocity? Zero — you finished exactly where you started, so your displacement is 0 m, and 0 ÷ 80 = 0.

That zero isn't a glitch; it's the whole point of the distinction. Speed is a scalar that tallies every meter traveled. Velocity is a vector that only counts net change in position. If your problem asks for direction, or mentions "displacement," or describes a there-and-back journey, you want the average velocity instead of average speed. The two answers can be wildly different for the same trip.

Average Speeds of Real Journeys

Average speed is far lower than top speed for almost everything that starts and stops. These are real figures, and the gap between cruising speed and journey average is the recurring theme — it's all the time spent accelerating, braking, and waiting.

JourneyAvg speed (km/h)Avg speed (m/s)
Urban bus route (with stops)185.0
London Underground, end to end339.2
Marathon world record pace20.95.8
Beijing–Shanghai bullet train30785.1
Transatlantic flight, gate to gate720200
Apollo 11 to the Moon (overall)5,4701,519

The bullet train is the standout. It hits a top speed of 350 km/h on open track, yet its journey average is 307 km/h — the 43 km/h difference is entirely the minutes spent accelerating out of stations and braking into the two intermediate stops. Same principle as your commute, just at ten times the speed.

Average-Speed Mistakes That Lose Exam Marks

  • Averaging the speeds for equal-distance legs. Two equal legs at 40 and 80 km/h average to 53.3 km/h (the harmonic mean), not 60. Always go back to total distance ÷ total time, or use 2v₁v₂/(v₁+v₂).
  • Forgetting to count stopped time.A 30-minute lunch break adds half an hour to the denominator with zero distance. Leave it out and your average comes out far too high — the classic "why is my ETA always wrong" error.
  • Confusing average speed with average velocity.On a round trip the speed is positive but the velocity is zero. If the question says "velocity" or asks for a direction, you need displacement, not total distance.
  • Mixing units inside the totals. Adding a distance in kilometers to one in meters, or a time in minutes to one in hours, corrupts the totals before you divide. Convert everything to one system first — the calculator does this internally so you can mix freely on screen.
Marko Šinko
Marko ŠinkoCo-Founder & Lead Developer

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, Marko ensures precise physics computations and reliable calculator tools across AI Physics Calculator.

Last updated: June 22, 2026LinkedIn

Frequently Asked Questions

Related Calculators