Method and source check
Last checked:
Automated source and implementation review, including worked examples and documented numerical limits. This review does not provide professional advice or specialist approval.
Method
From two of distance, elapsed time, and pace per kilometer, derive the third plus average speed and pace per mile.
pace = time / distance
time = pace Γ distance
distance = time / pace
Variables and units
- distance
- km, miles, or meters
- time
- elapsed hours/minutes/seconds
- pace
- minutes/seconds per km
Worked example
5km in 25min is 5:00 per km and 12km/h.
Limitations
Pace and time strings round total seconds once, then normalize seconds to 0β59. Speed and calculated distance use two decimal places.
- Results are averages from entered distance and time. They do not prescribe training intensity or predict segment paces.
- Unsupported derived numerical ranges are rejected with a localized error on a visible form field; the calculations use floating-point arithmetic.
- 5km/25min β 5:00/km
- 2km/11:59 β 6:00/km after rounding
- 10km at 5:00/km β 50:00