Quick answer
Average speed = distance ÷ time. Riding 40 km in 1 hour 30 minutes is 26.67 km/h, or 16.57 mph.
Enter the distance, its unit and the time. The calculator returns speed in km/h and mph. Use this cycling speed calculator to check your own figures.
Related tools: Speed Converter: mph, km/h, knots, m/s and ft/s. Playback Speed Calculator: New duration and time saved at a faster playback speed.
How to use the Cycling Speed Calculator
- Enter distance (above 0).
- Choose distance unit: Kilometers and Miles.
- Optionally, enter hours (0 or more).
- Optionally, enter minutes (0 or more).
- Optionally, enter seconds (0 or more).
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Distance | A number | > 0 |
| Distance unit | Choose one: Kilometers; Miles | Starts at Kilometers |
| Hours (optional) | A number | ≥ 0 |
| Minutes (optional) | A number | ≥ 0 |
| Seconds (optional) | A number | ≥ 0 |
Formula and method
Formula
speed = distance ÷ time
IEEE-754 double precision; shown to the decimals indicated.
Average speed in km/h and mph. Informational estimate, not medical advice. Talk to a qualified health professional about your own situation.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Distance = 40; Distance unit = Kilometers; Hours = 1; Minutes = 30; Seconds = 0.
| Result | Value |
|---|---|
| Average speed (km/h) | 26.67 |
| Speed (mph) | 16.57 |
Example 2
Inputs: Distance = 25; Distance unit = Miles; Hours = 1; Minutes = 15; Seconds = 0.
| Result | Value |
|---|---|
| Average speed (mph) | 20 |
| Speed (km/h) | 32.19 |
Example 3
Inputs: Distance = 100; Distance unit = Kilometers; Hours = 3; Minutes = 20; Seconds = 0.
| Result | Value |
|---|---|
| Average speed (km/h) | 30 |
| Speed (mph) | 18.64 |
The first line is the headline result (average speed (km/h)). Below it the cycling Speed Calculator lists speed (mph), which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.
Reading the result
26.67 km/h is a brisk pace for a recreational rider; club riders often average 25 to 30 km/h on flat roads. Hills, wind and stops lower the average, and moving time differs from elapsed time.
Planning
To ride 100 km at 25 km/h takes 4 hours. Enter time in any combination of hours, minutes and seconds. Use moving time for a true average.
How the result changes with distance
Holding every other input at the first worked example, this table changes only distance. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Distance | Average speed (km/h) | Speed (mph) |
|---|---|---|
| 20 | 13.33 | 8.28 |
| 40 | 26.67 | 16.57 |
| 80 | 53.33 | 33.14 |
| 160 | 106.67 | 66.28 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Distance: entering "0" shows "Distance must be greater than 0." beside that field and no result.
- Minutes: entering "0" shows "Enter a time greater than zero." beside that field and no result.
Choosing between the Cycling Speed Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Speed Converter](/converters/speed-converter/) | value, from and to | Mile per hour (mph) → Kilometre per hour (km/h) |
| [Playback Speed Calculator](/technology/playback-speed/) | hours, minutes and playback speed | New duration |
| [Gear Speed Calculator](/engineering/gear-speed-calculator/) | driver gear teeth, driven gear teeth and input speed | Output speed |
| [Speed Distance Time Calculator](/science/speed-distance-time-calculator/) | Distance | |
| [Pace Calculator](/fitness/pace-calculator/) | distance and distance unit | Pace per km |
Background: fitness estimates
Fitness formulas are estimates whose accuracy depends on the input. One-rep-max formulas such as Epley and Brzycki give different answers, and predictions from hard sets of a few repetitions are better than from sets of ten or more. Age-based maximum heart rate formulas can be off by 10 to 30 beats a minute for an individual; Tanaka's 208 − 0.7 × age is generally preferred to 220 − age but is still an estimate.
Pace models built from a race result assume a maximal effort and work best for distances from about 5 km to the marathon. Use the output as a guide, not a prescription.
Assumptions and limitations
- Time can be entered in any combination of hours, minutes and seconds
- Not a diagnosis
Estimates from formulas describe averages. They are not a training or medical prescription; check with a qualified professional before changing your exercise or diet.
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for distance and minutes to confirm this.
Frequently asked questions
How do I convert km/h to mph?
Multiply km/h by 0.6214: 26.67 km/h is 16.57 mph.
What is a good cycling speed?
15 to 20 km/h for beginners.
Does drafting matter?
Yes, it reduces effort.
What does the Cycling Speed Calculator calculate?
Average speed from a distance and a time. It returns Average speed (km/h) and Speed (mph).
What formula does the Cycling Speed Calculator use?
speed = distance ÷ time. Average speed in km/h and mph.
What do I need to enter in the cycling Speed Calculator?
You enter Distance and Distance unit. Optional: Hours, Minutes and Seconds.
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. Time can be entered in any combination of hours, minutes and seconds.
What are the limits of this calculator?
Time can be entered in any combination of hours, minutes and seconds. Not a diagnosis.
What does the “Distance unit” option change?
It sets how the cycling Speed is worked out. The choices are Kilometers and Miles.
What is an example of a cycling Speed result?
With distance 40, distance unit Kilometers, hours 1, minutes 30 and seconds 0, the average speed (km/h) is 26.67.
Where does the method come from?
The method follows: International mile: 1,609.344 m exactly (1959 International Yard and Pound Agreement).
Can I rely on this calculator for a decision?
Estimates from formulas describe averages. They are not a training or medical prescription; check with a qualified professional before changing your exercise or diet. For this calculator in particular: Time can be entered in any combination of hours, minutes and seconds.
Related calculators
- Speed Converter — mph, km/h, knots, m/s and ft/s.
- Playback Speed Calculator — New duration and time saved at a faster playback speed.
- Speed Distance Time Calculator — Solve distance, speed or time.
- Pace Calculator — Pace and speed from a distance and a time.
Sources
- International mile: 1,609.344 m exactly (1959 International Yard and Pound Agreement)
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.