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 = round(distance_miles / total_hours * 100) / 100

Average Speed

speed_kph = round(distance_miles * 1.60934 / total_hours * 100) / 100

Pace

min_per_mile = round(total_hours * 60 / distance_miles * 100) / 100

Distance

distance_km = round(distance_miles * 1.60934 * 100) / 100

Variables

VariableDescriptionDefault
distance_milesDistance(miles)25
hoursHours(hr)1
minutesMinutes(min)30
total_hoursDerived value= hours + minutes / 60calculated

How It Works

How Cycling Speed Is Calculated

Formula

Speed = Distance / Time

Context

Average cycling speeds vary widely: casual riders average 10-14 mph, fitness cyclists 15-18 mph, competitive cyclists 18-25 mph, and professionals 25-30+ mph. Wind, terrain, and bike type significantly affect speed.

Worked Example

You cycled 25 miles in 1 hour 30 minutes.

distance_miles = 25hours = 1minutes = 30
  1. 01Total time = 1 + 30/60 = 1.5 hours
  2. 02Speed = 25 / 1.5 = 16.67 mph
  3. 03Speed in km/h = 16.67 * 1.609 = 26.82 km/h
  4. 04Pace = 90 / 25 = 3.60 min/mile

Ready to run the numbers?

Open Cycling Speed Calculator