Run Distance Calculator
Plenty of runs end with two numbers known and one missing: you know how long you ran and how fast, but not how far. Treadmill sessions, track intervals and time-based workouts all leave that gap, and a dead watch battery should not cost you the entry in your training log. This calculator solves the pace, time and distance equation in all four directions, in kilometers or miles.
Your run time
Quick fill: race distance (km)
Your run time
Quick fill: race distance (km)
Your run time
Training aid only, not a medical device. Every mode assumes one steady average pace; hills, heat, altitude and fatigue are not modeled.
Quick Answer
Distance equals total time in minutes divided by pace in minutes per unit. A 45 minute 30 second run at 6.00 min/km covers 7.58 km at an average speed of 10.00 km/h, which is exactly what the pre-filled Distance tab returns. The other three tabs solve for pace (10 km in 50 minutes is 5:00 per km), finish time (10 km at 5.50 min/km takes 0h 55m 0s) and speed (7.58 km in 45:30 is 10.00 km/h).
- One equation, four tabs: distance, pace, time and speed are the same relationship rearranged.
- Pace goes in as decimal minutes (6.00), and pace results come back in minutes:seconds (5:41), the format runners actually read.
- Race distances are one tap away in the Pace and Time tabs: 5K, 10K, half marathon and marathon.
- A blank or zero pace on the Distance tab returns Invalid input by design; division by a zero pace has no answer.
- Quick Answer
- How to use the run distance calculator
- The pace, time and distance formula
- Standard race distances for the quick-fill buttons
- Worked example: the treadmill run with no distance
- What other run distance calculators miss
- Reading your result: pace zones in plain terms
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the run distance calculator
Pick the tab named after the number you are missing, enter the two numbers you have, and click Calculate. Results stay hidden until you ask for them, and every tab carries its own Copy and Share buttons for a training log or a coach.
Distance tab. Enter your run time as hours, minutes and seconds, plus your average pace in decimal minutes per kilometer or mile. The tab is pre-filled with the worked example below: 0 hours, 45 minutes, 30 seconds at 6.00.
Pace tab. Enter a distance and a finishing time. Use the quick-fill buttons if the distance was a standard race; they load the exact kilometer figures and set the unit selector to kilometers for you.
Time tab. Enter a distance and the pace you plan to hold. The answer comes back as hours, minutes and seconds, with the total in decimal minutes underneath.
Speed tab. Enter a distance and a time to get average speed in km/h or mph, with the equivalent pace underneath. This is the tab to use when a training plan is written in km/h but your watch reports min/km. Runners building toward a goal pace often pair this with an aerobic threshold calculator to check the effort sits in the right zone.
The pace, time and distance formula
Distance = Time ÷ Pace, Pace = Time ÷ Distance, and Time = Distance × Pace. Time is first converted to total minutes: (Hours × 60) + Minutes + (Seconds ÷ 60).
Pace and speed are inverses: Speed = 60 ÷ Pace when pace is in minutes per unit. A 6:00 min/km pace is exactly 10 km/h, and a 5:00 pace is 12 km/h. Unit conversion uses the exact mile from the NIST SI units guide: 1 mile = 1.609344 km, so the Pace tab multiplies a min/km pace by that factor to show the min/mi equivalent.
Standard race distances for the quick-fill buttons
The four quick-fill distances follow the standard road-race distances in the World Athletics Book of Rules. The half marathon is exactly half the marathon, which is why both numbers end in halves of 0.0975 and 0.195.
| Race | Kilometers | Miles |
|---|---|---|
| 5K | 5 | 3.1069 |
| 10K | 10 | 6.2137 |
| Half marathon | 21.0975 | 13.1094 |
| Marathon | 42.195 | 26.2188 |
Worked example: the treadmill run with no distance
The worked example is the pre-filled Distance tab, so you can reproduce every number in one click. You finish a treadmill run after 45 minutes and 30 seconds, and your watch shows an average pace of 6.00 min/km.
Convert the time: 45 + (30 ÷ 60) = 45.5 minutes. Divide by pace: 45.5 ÷ 6.00 = 7.5833 km. The calculator displays 7.58 km and reports an average speed of 10.00 km/h. Cross-checks on the other tabs: the Pace tab turns 10 km in 50 minutes into 5:00 min/km (also shown as 8:03 min/mi), the Time tab turns 10 km at 5.50 into 0h 55m 0s, and the Speed tab turns the same 7.58 km in 45:30 back into 10.00 km/h with a 6:00 min/km pace equivalent.
What other run distance calculators miss
Most rival tools solve one direction and stop. CalculatorSoup covers distance, pace and time but buries speed inside the same form; Calculator.net adds splits and race-time tables, yet still treats a decimal pace as the finished answer. FitnessVolt and the newer pace hubs add split strategies and Riegel predictions, which answer a different question: how fast you might race, not how far you actually ran.
Three gaps show up again and again. First, pace display: runners read 5:41, not 5.69, and this tool formats pace results in minutes:seconds with the decimal kept alongside. Second, honest dead ends: a zero or blank pace returns Invalid input here instead of a silent zero or an infinite result. Third, the treadmill case itself: when the belt display and your watch disagree, a time-and-pace tool is the arbiter, and most rivals never mention it. Body composition matters to training load too, which is why distance work pairs naturally with a lean mass calculator when mileage climbs.
Reading your result: pace zones in plain terms
A distance number is only useful next to the effort it took. As a rough guide for trained runners, paces slower than 7:00 per km are recovery territory, 5:30 to 6:30 is steady aerobic work, and anything under 4:30 per km is race-pace effort for most people. Heart rate tells the same story from the other side, and a max heart rate calculator helps you sanity-check whether a fast pace was really as easy as it felt.
Two honesty notes about edge cases, both preserved from the live tool and disclosed rather than hidden. On the Time tab, a distance of zero is accepted and returns 0h 0m 0s. On the Speed tab, a distance of zero returns 0.00 km/h with a blank pace equivalent, because the pace of a zero-speed effort is infinite and the formatter returns an empty string. Neither case affects any real run.
Frequently asked questions
Pace is time per unit of distance (minutes per kilometer or mile); speed is distance per unit of time (km/h or mph). They describe the same effort from opposite directions. This calculator shows both: the Distance tab reports average speed alongside distance, and the Speed tab converts any run to km/h or mph with its pace equivalent.
Multiply your min/km pace by 1.60934. A 5:00 min/km pace becomes about 8:03 min/mi. Going the other way, multiply min/mi by 0.62137 to get min/km. The Pace tab shows both conversions automatically with every calculation.
Divide 120 minutes by 21.0975 km, which gives 5.69 min/km, or 5:41 per kilometer (about 9:09 per mile). Because 5.69 is a rounded figure, entering it in the Time tab predicts 2h 0m 3s; enter 5.68 and the prediction drops to 1h 59m 50s. Aim a few seconds per kilometer faster than the bare number to build a buffer for crowds and water stops.
Treadmills estimate distance from belt speed, which drifts as the belt wears and is rarely calibrated. If your watch or foot pod reports average pace from real motion, the pace-and-time calculation here is usually more honest than the treadmill display. The two can easily differ by 2 to 5 percent on an uncalibrated machine.
Yes. The math is identical for any steady effort: distance equals time divided by pace. Walkers typically enter paces of 10 to 15 min/km, cyclists often prefer the Speed tab since bike computers report km/h. Just keep the pace unit consistent with the distance unit you want.
Exactly as accurate as your two inputs. The formula itself is exact; any error comes from an estimated pace or a rounded time. For best results, use your average pace across the whole run rather than the pace from your fastest kilometer, and include seconds in the time for short efforts where rounding matters.
The Distance tab shows Invalid input when the pace box is blank, zero or negative, because dividing a time by a zero pace has no meaning. Enter a pace above zero, in the same unit system as the Units selector, and the distance appears. A zero time is accepted and simply returns a distance of 0.00.
No. Every mode assumes a steady average pace from start to finish. Hills, heat, wind and late-run fatigue all move your real pace around that average, so treat the outputs as planning numbers for flat, even efforts rather than guarantees for a hilly race day.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- World Athletics. Book of Rules. The road-race rules behind the standard 5K, 10K, half marathon (21.0975 km) and marathon (42.195 km) distances used by the quick-fill buttons. Accessed October 24, 2026.
- National Institute of Standards and Technology (NIST). SI Units. Source for the exact mile definition (1 mile = 1.609344 km) used in every pace conversion in this calculator. Accessed October 24, 2026.
- Riegel, P. S. "Athletic Records and Human Endurance." American Scientist, 1977. The classic endurance-modeling paper; useful background on why simple pace math works for even efforts and where it stops predicting well. Accessed October 24, 2026.
- American College of Sports Medicine. ACSM Guidelines for Exercise Testing and Prescription. Standard reference for steady-state aerobic effort, the condition the pace, time and distance relationship assumes. Accessed October 24, 2026.
- World Athletics. Marathon World Records, Men. Record list confirming the official marathon distance context for elite pace examples. Accessed October 24, 2026.
- USA Track and Field. Certified Course Search. How race courses are measured and certified in the United States, and why a certified 10K is exactly the distance the Pace tab expects. Accessed October 24, 2026.
