Skip to main content

The Calculus of the Pain Cave: A Mechanical Autopsy of Speed

Published 16-12-202511 min readPhysics

There is a fundamental misunderstanding about what happens when you ride a bicycle. We tend to view it through the lens of biology: muscles contracting, lungs expanding, sweat dripping. We see it as an athletic endeavor. But to a mechanical engineer, a cyclist is not an athlete. A cyclist is a heat engine.

The bicycle itself is not a vehicle; it is a force multiplier. It is a system of levers, pulleys, and friction coefficients designed to translate the linear reciprocation of pistons (your legs) into the rotational velocity of a torus (the wheel).

When we move this system indoors, onto the smart trainer and into the digital ether of Zwift, we are stripping away the noise of the world to reveal the raw, naked physics beneath. We are entering a laboratory where Newton's Second Law is the only law that matters. To understand why you are fast, or why you are slow, or why that 12% gradient feels like it is physically breaking your chain, you have to stop thinking like a rider and start thinking like a physicist.

The Tyranny of the Cube

The most brutal equation in cycling - and the one that governs every second of your existence in Watopia - is the equation for Aerodynamic Drag. It is the invisible wall.

In the vacuum of space, you could pedal a bicycle to the speed of light with very little effort. On Earth, you are swimming through a fluid. Air is heavy. At sea level, it creates a soup that resists your movement. The force required to push through this soup does not scale linearly. It scales with the square of your speed, and the power required scales with the cube of your speed.

This is the "Cubic Curse", and it is worth being precise about what the cube applies to. It applies to the aerodynamic term, not to the whole number on your screen. Take a 75 kg rider on a 9 kg bike, on the flat, in still air. At 20 km/h the model on this site puts roughly 18 W into rolling resistance and 32 W into pushing air, about 50 W in total. Double the speed to 40 km/h and the aerodynamic part goes up exactly eightfold, from 32 W to about 254 W, while rolling resistance merely doubles to 37 W. Total: about 290 W. So doubling your speed did not double your power and it did not multiply it by eight either - it multiplied it by about six, and the faster you go the closer that multiplier creeps toward the full cube, because air is taking over.

In Zwift, this physics engine is running constantly in the background. The game assigns you a CdA (Coefficient of Drag × Frontal Area). This number represents how "slippery" you are. When you unlock a time trial bike or an aero helmet, you are essentially asking the server to lower your CdA value by 0.002.

Why does this matter to the engineer? It reveals that speed is expensive. In the high-velocity ecosystem of a flat Zwift race, watts are not equal. The watts you add from 100W to 200W buy you a lot of speed. The watts you add from 400W to 500W buy you almost nothing. You are paying a premium tax to the god of aerodynamics. This is why the draft is so potent. Sitting in the slipstream reduces the fluid density hitting your frontal area, effectively cheating the cubic equation.

You Are Mostly Just a Radiator

Let's talk about the engine. You.

The human body is a chemically fueled combustion engine. You take hydrocarbons (glucose, fats), mix them with oxygen, and ignite them within the mitochondria to release energy.

However, from a mechanical engineering perspective, the human engine is disastrously inefficient. The Gross Efficiency of a human cyclist is typically between 20% and 25%. This means that for every 100 Joules of chemical energy you burn, only 20 to 25 Joules make it to the pedals as forward motion.

Where do the other 75 Joules go?

Heat.

You are not a motion machine; you are a heater that occasionally produces movement as a byproduct. If you are holding 300 watts on the pedals during a race, your body is actually generating roughly 1,200 watts of total power. 300 watts goes to the drivetrain; 900 watts is released as thermal waste.

This is the engineering reason why indoor training is so much harder than outdoor riding. Outside, you are moving through air at 30 km/h, creating a massive convective cooling effect that strips that waste heat away from your skin. Indoors, you are stationary. You are a 1000-watt space heater sitting in a stagnant room.

The "cardiac drift" you see in long Zwift races - where your heart rate rises despite your power staying the same - is a cooling failure. Your blood is being diverted from your muscles to your skin in a desperate attempt to dump heat into the air. The engineer's solution is not more fitness; it is more airflow. A bigger fan is literally a performance-enhancing device because it fixes the thermodynamic bottleneck of the engine.

The Vector Mathematics of the Pedal Stroke

We talk about "spinning circles," but mechanically, the pedal stroke is a messy sinusoidal wave of torque.

The crank arm is a lever. Torque (τ) is defined as Force (F) times the Length of the arm (r), multiplied by the sine of the angle of application.

τ = F × r × sin(θ)

When your pedal is at 12 o'clock (Top Dead Center), the sine of the angle is zero. No matter how hard you push down, you generate zero torque. You are pressing directly into the bearing. This is the "Dead Spot."

The magic happens at 3 o'clock (90 degrees), where the lever is perfectly perpendicular to the force of gravity. This is where mechanical advantage peaks.

Smart trainers measure this thousands of times per second. They are essentially strain gauges wrapping the axle. When you see your power number fluctuate on Zwift, you are seeing the smoothing of these violent pulses of torque. A "smooth" pedaler is not someone who pulls up; biomechanically, pulling up is inefficient. A smooth pedaler is someone who unweights the rising leg quickly enough that it doesn't become a counter-weight fighting the descending leg.

From an engineering standpoint, you want to maximize the "Effective Pedal Force." Every Newton of force you apply that isn't perpendicular to the crank arm is wasted energy - it bends the crank or compresses the pedal spindle, but it does not rotate the wheel.

The Lie of the Flywheel

Why does a cheap wheel-on trainer feel like riding through mud, while a high-end direct-drive trainer feels like the road? The answer is Mass Moment of Inertia.

