Cycling Speed Calculator — mph
Calculate average cycling speed in mph and km/h from miles and ride time. Get minutes per mile and an optional target-speed finish time.
Formula and sources updated · Data sources · 1View algorithm, constants and default inputs (JSON)
About this calculator
Enter route distance in miles and elapsed ride time in whole hours and minutes. The average includes any stops counted in that time. Target speed is optional: leave it blank or enter 0 to omit the finish-time estimate. This is a distance-and-time calculation; terrain, wind, power and calories are not modeled.
Worked example
calculated with the default values below
Route distance 25 mi · Time — hours 1 h · Time — minutes 30 min · Target speed (optional) 0 mph Average speed 16.67 mph · Average speed 26.82 km/h · Time per mile (m:ss) 3:36 · Estimated time at target speed (h:mm) —
Method and assumptions
Average mph is route miles divided by elapsed hours: v = 60D / (60H + M). Multiply mph by 1.609344 for km/h. Time per mile is 60/v minutes and is displayed as m:ss, rounded to the nearest second. At a positive target speed, finish time is distance divided by that speed; h:mm is rounded to the nearest minute, so a trip under 30 seconds can display 0:00. An estimate outside the safe numeric range is shown as — while the average-speed result remains available. Enter elapsed time including stops for an overall ride average, or moving time for a moving average; the tool does not detect stops. Speed decimals are rounded; very small nonzero speeds use scientific notation.
Data sources
Disclaimer
These calculators give general mathematical results. They suit study, planning and estimation — verify anything that feeds a graded submission, a published figure or a financial commitment.
Implementation source
This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.
Formula and variables
v = 60D ÷ (60H + M); t = 60D ÷ v
- D
- Route distance (mi)
- H
- Ride time — hours
- M
- Ride time — minutes
- v
- Average speed (mph)
- t
- Time to cover D (min)
For target-speed time, use the optional target mph in place of v. Convert speed with km/h = mph × 1.609344. Pace is m:ss per mile; estimated time is h:mm rounded to the nearest minute. Stops are included only when counted in the entered ride time. No calorie estimate or performance-speed category is calculated.
Frequently asked questions
How are average speed, pace and the finish time calculated?
For a 25-mile ride lasting 1 hour 30 minutes, average speed is 25 ÷ 1.5 = about 16.67 mph, or 26.82 km/h. Pace is 3:36, meaning 3 minutes 36 seconds per mile. At a target speed of 20 mph, estimated finish time is 1:15, meaning 1 hour 15 minutes, rounded to the nearest minute. Blank or zero target speed omits the estimate; an unrepresentable finish time is also shown as —.