What is the Bike Chain Length Calculator?
This tool estimates the correct length for a bicycle chain using the well-known "rigid" chain length equation. It works from three measurements: your frame's chainstay length, the number of teeth on your largest front chainring, and the number of teeth on your largest rear cog. The result is given both in inches and in the number of half-inch chain links you should run.
How to Use It
Measure the chainstay length in millimetres (the distance from the centre of the bottom bracket to the centre of the rear axle). Enter the tooth count of your biggest chainring and biggest sprocket. The calculator returns a raw length, then rounds to the nearest whole link because chains can only be broken at full links.
The Formula Explained
The equation is $$L = 2\cdot\left(\frac{C}{25.4}\right) + \frac{F}{4} + \frac{R}{4} + 1$$ where \(C\) is in millimetres. Dividing the chainstay by 25.4 converts millimetres to inches, and doubling accounts for both the top and bottom runs of chain. Adding \(\frac{F}{4}\) and \(\frac{R}{4}\) wraps the chain around the largest gears, and the constant 1 inch provides clearance for the derailleur to take up slack.
Worked Example
For an MTB with a 445 mm chainstay, a 32T chainring and a 51T cassette cog: $$L = \frac{445}{12.7} + \frac{32}{4} + \frac{51}{4} + 1 = 35.039 + 8 + 12.75 + 1 \approx 56.79 \text{ inches}$$ Rounded to the nearest half-inch link this is 112 links, or 56 inches.
Practical Tips Before You Cut the Chain
- Round to an even number of links. A standard chain is built from alternating inner and outer links, and it closes with an inner link and an outer link joined by a quick link or pin. An odd link count needs a half-link, which is weaker and usually best avoided.
- Convert inches to links correctly. Chain pitch is 0.5 in per link, so the number of links is twice the length in inches. The article's worked example rounds 56.79 in to 112 links, but \(2 \times 56.79 \approx 113.6\) links, which rounds up to 114 links (the next even number). Use the 2 × length rule when you check your own result.
- Cut a bit long, then trim. Fit the chain, test it, and shorten it only once you are sure. You can always remove a pair of links, but you cannot add one back to a chain you have already cut too short.
- Check big-big without tension on the derailleur. Shift to the largest chainring and largest cog. The chain should connect with the derailleur cage not yet stretched to its limit. Never ride a chain so short that the big-big combination pulls the derailleur tight.
- Check small-small for slack. Shift to the smallest chainring and smallest cog (avoid riding this combination, but check it). The chain should not slap against the chainstay, and the derailleur cage should still have take-up left rather than running out of travel.
- Check the derailleur's maximum capacity. Each rear derailleur has a rated total capacity (the difference in teeth between the largest and smallest chainring plus the difference between the largest and smallest cog). A chain length that works only outside this limit is a sign the drivetrain is mismatched.
- Full-suspension frames: The distance between the bottom bracket and the rear axle changes as the shock compresses. Cycle the suspension to full compression (for example by removing the shock spring or air) and confirm the chain does not bind or overstretch the derailleur.
- Keep the old chain as a reference. When replacing a chain, lay the old one beside the new one to compare lengths, provided the old chain was correctly sized and is not badly stretched, and match the link count.
This is general information to help with bike maintenance. Always follow the chain and derailleur manufacturer's instructions for your parts.
Key Terms Explained
- Chainstay length
- The distance from the centre of the bottom bracket to the centre of the rear axle (the dropout), measured in millimetres. It sets the basic span the chain has to cover.
- Chainring
- A toothed ring attached to the crankset at the front. The "front" value in the calculator is the tooth count of the largest chainring.
- Cog / cassette
- The cogs are the toothed sprockets on the rear wheel, and the cassette is the group of them mounted together. The "rear" value is the tooth count of the largest cog.
- Chain pitch
- The distance between adjacent pins on the chain, which is 0.5 in (12.7 mm) per link, or 1 in per inner-plus-outer pair of links. This is why the number of links is twice the length in inches.
- Inner / outer link
- The two alternating link types. Inner links have plates that sit close together, and outer links have plates that sit further apart and fit around the inner links.
- Quick link
- A reusable connector that joins the two ends of a chain without a chain tool. Make sure it is the right type for the chain's speed rating.
- Derailleur capacity
- The maximum total tooth difference a rear derailleur can take up, calculated from the chainring and cog ranges. Exceeding it means the chain will either be too slack in small-small or too tight in big-big.
- Big-big
- The combination of the largest chainring and largest cog. It uses the most chain and is the combination used to check that the chain is long enough.
- Rigid chain length
- The chain length calculated with no suspension movement, in other words with the frame at its fixed static dimensions. On a full-suspension frame, the length must also be checked at full shock compression.
FAQ
Why round to links? A chain can only be cut between rollers, so its length is always a whole number of half-inch links.
Which gears do I use? Always use the largest chainring and largest cog — the combination that demands the most chain — then let the derailleur absorb the slack in smaller gears.
Is this exact? It is an estimate. Always finalise length on the bike by shifting to the big-big combination and following your derailleur manufacturer's wrap method.