The Power to Speed calculator answers one question: at a steady power, on a given road and in given air, how fast does a bike go? It adds up the three forces that hold a rider back, which are air drag, rolling resistance and gravity. Then it finds the speed at which the rider's power exactly pays for all three.
Key points
- The tool is public, at the address /tools/power-to-speed. It needs no account and no data of yours.
- Nine inputs: power, rider weight, bike weight, gradient, CdA, rolling resistance, headwind, altitude and temperature.
- The model is the power balance of Martin and colleagues (1998). The result is a steady speed, with no acceleration and no braking.
- Drivetrain efficiency is fixed at 97.6 percent. Out of 250 W, 6 W are shown as drivetrain loss.
- Air density is computed from altitude and temperature with dry air. Humidity and the weather of the day are not inputs.
- The results show speed in km/h and mph, the air density, the power breakdown in watts and a doughnut chart of that breakdown.
What does the tool ask for?
| Input | Starting value | Range in the box | Note on the page |
|---|---|---|---|
| Power | Your stored FTP, else your profile FTP, else 250 W | 10 to 2,500 W | Rider power at the crank |
| Rider weight | Your saved body weight, else the app's default | 40 to 180 kg | |
| Bike weight | 8 kg | 4 to 20 kg | |
| Gradient | 0 % | minus 20 to 30 % | Positive is uphill |
| CdA | 0.32 m² | 0.15 to 0.50 | 0.20 TT tuck, 0.32 hoods, 0.40 upright |
| Rolling resistance (Crr) | 0.005 | 0.002 to 0.015 | 0.003 road clincher, 0.005 training tyre |
| Headwind | 0 m/s | minus 15 to 20 | Positive is headwind, negative is tailwind |
| Altitude | 0 m | 0 to 5,000 m | |
| Temperature | 20 °C | minus 20 to 50 °C |
The starting values are the app's own reasonable defaults. When you are signed in, the first two boxes are prefilled from your saved FTP and body weight. Without a saved FTP the power box starts at 250 W. The starting power is a prefill, not a statement about your fitness.
The tool adds rider weight and bike weight into one mass. The hints for CdA and Crr are reference points in the tool, not measurements of one rider.
What is the equation?
At a steady speed v, the power the rider produces covers three terms, then a loss in the drivetrain.
- Air drag. Half of CdA times air density times the apparent air speed squared, times the ground speed. The apparent air speed is the ground speed plus the headwind. With a tailwind stronger than the ground speed, the sign flips and the wind pushes.
- Rolling resistance. Crr times total mass times gravity times the cosine of the slope angle, times the ground speed.
- Gravity. Total mass times gravity times the sine of the slope angle, times the ground speed. Downhill, this term is negative and helps the rider.
The slope angle comes from the gradient as the arctangent of the gradient divided by 100. Gravity is 9.80665 m/s².
The rider's power at the crank is the sum of the three terms divided by 0.976. The code names 0.976 as the drivetrain efficiency measured by Martin and colleagues.
How is the speed found?
The code does not rearrange the equation, because the speed sits inside a cubic. It starts from a guess based on rolling resistance and gravity, then runs Newton's method for up to 30 steps and stops when a step is under 0.001 m/s.
It then checks the answer by putting the speed back into the equation. If the power that comes out is off the target by more than 0.5 W or 0.5 percent of the mechanical target, whichever is larger, the code throws that answer away. It then searches between 0.02 and 60 m/s by halving the interval, up to 200 times. If no speed in that range gives the power, the tool returns nothing.
One worked case. Power 250 W, rider and bike 83 kg together, flat road, CdA 0.32, Crr 0.005, no wind, sea level, 20 °C. Air density is 1.204 kg/m³. The tool gives 36.6 km/h. At an 8 percent gradient, the same inputs give 12.3 km/h. These are the same numbers the tool's own questions below the calculator give.
How is air density worked out?
The tool uses the standard atmosphere. Pressure at altitude h is 101,325 Pa times one minus 0.0065 times h divided by 288.15, raised to the power 5.2559. Density is pressure divided by 287.058 times the temperature in kelvin. The altitude used is held between minus 500 and 8,848 m, though the box on this page stops at 5,000.
The page prints the density in kg/m³ to three decimals. At sea level and 20 °C it is 1.204. Real pressure moves a few percent around the standard value, and the tool has no input for it. A code comment says the same about the standard pressure. Humid-air density exists elsewhere in the app's code, but this page does not use it.
What does the power breakdown show?
Once the speed is solved, the code works out each term at that speed and rounds each to whole watts.
| Row | What it is |
|---|---|
| Aerodynamic drag | Power spent against the air |
| Rolling resistance | Power spent against the tyres and road |
| Gravity | Power spent lifting rider and bike, or returned downhill |
| Drivetrain loss | Rider power minus the three mechanical terms, not below zero |
For the flat example the rows read 203, 41, 0 and 6 W. On the climb they read 8, 14, 222 and 6 W.
Below the rows, a doughnut chart called Power distribution draws the same parts in four colours: blue for aerodynamic, amber for rolling, red for gravity and grey for drivetrain loss. A part that is zero or negative has no slice, so a downhill gravity term is left out of the chart while the row still shows its negative watts. The chart is drawn only when at least two slices remain. The hover tooltip names a slice and prints its watts.
When does the tool show nothing?
The right-hand panel says "Enter values to see results" when the solver returns nothing. That happens when:
- a box is empty or not a number,
- power is zero or below, or total mass is under 40 kg,
- CdA is outside 0.08 to 0.50, Crr outside 0.002 to 0.015, or air density outside 0.5 to 1.5 kg/m³,
- no speed between 0.02 and 60 m/s (about 216 km/h) matches the power, for example a steep climb with very little power.
The tool does not say which of these happened. The ranges on the boxes are narrower than the solver in one place: the CdA box starts at 0.15, while the solver accepts values from 0.08.
What do runners, cyclists, swimmers and multisport athletes get?
Cyclists get the full tool. Rider power at the crank, bike weight and a position on the bike are what the equation needs. Runners and swimmers get nothing from this page: it has no pace, no running power and no swim speed, and it does not turn any of those into a bike speed. A multisport athlete can use it for the bike leg only. The tool does not read your training data, apart from prefilling the power and body weight boxes.
How Gradescale shows it
Open the tool at /tools/power-to-speed. The nine boxes sit on the left and the results on the right: speed in km/h and mph, air density, the four breakdown rows and the doughnut chart. Under the calculator come a short scope note and four questions with answers.
Limits
- Steady state only. There is no acceleration, no braking and no change in slope or wind along the way. A real ride has all of these.
- Every input is yours. CdA, Crr, wind and weight are typed. A wrong CdA gives a wrong speed by a lot, because drag dominates on the flat. The 83 kg flat example above gets 203 of its 250 W from drag.
- Dry standard air. No humidity, no measured pressure.
- Fixed efficiency. The 97.6 percent figure is one measured value. It does not change with chain wear, gear or power.
- Power at the crank. A power meter at the pedal or the hub reads a little differently. The tool does not correct for the meter position.
- Gradient is a straight-line number. A road that rolls up and down is not one gradient.
- Cycling only. No pace, no swim speed.
- No advice. The speed is the result of an equation. It says nothing about how hard to ride.
Symbols
| Symbol | Meaning | Unit |
|---|---|---|
| P | Rider power at the crank | W |
| η | Drivetrain efficiency, fixed at 0.976 | none |
| m | Rider plus bike mass | kg |
| g | Gravity, 9.80665 | m/s² |
| θ | Slope angle, from the gradient | rad |
| CdA | Drag area | m² |
| Crr | Rolling resistance coefficient | none |
| ρ | Air density | kg/m³ |
| v | Ground speed | m/s |
| vw | Headwind speed | m/s |