Skip to main content
Ctrl K

BikeLab Trail Calculator

Bicycle steering geometry: trail, wheel flop and dynamic trail.

1
contributor
Get started
3 commitsLast commit ≈ 3 days ago0 stars0 forks

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.

Bicycle steering geometry, reference case drawn to scale

Model

Head angle θ measured from the horizontal, R = wheel radius to the ground, offset = fork rake.

QuantityFormulaReference case (R 370, offset 44, θ 64°)
Ground trail(R·cos θ − offset) / sin θ131.5 mm
Mechanical trailR·cos θ − offset118.2 mm
Wheel flopground 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.py was 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.

Keywords
Badges
CI: verifiers
Programming languages
  • HTML 45%
  • Python 28%
  • JavaScript 27%
License
</>Source code
Software Heritage
Archived | swh:1:rev:109d2c84229e3f9afcf18d6aca8eedfe1a76aacb

Contributors