Speed Calculator

Work out average speed, distance or time from the other two.

Eleven distance, fifteen time and sixteen speed units, including a second-speed comparison.

Updated November 27, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

What this page works out

Distance, average speed and travel time are three views of the same journey: know two and the third follows. This page holds all three in one place, so you can enter the pair you actually have — a road sign and a clock, or a distance and the speed you expect to hold — and read the missing number straight away. A second group underneath repeats the journey at a different speed and tells you how much earlier or later that speed arrives.

What you give it

  • Distance in millimetres to nautical miles, including the feet / inches and metres / centimetres entries for a length you would read off a tape measure
  • Time from milliseconds to years, including hours / minutes / seconds so you can type a finish time the way it is written on a results sheet
  • Speed in m/s, km/h, mph, knots, feet per minute and nine other units, up to a fraction of the speed of light

What you get back

  • The third quantity of the journey, filled in as soon as the other two are known
  • The same distance at a second speed, with its own travel time
  • A signed time difference: positive when the first speed arrives first, negative when the second one does

It is a working tool for the moments when a journey becomes a number: a driver working out when to leave, a runner turning a finish time into a speed, a cyclist comparing two routes, or a sailor checking a crossing in nautical miles and knots. It answers one journey at a time and assumes the speed stayed the same for the whole of it.

One calculation, step by step

  1. 1Enter the distance and pick the unit you read it in. A road sign is usually kilometres, a marine chart is nautical miles, a trail guide is often miles.
  2. 2Fill in whichever of time and speed you know. If you have a clock time, switch the time unit to hours / minutes / seconds and put each part in its own box.
  3. 3Read the remaining box: it fills in on its own and is shown in blue while the page is deriving it rather than repeating something you typed.
  4. 4To compare, open Compare the time with a different speed, type the second speed, and read the comparison time and the time difference.

A worked example: 300 km at 80 km/h

You know the distance and the speed you expect to hold, so the time is the unknown. Dividing gives hours directly, and the leftover fraction of an hour becomes minutes.

t=dvˉt = \frac{d}{\bar{v}}==300 km80 km/h\frac{300\ \mathrm{km}}{80\ \mathrm{km/h}}==3.75 h3.75\ \mathrm{h}

Three and three-quarter hours is 3 hrs 45 min, which is exactly what the time boxes show: 3 in the hours box, 45 in the minutes box, and the seconds box left empty because nothing is left over. Add a departure time of your own and you have an arrival you can plan around.

If you fill in all three of distance, time and speed, the two numbers you entered most recently are kept and the third is recalculated from them. That is why a number you typed earlier can turn blue and change after you add one more field — it is being derived, not forgotten.

The three statements it solves

Everything on the page comes from three statements. The first is the definition of average speed; the second repeats it for the comparison speed over the same distance; the third ties the two travel times to their difference.

1. Average speed is distance over time

vˉ=dt\bar{v} = \frac{d}{t}

Written the other way round, it also gives the distance d=vˉ t \ d = \bar{v}\,t\ and the time t=d/vˉ\ t = d/\bar{v}. The bar over the v is not decoration: this is the speed averaged over the whole journey, not the reading on a speedometer at any one moment.

2. The comparison run covers the same distance

vˉ2=dt2\bar{v}_2 = \frac{d}{t_2}

The distance is shared with the first journey, which is what makes the comparison meaningful: the same road, covered at a different average speed, takes a different time.

3. The time difference is a subtraction

Δt=t2−t\Delta t = t_2 - t

The second time minus the first. A negative result therefore means the second speed finishes first; a positive one means the first speed does. The boxes also solve this statement backwards: type a time difference and the page works out the comparison time, and with the distance and a comparison speed in place it can work back to the first speed as well.

Why the unit menus matter more than they look

Each menu entry carries its own conversion into the units the arithmetic runs on — metres, seconds and metres per second — and that conversion happens before the three statements are applied. Some factors are exact decimal definitions, some do not terminate:

1 km/h=518 m/s1\ \mathrm{km/h} = \frac{5}{18}\ \mathrm{m/s}1 mph=0.44704 m/s1\ \mathrm{mph} = 0.44704\ \mathrm{m/s}1 kn=463900 m/s1\ \mathrm{kn} = \frac{463}{900}\ \mathrm{m/s}1 h=3600 s1\ \mathrm{h} = 3600\ \mathrm{s}

Fractional factors such as 518\tfrac{5}{18}are applied as a division rather than as a rounded decimal, so a whole-hour result stays a whole hour instead of drifting a hair below it. The mixed entries add their parts the same way: 1 hr 1 min 1 sec becomes 3600+60+1=3661 s\ 3600 + 60 + 1 = 3661\ \mathrm{s}before it is used, which is why the three small boxes behave exactly like one number.

