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

Frequently Asked Questions

What is a good average cycling speed?

For recreational road cycling, 14-18 mph is solid. Competitive riders average 18-25 mph, and professionals sustain 25+ mph.

Why is my average speed lower than expected?

Stops at traffic lights, headwinds, hills, and fatigue all lower your average. Moving time vs. elapsed time can differ significantly.

Does bike type affect average speed?

Yes. Road bikes are 2-5 mph faster than hybrids, which are 2-4 mph faster than mountain bikes on pavement, due to weight and rolling resistance.

Ready to run the numbers?

Open Cycling Speed Calculator