How to Calculate Cycling Speed, Time, and Distance (With Examples)
Key takeaways
- Speed = distance ÷ time; time = distance ÷ speed; distance = speed × time. Convert minutes to decimal hours first.
- Moving average excludes stops; elapsed average includes them. Plan with elapsed time.
- You cannot average speeds across segments by simple averaging; use total distance ÷ total time.
- Wind and hills cost more time than they give back, so out-and-back and hilly routes average slower.
Every cycling plan starts with three numbers: how far, how long, and how fast. If you know any two, the third is simple arithmetic. The catch is in the details: converting minutes properly, choosing between moving and elapsed time, and avoiding the averaging mistake that trips up nearly everyone at least once. This guide covers all of it, with worked examples you can check in our speed, time, and distance calculator.
The three formulas
speed = distance ÷ time time = distance ÷ speed distance = speed × time
Time must be in hours for mph or km/h. Convert minutes by dividing by 60: 45 minutes is 0.75 hours, 1 hour 20 minutes is 1.333 hours, and 2 hours 10 minutes is 2.167 hours.
Worked examples
Solve for speed
You rode 28 miles in 1 hour 50 minutes. Time = 1 + 50/60 = 1.833 hours. Speed = 28 ÷ 1.833 = 15.3 mph.
Solve for time
Your commute is 9.5 km and you average 18 km/h door to door. Time = 9.5 ÷ 18 = 0.528 hours. Multiply by 60: 31.7 minutes, so leave 35 minutes.
Solve for distance
You have 2 hours 30 minutes before dinner and hold about 16 mph. Distance = 16 × 2.5 = 40 miles. Make it a 36–38 mile loop to allow for stops and a margin.
Unit conversions cyclists need
| Convert | Multiply by | Example |
|---|---|---|
| mph → km/h | 1.609 | 15 mph = 24.1 km/h |
| km/h → mph | 0.6214 | 30 km/h = 18.6 mph |
| miles → km | 1.609 | 100 miles = 160.9 km |
| mph → meters per second | 0.447 | 20 mph = 8.94 m/s |
| Speed → pace (min per mile or km) | 60 ÷ speed | 15 mph = 4:00 per mile |
Moving speed versus elapsed speed
Most bike computers and apps show two averages. Moving average pauses the clock whenever you stop. Elapsed average (sometimes called total or overall average) runs the clock from start to finish, including traffic lights, café stops, and mechanicals.
Moving average describes your fitness. Elapsed average describes your day. A rider with a 16 mph moving average on a 40-mile ride who stops for 35 minutes total has an elapsed average of 40 ÷ (2.5 + 0.583) = 13.0 mph. If you are planning when to leave or when you will be home, use elapsed time. For commutes in town, it is common for door-to-door speed to be only two-thirds of moving speed.
The averaging mistake
Suppose you ride 10 miles out at 20 mph with a tailwind and 10 miles back at 10 mph into the wind. Your average is not 15 mph. The outbound leg took 0.5 hours; the return took 1.0 hour. Total: 20 miles in 1.5 hours = 13.3 mph.
The rule: always divide total distance by total time. Averaging the segment speeds overweights the fast segment, because you spent less time there. This is the same reason a hilly loop at a given effort averages slower than a flat one: you spend minutes climbing at 8 mph and only seconds descending at 35.
Why the same effort gives different speeds
Speed is a result, not an effort level. These factors change speed at constant effort:
- Wind: air drag rises with the square of air speed, so a headwind costs disproportionately and a tailwind does not repay it on an out-and-back.
- Gradient: on a 6% climb, most of your power goes to lifting your weight, not to moving forward quickly.
- Position and clothing: moving from upright to the drops, or swapping a flapping jacket for a fitted one, can be worth a mile per hour or more at the same power.
- Tires and surface: chip-seal, gravel, and underinflated tires add rolling resistance.
- Drafting: riding behind others saves substantial energy, which is why group-ride averages are much higher than solo averages.
- Temperature and altitude: warm, high-altitude air is thinner and slightly faster.
To see these effects in numbers, use the power and speed calculator, which models each one.
Planning rides with the math
Event planning
For a 100-mile event with a 15 mph moving average and four 10-minute rest stops, moving time is 6 h 40 min, stops add 40 minutes, so expect about 7 h 20 min. If the course closes at 8 hours, you have a 40-minute margin for headwinds and mechanicals. Our century training plan builds the fitness for that day.
Commute planning
Measure your route once with a GPS app, ride it a few times, and use the median door-to-door time rather than your best. Add five minutes for locking up and changing if you need to. The bike commuting guide covers the rest.
Group rides
Club rides are usually advertised by moving average. A "16–18 mph" group ride on rolling roads means sustained speeds of 20+ on flats in the draft and slower climbs. If your solo flat-road average is around 15–16 mph, you can usually hang on in such a group once you are comfortable drafting; see group riding etiquette.
How accurate is your speed reading?
GPS-based speed is usually accurate over a full ride, but it can wander under tree cover, between tall buildings, and on twisty roads, often under-reading distance on switchbacks. Wheel-based speed sensors are more precise moment to moment if the wheel circumference is set correctly; an error of 2% in circumference becomes a 2% error in every speed and distance figure. To calibrate, mark the tire at the valve, roll the bike one full revolution in a straight line with your weight on it, and measure the distance in millimeters.
Frequently asked questions
How do I calculate average speed with multiple stops?
For moving average, divide distance by time spent actually rolling. For elapsed average, divide by total time from start to finish. Report whichever matches the question you are answering.
How long does it take to bike 10 miles?
At 10 mph, 60 minutes; at 12 mph, 50 minutes; at 15 mph, 40 minutes; at 18 mph, about 33 minutes. Add time for stops and traffic lights in town.
How far can I ride in an hour?
Most recreational riders cover 12–16 miles (19–26 km) in an hour of moving time on flat roads. See average cycling speed by level and age for benchmarks.
Sources
- National Institute of Standards and Technology (NIST). Guide for the Use of the International System of Units (SI), Special Publication 811, for unit conversion factors.
- Wilson DG, Schmidt T. Bicycling Science, 4th ed. MIT Press; 2020.