Inputs

Results update as you type. The link in the address bar keeps the inputs so you can share it.

What this means

  • You ran 5:30 per km, which is 8:51 per mile.
  • Held for a full marathon (42.195 km), that pace finishes in 3:52:04. Most runners slow over longer distances.

What if

One minute faster overall Same distance. Pace becomes 5:18 per km (was 5:30 per km).
Same time over 10 km Compare to double the distance at this time. Pace would be 2:45 per km.

About this calculator

What this calculator does

It divides total time by distance to get pace, and distance by time to get speed. It shows both metric and imperial so you can compare race results.

How it is calculated

pace = total seconds / distance

speed = distance / hours

1 mile = 1.609344 km, marathon = 42.195 km

How to read the result

Pace is minutes and seconds per unit of distance. Lower pace is faster. Speed is the same information flipped around.

Sources and method

Standard arithmetic with no outside data. The formula is shown under How it is calculated, and unit tests check worked examples, including edge cases. A mile is exactly 1,609.344 meters.

Questions

What is the difference between pace and speed?

Pace is time per distance, such as 8:00 per mile. Speed is distance per time, such as 7.5 mph.

How long is a marathon?

42.195 kilometers, or about 26.2 miles.

Can I use this for walking or cycling?

Yes. The math is the same for any steady activity.

Why is the marathon time a guess?

It assumes you hold the same pace the whole way, which is hard over longer distances.