Cycling Speed Calculator Formula

Understand the math behind the cycling speed calculator. Each variable explained with a worked example.

Formulas Used

Average Speed

speed_mph = distance_miles / time_hours

Average Speed (km/h)

speed_kph = distance_miles / time_hours * 1.60934

Time per Mile

pace_min_mile = time_minutes / distance_miles

Variables

VariableDescriptionDefault
distance_milesDistance(miles)20
time_minutesTotal Time(minutes)60
time_hoursDerived value= time_minutes / 60calculated

How It Works

Cycling Speed Formula

Speed = Distance / Time

  • Speed in mph = Distance (miles) / Time (hours)
  • To convert mph to km/h, multiply by 1.609
  • Worked Example

    A 20-mile ride in 60 minutes.

    distance_miles = 20time_minutes = 60
    1. 01Time in hours = 60 / 60 = 1 hour
    2. 02Speed = 20 / 1 = 20.0 mph
    3. 03Speed in km/h = 20 x 1.609 = 32.2 km/h

    Ready to run the numbers?

    Open Cycling Speed Calculator