Technical Guide & Equation Reference
This document describes the biomechanical model, physics equations, and research basis for the interactive pedal stroke simulator. The simulator compares two crank lengths side-by-side, showing how crank length affects joint kinematics, pedal forces, power output, and metabolic efficiency.
The model uses a 2D sagittal-plane (side view) coordinate system:
This means:
The pedal traces a circle of radius L (crank length) around the bottom bracket:
At TDC (θ=0): pedal is at (0, +L), directly above the BB.
At BDC (θ=π): pedal is at (0, −L), directly below the BB.
The rider's leg is modeled as two rigid segments (thigh and shank) connected at the knee. Segment lengths are derived from inseam (standing leg length) using standard anthropometric ratios from biomechanics literature:
For the default 840 mm inseam: thigh = 430 mm, shank = 410 mm.
The hip joint is fixed (rigid torso assumption). Its horizontal position is:
The vertical position (seat height) is the critical fit parameter. It is automatically computed so that the rider's knee is at 150° internal angle when the pedal is at BDC — this is a standard bike fitting rule (30° of flexion from full extension). This models what a real rider does: when you change crank length, you adjust your seat height to maintain proper fit.
At BDC, the pedal is at position (0, −L). The distance from hip to pedal must equal the distance between hip and ankle when the knee is at 150°. Using the law of cosines:
Since cos(150°) ≈ −0.866, the double-negative makes dBDC larger than either segment alone. Then:
The subtraction of Lcrank accounts for the fact that the pedal is Lcrank below the BB at BDC, and the hip must be positioned so the total hip-to-pedal distance equals dBDC.
| Crank Length | Hip Height (yhip) | Change from 170mm |
|---|---|---|
| 150 mm | 661 mm | −20 mm |
| 170 mm | 641 mm | — |
| 180 mm | 631 mm | −10 mm |
Given the hip position (fixed) and pedal position (varies with θ), we solve for the knee position using a 2-link inverse kinematics solver based on the law of cosines. This is the geometric core of the simulator.
The distance d is clamped to the reachable range to prevent mathematical errors:
The internal angle at the knee joint (the angle between thigh and shank, measured on the posterior side):
The offset angle β accounts for the triangle geometry:
The + sign places the knee anterior (in front of) the hip-to-pedal line, which
is the anatomically correct configuration for cycling.
For the dashboard display, we compute anatomical angles that correspond to how joint angles are reported in clinical biomechanics:
The range of motion (ROM) is the difference between maximum and minimum joint angle across one full pedal revolution:
| Crank Length | Hip ROM | Knee ROM |
|---|---|---|
| 150 mm | 44.4° | 75.1° |
| 170 mm | 49.5° | 81.8° |
| 180 mm | 52.1° | 85.1° |
These align closely with published research: Barratt et al. reported hip ROM of ~45° at 150 mm vs ~51° at 180 mm, and knee ROM of ~67° at 150 mm vs ~75° at 180 mm (our model's absolute values differ slightly due to simplified 2-link geometry, but the trends and magnitudes are consistent).
The effective (tangential) pedal force — the component that actually produces crank torque — varies through the pedal stroke. The model uses a phenomenological profile that approximates measured pedal force data from instrumented studies:
The primary sin(θ) term creates the basic activation pattern: zero at TDC,
peak near 90°, back to zero at BDC. The modulation term
(1 + 0.1 · sin(2θ − π/3)) introduces two effects:
where kupstroke = 0.05 (5% of peak downstroke force). The negative sign indicates this force opposes crank rotation — during the upstroke, the weight of the rising leg resists motion. Even with clipless pedals, most riders produce very little positive upstroke force; trained cyclists with clipless pedals might reach kupstroke = 0.15–0.25.
Torque is force times lever arm length:
This is the fundamental mechanical advantage equation. Longer cranks multiply force into more torque, but research shows that within the typical 145–175 mm range, this advantage is almost entirely offset by compensatory changes in cadence and pedaling mechanics (see References).
Power is torque times angular velocity:
where ω is the angular velocity in radians per second:
Since ω is constant (steady-state cadence assumption), instantaneous power has exactly the same shape as the force profile — just scaled by Lcrank × ω.
The average power over one complete revolution is the mean of instantaneous power across 360 evenly-spaced samples:
Displayed during animation as the total mechanical work done:
The simulator reports two efficiency metrics, reflecting the distinction between physiological and whole-system efficiency.
This is the research-derived efficiency of converting metabolic energy into mechanical work at the pedals. It varies with crank length based on a linear interpolation of published data from Barratt et al.:
where L is crank length in meters. This gives:
| Crank Length | ηbase |
|---|---|
| 150 mm | 22.1% |
| 165 mm | 21.85% |
| 170 mm | 21.77% |
| 175 mm | 21.68% |
| 180 mm | 21.6% |
The value is clamped to the range [15%, 25%] for extreme crank lengths outside the research data range.
The net efficiency including basal (resting) metabolic cost. This represents the overall fraction of total energy expenditure that becomes mechanical work:
where Prest = 75 W is the resting metabolic rate. This value is always lower than ηbase because the resting metabolic cost is a fixed overhead that dilutes efficiency. At low power outputs, gross efficiency is much lower than metabolic efficiency; at high power outputs, they converge.
Research shows that the cadence which minimizes metabolic cost (or maximizes efficiency) shifts upward with shorter cranks. The model uses an empirical fit:
Calibrated against research data:
| Crank Length | Model Prediction | Research Data |
|---|---|---|
| 150 mm | ~128 rpm | ~130 rpm |
| 170 mm | 120 rpm | 120 rpm (reference) |
| 200 mm | ~111 rpm | ~110–120 rpm |
The square-root scaling reflects the biomechanical principle that shorter cranks reduce pedal travel distance per revolution, allowing higher spin rates before muscle contraction velocity penalties dominate. This value is displayed as a reference only — the user sets their own cadence.
The simulator offers two comparison modes:
Both sides use the same peak pedal force (Fpeak). This shows the pure mechanical effect of crank length: the longer crank produces more torque and power simply because τ = F × L. This is useful for understanding the physics, but doesn't reflect how a rider actually behaves.
Side B's peak force is adjusted so that its average power matches Side A. This models a rider who adjusts their effort to maintain the same output regardless of crank length:
This mode reveals the interesting finding from research: to maintain the same power with shorter cranks, a rider pushes slightly harder per stroke, but the net effect on perceived effort and fatigue is still lower due to reduced joint excursion and more favorable muscle mechanics.
The following published studies informed the model parameters and validation targets:
[1] Barratt, P.R., Korff, T., Elmer, S.J., & Martin, J.C. (2011). "Effects of Pedal
Speed and Crank Length on Pedaling Mechanics during Submaximal Cycling."
Medicine & Science in Sports & Exercise.
PMC5638423
— Key findings used: crank length significantly affects ankle, knee, and hip angular
excursions (p<0.001). Hip and knee ROM increase with longer cranks. Joint moments are
largely unaffected by crank length at matched pedal speeds.
[2] Turpin, N.A. & Watier, B. (2025). "The impact of minor crank length adjustments
on lower body cycling kinematics." Sports Biomechanics.
DOI link
— Minor crank reductions decrease hip and knee flexion and limit non-sagittal plane motion,
potentially reducing overuse injury risk.
[3] Phan, G.T., et al. (2022). "Cycling with Short Crank Lengths Improved Economy
in Novices." International Journal of Exercise Science.
PMC8758175
— Novice cyclists achieved 3–5.5% greater power output with 145 mm cranks vs 175 mm
at 60% VO2peak, with no difference in physiological parameters (HR, RER, lactate).
Cycling economy was significantly better at all time points (p<0.03). Large effect sizes
(Cohen's d = 0.80–1.19).
[4] ThickBits Research. "Optimal Crank Length Analysis."
thickbits.com
— Comprehensive analysis showing: within 145–170 mm range, power varies by only ~1.6%.
Gross efficiency: ~22.1% at 150 mm vs ~21.6% at 180 mm. Optimal cadence scales from ~130 rpm
at 150 mm to ~110–120 rpm at 200+ mm.
[5] Ortega-Montiel, J., et al. (2025). "Effects of crank length on cycling efficiency,
sprint performance, and perceived fatigue in high-level amateur road cyclists."
PeerJ.
PMC12060448
— 28 trained cyclists (VO2max ~59 ml/kg/min). No significant differences in sprint
peak power (~13.2 W/kg) or economy across 165/170/175 mm cranks. Perceived fatigue (RPE) was
significantly lower with shorter cranks: 3.21±0.88 at 165 mm vs 4.50±0.69 at 175 mm
(p<0.001, δ=−0.72).
[6] Rasmussen, J., et al. (2015). "Prediction of crank torque and pedal angle profiles
during pedaling movements by biomechanical optimization."
Structural and Multidisciplinary Optimization.
Springer link
— Inverse-inverse dynamics method for predicting pedaling motion. Musculoskeletal model with
parameterized movement optimized against user-defined cost functions.
[7] Quintana-Duque, J.C., et al. (2015). "Estimation of Torque Variation from Pedal
Motion in Cycling." Proc. ISBS.
PDF
— Methods for estimating crank torque from motion data. Net torque decomposition into
applied torque and brake torque components.
[8] British Cycling / ThickBits analysis of Bradley Wiggins' hour record preparation.
— Crank reduction from 177.5 mm to 165 mm allowed a 30 mm front-end drop, resulting in
~3.5% aerodynamic drag (CdA) reduction. Demonstrates that shorter cranks enable more aggressive
aerodynamic positioning as a secondary benefit beyond the direct biomechanical effects.
Bicycle Pedal Stroke Simulator — Technical Guide
Model equations and research review compiled February 2026