I = Σ miri2

On the road, you and your bike have mass (let's say 80kg). When you stop pedaling at 30km/h, you don't stop instantly. You have huge kinetic energy (0.5mv²) stored in the system. You coast. The micro-accelerations of your pedal stroke are smoothed out by this massive momentum.

On a trainer, you are stationary. The only thing carrying momentum is the flywheel inside the plastic casing.

If that flywheel is light, it spins down instantly between pedal strokes. This forces you to "re-accelerate" the flywheel every single time you push down. This is biologically taxing. It recruits fast-twitch fibers unnecessarily and kills your legs.

High-end trainers use massive flywheels (or "virtual flywheels" created by electromagnets) to simulate the inertia of outdoor riding. They trick your muscles into feeling the momentum of an 80kg mass, even though you are going nowhere. This is a masterful illusion of engineering - using rotational inertia to simulate linear momentum.

The Joule Thief: Drivetrain Efficiency

Your power meter reads 250 watts. But your avatar does not receive 250 watts.

Between your crank and the virtual road lies the drivetrain: the chain, the cassette, the jockey wheels, and the bottom bracket. Each of these is a friction interface.

In a perfectly clean, lab-condition chain (like those prepared for Hour Record attempts), the efficiency loss might be as low as 2%. But on a dirty, gritty chain of a student's bike mounted on a trainer? The losses can exceed 5% or 6% according to drivetrain efficiency testing.

If you are losing 5% of 250 watts, you are throwing away 12.5 watts. In the context of mechanical engineering, this is "parasitic loss." It is energy lost to sound (the crunching noise) and heat (the chain getting warm).

The chain is a marvel of engineering - hundreds of articulating links transferring load under immense tension. But every articulation creates friction. The larger the cog you are in, the less the chain links have to rotate relative to each other to go around the bend. This is why "cross-chaining" (Big Ring to Big Cog) is actually mechanically efficient in terms of chain articulation, but bad for lateral tension.

Conversely, riding in the "small-small" gear combination (small chainring, small cog) is a disaster for efficiency. The chain has to articulate tightly around the tiny cog, creating massive friction. The smart engineer rides in the straightest chainline with the largest possible rear cog to minimize articulation angles.

Dirty Chain vs Clean Chain Efficiency Test

This video demonstrates a lab test quantifying the exact wattage loss from a dirty drivetrain, reinforcing the engineering concept of parasitic loss mentioned above.

Gravity: The Great Equalizer

On the flats, Aerodynamics (CdA) is king. On the Alpe du Zwift, Gravity takes the crown.

The physics of climbing is simple: You are doing work against a potential energy field.

P = m × g × v × sin(θ)

Where P is power, m is mass, g is gravity, v is velocity, and θ is the slope angle.

Notice that Aerodynamics has almost vanished from this equation (because velocity v is low). The dominant variable is now m (Mass).

This is why the lightweight rider dances away on the steep slopes. It is a linear relationship. If you reduce mass by 10%, you require 10% less power to maintain the same speed (ignoring rolling resistance and the tiny bit of air drag).

However, Zwift adds a layer of Game Physics here. In the settings, there is a "Trainer Difficulty" slider. This does not make you faster or slower. It changes the "mechanical advantage" (the virtual gearing).

Setting Trainer Difficulty to 50% is mechanically identical to installing a cassette with twice the range. It allows you to spin a lower torque at a higher cadence for the same wattage. It is a virtual gearbox. From a physics standpoint, power is power. But from a biomechanical standpoint, being able to keep your cadence in the efficient zone (80-90rpm) rather than grinding at 50rpm saves your neuromuscular system, even if the metabolic cost (watts) is the same.

The Algorithm of the Tire

We often ignore Rolling Resistance (Crr), but it is a silent killer. In the real world, tires deform where they touch the ground. This deformation creates heat (hysteresis). Energy is lost to the rubber.

Zwift models this. The "Crrt" (Rolling Resistance of the tire) is a variable in the game code. When you swap from the standard tires to the fancy race tires in the Drop Shop, you are changing a variable in the resistance equation.

On a smooth surface (asphalt), this number is small. But on the Jungle Circuit (dirt), the Crr spikes. The rolling resistance coefficient might triple.

The physics here is cruel: the rolling resistance force does not care how fast you are going (F = Crr × m × g), so the power it costs you rises in direct proportion to speed rather than with the cube of it. But because the dirt is slower, air resistance matters less, and rolling resistance matters more. The engineer knows that on dirt, weight matters more than aero. On the road, aero matters more than weight. Equipment choice is an optimization problem of these crossing curves.

Conclusion: The Beauty of the Machine

When you step back and look at the Zwift setup - the bike, the trainer, the screen, the fan - you are looking at a closed-loop control system. The sensor (power meter) feeds data to the controller (computer), which adjusts the actuator (trainer resistance), which impacts the plant (you), creating a feedback loop of pain and progress.

It is easy to get lost in the sweat and the emotion of the race. But there is a cold, hard beauty in the numbers. You are a biological machine turning chemical potential into kinetic energy, fighting against the fluid dynamics of a virtual atmosphere and the simulated gravity of a digital mountain.

Every watt is a victory of mechanics over entropy. Every drop of sweat is a thermodynamic necessity. And every time you crest a hill, you are not just an athlete showing grit; you are an engineer who has successfully balanced the equation.

About this article

Written by Christian Lassen Dam, who rides Zwift himself and builds every calculator on this site. Numbers here are either measured, and then linked to where they were measured, or modelled and estimated, and then labelled as such in the text. Spotted something wrong? Tell me and it gets corrected - the editorial policy explains how.