If all you want is to restate one speed in another unit, without a distance or a time to go with it, the speed converter does that on its own.

Two comparisons worked through

A 100 km drive at 60 km/h or at 80 km/h

Same road, two average speeds. The first version of the trip takes 1 hr 40 min, and the faster one takes 1 hr 15 min:

t=10060t = \frac{100}{60}=1.667 h= 1.667\ \mathrm{h}t2=10080=1.25 h\quad t_2 = \frac{100}{80} = 1.25\ \mathrm{h}

The time difference comes out as -25 min: negative because the second speed reaches the destination first. Twenty-five minutes is the whole value of the faster average on a trip this length, which is a useful reality check whenever a route promises a big saving from a small speed increase — the saving grows with distance, not with the number on the speed limit sign.

50 nautical miles at 20 knots or at 20 mph

Two boats, the same number on the dial, two different units. Fifty nautical miles at 20 knots takes 2 hr 30 min. At 20 mph the same crossing takes 2 hr 52 min 37 s, so the run in knots arrives about 22 minutes sooner.

t=50 nmi20 knt = \frac{50\ \mathrm{nmi}}{20\ \mathrm{kn}}=2.5 h= 2.5\ \mathrm{h}

Nothing is wrong with the arithmetic; it is the unit that changed. A knot is one nautical mile per hour, and a nautical mile is 1,852 m, so 20 knots is about 37 km/h while 20 mph is about 32 km/h. This is the single most common way a speed comparison goes wrong in practice: the numbers look alike, the units are not.

What the numbers cannot know

Every answer on this page is arithmetic on three numbers. That is enough to plan a trip and to make two speeds comparable, and it is not enough to promise an arrival. These are the assumptions the numbers quietly carry.

An average, not a speedometer reading

A single number stands in for the whole journey, so a trip that spent twenty minutes in a jam and two hours on a motorway is treated as if it had held one steady speed. For a realistic arrival time, treat the speed box as an honest average rather than as the speed you will sit at on the fastest stretch.

Distance travelled, not distance between two points

A winding road is longer than the straight line on a map. Feed in the distance you will actually cover — the route distance or the odometer reading — or the time will come out short and the speed will come out high.

Stops are not part of the model

Breaks, fuel stops and loading time are not in any of the three boxes, so they have to be added to the answer yourself. If you are planning a drive with stops and a fuel bill attached, the drive time calculator takes the stops in as an input.

The seconds box shows a rounded value

When a split does not land exactly, the smallest box rounds what it displays, because a third of a second is not useful to read. The page keeps the full number underneath, so converting that rounded display back into a speed can leave you a whisker away from the exact answer.

Every box converts only its own unit

A distance in miles with a speed in km/h is converted correctly, so the answer is right — but if the number was really kilometres typed into a miles box, the page has no way of knowing. Check the unit label next to each box against the source of the number.

In short: the result is exact for the three numbers you entered and silent about everything you did not. Use it to plan and to compare, and let the road correct the rest.

Frequently asked questions

Q

Why is the time difference negative?

Because it is the second time minus the first, in that order:

Δt=t2−t\Delta t = t_2 - t
  • Negative: the comparison speed reaches the destination before the first one does, which is what a faster second speed should do.
  • Positive: the first speed arrives first, so the second one is the slower of the two.

Swap the two speeds around and the sign flips with them, with no other change to the answer.

Q

Is a pace, like six minutes per kilometre, the same as a speed?

It carries the same information upside down. A pace is time per distance, a speed is distance per time, so one converts into the other by taking the reciprocal — six minutes per kilometre is one kilometre per six minutes, which is ten kilometres per hour:

vˉ=60pace in minutes per km\bar{v} = \frac{60}{\text{pace in minutes per km}}==606=10 km/h\frac{60}{6} = 10\ \mathrm{km/h}

Runners usually quote pace, so convert before you compare a pace with a speed. A faster runner has a smaller number, which is the opposite of how speed behaves.

Q

My journey took longer than the time this page gives. Why?

Almost always because the speed used as an input was the speed limit or the cruising speed rather than the average over the whole trip. Lights, junctions, traffic and stops all pull the average down, and the difference is rarely small on a short urban trip.

  • Enter the average you actually achieved: total distance divided by total clock time, including every pause.
  • Use the route distance rather than the straight-line distance, so the two inputs describe the same journey.

Checked against your own logbook, the page will agree with the trip you actually drove.

Q

Can I enter a distance in one unit and a speed in another?

Yes. Each box converts its own unit before the arithmetic runs, so pairs that look mismatched are handled correctly:

  • miles with miles per hour
  • nautical miles with knots
  • metres with feet per second

The only thing that breaks the answer is choosing a unit that does not describe the number you typed, not the pairing itself.

Speed Calculator - Average Speed, Distance and Time