How to calculate
Divide front chainring teeth by rear cog teeth for the drivetrain ratio. Multiply it by wheel diameter in inches for gear inches. Multiply it by wheel circumference in meters for development. Multiply it by wheel radius divided by crank length for gain ratio.
Worked example
Use Chainring teeth 53 · Rear cog teeth 19 · Outside wheel diameter 680 · Diameter unit Millimeters · Crank length 170 · Crank unit Millimeters. The result is 2.7895 : 1.
Input and result notes
Use the outside diameter including the tire. Crank length is measured from axle center to pedal spindle center.
Sheldon Brown on bike gearing and gain ratios