How bicycle chain length is estimated
Getting chain length right matters for shifting and for safety. A chain that is too short can tear the rear derailleur off the bike if you shift into the big ring and big cog together. A chain that is too long sags, slaps the frame and can drop off in the small gears. This calculator uses the standard chain length equation to estimate the number of links you need from your frame's geometry and gear sizes. It is handy when building a bike from scratch, changing to a different cassette, or swapping gear ratios on a BMX.
The formula for derailleur bikes
The usual shop formula, popularised by Park Tool and Sheldon Brown, is:
L = 2C + F/4 + R/4 + 1
- C is the chainstay length in inches, measured from the centre of the bottom bracket to the centre of the rear axle.
- F is the number of teeth on the largest chainring.
- R is the number of teeth on the largest rear cog.
The result is in inches. Round it up to the next whole inch, because a chain can only be shortened one inner and outer link pair (1 inch) at a time. Bicycle chains have a half-inch pitch, so the number of links is twice the length in inches.
For example, a 415 mm chainstay is 16.34 in. With a 50T chainring and a 34T cog: 2 × 16.34 + 50/4 + 34/4 + 1 = 54.68 in, which rounds up to 55 in, or 110 links.
Why the formula works
The chain runs twice along the chainstay (top and bottom runs), which gives the 2C term. It wraps roughly halfway around each sprocket, and each tooth carries half an inch of chain, so half the teeth times half an inch gives F/4 and R/4. The extra inch is slack for the rear derailleur.
Single speed and BMX
Without a derailleur there is no extra inch. The calculator uses the exact two-sprocket formula instead, which accounts for the chain angle when the sprockets are different sizes, then rounds up to an even number of links. Horizontal dropouts or sliding dropouts take up the difference: the result shows roughly how far back the axle will sit. If that is more than your dropouts allow, a half link lets you use an odd number of links.
Checking the result on the bike
- Wrap the chain around the big chainring and big cog without going through the derailleur, then add one inch (two links). This should match the formula.
- Shift to the big ring and big cog. The derailleur cage should be stretched forward but not pulled straight.
- Shift to the small ring and small cog. The lower jockey wheel should not touch the chain running above it.
- Some modern 1x drivetrains with very large cogs and some full-suspension bikes have their own sizing method. Follow the manufacturer's instructions where they differ.