BikeLab Trail Calculator
Bicycle steering geometry: trail, wheel flop and dynamic trail.
Description
Bicycle steering geometry from head angle, fork offset and wheel radius: ground trail, mechanical trail, wheel flop, the sensitivity of trail to each input, and the change of trail when the fork compresses. This repository holds the calculation engine, its golden vectors and two independent verifiers. GitHub Actions runs both verifiers on every change.
- Live demo: https://carlosravello-png.github.io/bikelab-trail-calculator/
- Full calculator (online since 22 June 2026): ES · EN · PT
- Method and validation: trail-model-validation-en
Model
Head angle θ measured from the horizontal, R = wheel radius to the ground, offset = fork rake.
| Quantity | Formula | Reference case (R 370, offset 44, θ 64°) |
|---|---|---|
| Ground trail | (R·cos θ − offset) / sin θ | 131.5 mm |
| Mechanical trail | R·cos θ − offset | 118.2 mm |
| Wheel flop | ground trail · sin θ · cos θ | 51.8 mm |
| +1° slacker | ∂trail/∂θ = (offset·cos θ − R) / sin²θ | +7.6 mm |
| +10 mm wheel diameter | ∂trail/∂D = ½ cot θ | +2.4 mm |
| Front compression (travel 160, sag 30 %, wheelbase 1250) | Δθ = arctan(travel·sag·sin θ / wheelbase) | θ 66.0°, trail 116.7 mm |
Sign guard: under front compression the head angle must steepen and trail must drop.
Reproduce
python verify_trail.py # independent verifier, standard library only
node check_engine.js # the real engine, Node.js 18+
Each prints N/N checks passed and exits with code 0.
Honest notes
- The original 2026 oracle script was not preserved.
verify_trail.pywas written on 2026-11-23 to replace it and is declared as such. - Writing that verifier caught one error in the method article: it said "+10 mm of diameter → +4.9 mm of trail". The correct value is +2.4 mm (4.9 mm is what 10 mm of radius gives). The calculator always showed 2.4; the article was corrected in ES, EN and PT on 2026-11-23.
License and citation
Engine, vectors and verifiers: CC BY 4.0.
Ravello Joo, C. E. (2026). BikeLab Trail Calculator (Version 1.0.0) [Software]. Zenodo. https://doi.org/10.5281/zenodo.24477626
All versions: DOI 10.5281/zenodo.24477625.