Pace math
- Pace = time ÷ distance (min per km or mile) — the number runners actually pace by
- Speed = distance ÷ time (km/h) — what bike computers show
- The calculator fills the missing third value: enter pace + distance for finish time, pace + time for distance, or distance + time for pace
Reference paces
- 10K in 55 min ≈ 5:30/km (8:51/mi)
- Marathon (42.2 km) in 4 h ≈ 5:41/km
- 5K in 25 min ≈ 5:00/km
- Walking briskly ≈ 11–12 min/km (≈ 5 km/h)
How the estimate is derived
parseTime() reads h:mm:ss into seconds and parsePace() reads the separate minutes and seconds fields, so a half-typed pace does not throw. calc() treats distance, duration and pace as a triangle: supply any two and the third is solved. fmtPace() prints pace as m:ss per kilometre or mile, fmtDur() prints duration back as a clock, and setUnit() flips the distance unit and recomputes from the underlying values rather than converting the numbers you already see — which is why switching units does not accumulate rounding error.
When not to rely on it
Pace is assumed constant. Hills, heart-rate drift, walk breaks and negative splits are invisible, so a finish time computed here is an idealised one. The mile conversion uses the fixed 1.609344 factor. Inputs longer than 24 hours, or a pace faster than one minute per kilometre, produce arithmetic that is correct and practically meaningless. Split times and lap pacing are not modelled.
Privacy: health data never leaves your device
Distance, time and pace are parsed and solved in this tab. Nothing is saved, so there is no history to clear and no run to leak.
Frequently asked questions
Can it pace a sub-3-hour marathon?
Yes — enter 42.195 km and 3:00:00 and it returns the required pace per kilometre, plus the equivalent per mile. That is the average pace, not a split plan.
Why does my watch disagree?
Watches measure moving time and GPS distance, which differ from the nominal race distance and include stops. This tool computes from the numbers you type.
Does it handle intervals?
No. It solves for average pace only; interval sessions need a workout builder, not a pace triangle.