cycling calculators

Bike Chain Length Calculator

Determine the correct number of chain links for your bike's drivetrain using chainstay length and sprocket sizes. Essential when installing a new chain or changing gearing.

About this calculator

A correctly sized chain prevents skipping, poor shifting, and drivetrain damage. The standard formula for chain length in links is: Links = (chainstayLength / 12.7) × 2 + (largestChainring + largestCog) / 2 + 2.5. Here, chainstay length is in millimeters and 12.7 mm is the standard distance between chain link pins (one link pitch). Dividing by 12.7 and multiplying by 2 accounts for the full chain path around the chainstay span. Adding half the sum of the largest chainring and largest cog teeth accounts for chain wrap around both sprockets in their biggest-big combination, which creates the longest required chain path. The constant 2.5 provides clearance for the rear derailleur to take up slack. The result is rounded up to the nearest even number since chains must be joined pin-to-pin.

How to use

Your bike has a 440 mm chainstay, a 50-tooth large chainring, and a 36-tooth largest rear cog. Apply the formula: Links = (440 / 12.7) × 2 + (50 + 36) / 2 + 2.5 = 34.65 × 2 + 43 + 2.5 = 69.29 + 43 + 2.5 = 114.79. Round up to the nearest even number: 116 links. Purchase a chain with at least 116 links and break it to that length before installing. Always verify by shifting to the big-big combo and confirming the derailleur cage is not fully extended.

Frequently asked questions

What happens if my bike chain is too long or too short?

A chain that is too long will sag and may drop off the chainring, especially in small-small gear combinations, because the rear derailleur cannot take up the excess slack. It also rattles and shifts poorly. A chain that is too short creates the opposite problem: in the largest-chainring and largest-cog combination, it pulls the derailleur cage forward beyond its limit, which can snap the derailleur hanger or damage the derailleur itself. In extreme cases a snapped chain in a hard gear can cause a crash. Getting chain length right protects your drivetrain and ensures reliable shifting across all gear combinations.

How does chainstay length affect the required bike chain length?

Chainstay length is the distance from the bottom bracket axle to the rear axle, and it directly determines how much chain is needed to span the bottom of the drivetrain loop. A longer chainstay — typical on touring bikes, gravel bikes, and some mountain bikes — requires more links than a short chainstay found on aggressive road or criterium bikes. Even a 10 mm difference in chainstay length translates to roughly 1.5–2 additional links. This is why chain length must always be calculated per bike rather than using a generic count from the box.

Do I need a different chain length when I change my cassette or chainrings?

Yes — any change to the largest chainring or largest rear cog tooth count changes the required chain length. Moving to a wider-range cassette (e.g. swapping an 11-28T for an 11-34T) increases the largest cog size and typically requires 2–4 additional links. Similarly, adding a larger chainring demands a longer chain. When upgrading to a 1× drivetrain with a large direct-mount chainring and wide-range cassette, recalculating chain length is essential. Always re-measure and cut a new chain rather than reusing the old one, which may also be worn.