Bike Chain Length Calculator
- The classic chain-length formula wraps the chain around the biggest chainring and biggest cog: L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path.
- With a 17.0 in chainstay, a 50 tooth chainring and a 28 tooth cog, L = 2 x 17.0 + (50 + 28)/4 + 1 = 54.50 in (138.43 cm).
- Chain comes in half-inch pitch links, so the length is 110 links - the raw count rounded up to an even number, because inner and outer links must alternate and the joining link needs a matching pair.
- Size on the largest ring and cog combination the bike will actually use, even if cross-chaining there is bad practice: a chain that fits the extremes can never tear the derailleur off, while a shorter one can.
A chain that is too short can bind the derailleur, and one that is too long can skip or sag. This chain length calculator uses the classic formula that wraps the chain around the biggest chainring and the biggest cog, so you get the right length before you cut or buy anything. The formula is simple: L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path. Enter your chainstay length and your tooth counts, and the page returns the chain length in inches, links and centimeters. For example, a 17 in chainstay with a 50 tooth ring and a 28 tooth cog needs a 54.50 in chain, which is 110 links or 138.43 cm. A 16.5 in chainstay with 52/32 gearing needs 55.00 in, or 110 links, and a 17.5 in chainstay with 44/34 gearing needs 55.50 in, or 112 links.
This method is the accepted standard for sizing a chain because it accounts for the longest path the chain must take through the drivetrain, which is around the largest ring and largest cog. Chain comes in half-inch pitch links, so the length in inches doubles to a link count. That count is then rounded up to an even number, because inner and outer links alternate and the joining link needs a matching pair. This page does more than hand you a number: it shows the formula, walks through the step-by-step workings, gives worked examples like the ones above, and lists its sources so you can check every figure yourself.
Worked examples
50/28 road setup
A 17 in chainstay with a 50 tooth ring and 28 tooth cog needs a 54.50 in chain - 110 links. (17 in · 50 teeth · 28 teeth)
| Chain length | 54.50 in |
| Links needed (even count) | 110 |
| Length in centimetres | 138.43 cm |
| Length in feet | 4.54 ft |
52/32 road setup
A 16.5 in chainstay with 52/32 gearing needs 55.00 in - 110 links. (16.5 in · 52 teeth · 32 teeth)
| Chain length | 55.00 in |
| Links needed (even count) | 110 |
| Length in centimetres | 139.70 cm |
| Length in feet | 4.58 ft |
44/34 gravel setup
A 17.5 in chainstay with 44/34 gearing needs 55.50 in - 112 links. (17.5 in · 44 teeth · 34 teeth)
| Chain length | 55.50 in |
| Links needed (even count) | 112 |
| Length in centimetres | 140.97 cm |
| Length in feet | 4.63 ft |
The sizing formula
The classic chain-length formula wraps the chain around the biggest chainring and biggest cog: L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path. Written as a line, it reads L = 2C + (F + R)/4 + 1. Here C is the chainstay length in inches, F is the tooth count of the largest chainring, R is the tooth count of the largest rear cog, and the trailing 1 is that derailleur allowance. Read as a chain length calculator, each term has a clear job, and taking them one at a time shows where the number comes from.
The first term, 2C, is the chainstay length counted twice. The chain runs along the chainstay from the bottom bracket to the rear axle and then comes back on the upper run, so the stay's length enters the formula doubled. This term usually dominates the result: a stay of 16.5 to 17.5 inches contributes 33 to 35 inches before any gearing is counted.
The second term, (F + R)/4, accounts for the chain's travel around the two largest sprockets. Add the biggest chainring tooth count to the biggest cog tooth count, then divide by four. The quarter factor reflects how the chain wraps roughly half of each sprocket, and half of a half is a quarter. Bigger rings and cogs therefore add length, but slowly: every 4 teeth of combined gearing adds 1 inch.
The final +1 is the derailleur path allowance, a flat inch added so the rear derailleur has chain to move through as it swings across the cassette.
Three worked examples from the formula show the pattern. A 17 in chainstay with a 50 tooth ring and 28 tooth cog needs a 54.50 in chain - 110 links, 138.43 cm. A 16.5 in chainstay with 52/32 gearing needs 55.00 in - 110 links. A 17.5 in chainstay with 44/34 gearing needs 55.50 in - 112 links.
The last step converts inches to links. Chain comes in half-inch pitch links, so the length in inches doubles to a link count, rounded up to an even number because inner and outer links alternate and the joining link needs a matching pair.
- 2C: the chainstay length, doubled, because the chain runs out and back.
- (F + R)/4: the largest chainring and largest cog tooth counts added, then divided by four.
- +1: one inch for the derailleur path.
Links and joining
Once you have a chain length in inches, the next step is turning it into a link count you can actually buy and install. Chain comes in half-inch pitch links, which means each link covers half an inch of chain. That makes the conversion simple: the length in inches doubles to give the number of links. A calculated length of 54.50 in becomes 109 links, and from there you round up to an even number, so 110. This is where a chain length calculator earns its keep, because the rounding rule is easy to forget when you are working it out by hand at the bench.
The reason for the even number is mechanical, not cosmetic. Inner and outer links alternate along the chain, so a chain that ends on an odd count cannot close on itself cleanly. The joining link needs a matching pair — an inner link to meet an outer link — and an even total guarantees that pairing works out. Round up rather than down, since a chain that is slightly long can usually be shortened, while one that is too short cannot be stretched.
The classic chain-length formula gives you the starting figure. It wraps the chain around the biggest chainring and the biggest cog: L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path. Worked examples show how the numbers land in practice. A 17 in chainstay with a 50 tooth ring and a 28 tooth cog needs a 54.50 in chain — 110 links, 138.43 cm. A 16.5 in chainstay with 52/32 gearing needs 55.00 in, which is 110 links. A 17.5 in chainstay with 44/34 gearing needs 55.50 in, or 112 links.
Joining the chain is the last step, and the method depends on what your chain uses. A quick link is a removable connector that lets you close the loop without tools and open it again for cleaning or replacement; it takes the place of a standard pair of links, so the even-count rule still applies. A joining pin is a dedicated replacement pin pushed through the ends to rivet the chain closed, used on chains that are not designed for a reusable quick link. Either way, the chain must be sized before joining, since the connector does not change the required length.
- Half-inch pitch: each link covers half an inch, so inches × 2 = link count.
- Round up to an even number so inner and outer links pair at the join.
- Quick link: removable connector, no tools needed to open or close.
- Joining pin: dedicated replacement pin for chains without a reusable quick link.
- Size the chain first; the joining method does not change the length.
Why size on the biggest combination
The classic chain-length formula deliberately measures the worst case: it wraps the chain around the biggest chainring and the biggest cog at the same time. That is the combination that demands the most chain, so a chain sized this way is long enough for every other gear you can select. The formula is L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path. The extra inch is not slack for riding — it is the length the rear derailleur cage needs to route the chain through its pulleys without the cage being pulled straight.
A chain length calculator applies that formula to your own numbers, and the results show how much the chainstay and tooth counts matter. A 17 in chainstay with a 50 tooth ring and a 28 tooth cog needs a 54.50 in chain — 110 links, 138.43 cm. A 16.5 in chainstay with 52/32 gearing needs 55.00 in — 110 links. A 17.5 in chainstay with 44/34 gearing needs 55.50 in — 112 links. Notice that the shorter chainstay with larger tooth counts and the longer chainstay with smaller ones land close together, because the two effects offset each other. Small changes in any input can move the answer by a link or two.
The reason to size on the biggest combination is protection. If the chain is too short for the largest ring and largest cog, selecting that gear — even by accident, even for a moment — forces the derailleur cage to its limit. Something has to give, and it is usually the derailleur, the hanger, or the chain itself. Sizing on the biggest combination means the derailleur always has room to move, so a mis-shift or a hurried shift into the easiest gear does not turn into a repair bill. You should not ride cross-chained in that gear, but the drivetrain should survive being there.
Converting the length to a link count has its own rule. Chain comes in half-inch pitch links, so the length in inches doubles to a link count, rounded up to an even number because inner and outer links alternate and the joining link needs a matching pair. That rounding is why the examples land on even counts such as 110 and 112 links rather than odd numbers. Always round up, never down: a chain cut a link short is the failure this whole method exists to prevent.
Measure carefully before you cut, and check the result on the bike with the chain on the biggest ring and biggest cog before you join it permanently. The chain length calculator gives you the target; the derailleur cage tells you whether you hit it.
Reading the examples
The examples below show how the same chain length calculator method produces different link counts depending on the numbers you feed it. Each case starts with the classic formula: wrap the chain around the biggest chainring and biggest cog, so L equals twice the chainstay length, plus a quarter of the two tooth counts added together, plus 1 inch for the derailleur path. Then the length in inches doubles into a link count, because chain comes in half-inch pitch links. That count is rounded up to an even number, since inner and outer links alternate and the joining link needs a matching pair.
Case one: a 17 in chainstay with a 50 tooth ring and 28 tooth cog. The formula returns a 54.50 in chain, which works out to 110 links, or 138.43 cm. Case two: a 16.5 in chainstay with 52/32 gearing. That drivetrain needs 55.00 in, which also lands on 110 links. Case three: a 17.5 in chainstay with 44/34 gearing. This one needs 55.50 in, and it rounds to 112 links.
Why do two of the three land on 110 links? Look at the raw inch figures: 54.50 in, 55.00 in, and 55.50 in. Doubling each gives 109, 110, and 111 half-inch links. The first two both finish at 110 once the count is rounded up to an even number, because 109 cannot stand as a final answer when inner and outer links must alternate. The third case doubles to 111 and rounds up to 112. So the 110-link result is not a coincidence or a shortcut in the chain length calculator; it is what happens when two different drivetrains both fall into the same even-link band.
The three cases also show that chainstay length and tooth counts move together rather than in isolation. Case two has the shortest chainstay of the three at 16.5 in, but its larger 52/32 gearing pushes the total to 55.00 in. Case three has the longest chainstay at 17.5 in, and its 44/34 gearing brings the total to 55.50 in, enough to cross into the 112-link result. Case one sits between them at 17 in with 50/28 gearing and a 54.50 in chain.
A practical takeaway: read the inch figure first, then the link count. The inches tell you how close you are to the next even-link step, and the link count tells you what to actually buy or cut. A difference of half an inch can be the difference between 110 and 112 links, so treat the rounded link count as the number that matters and the inch value as the working figure behind it.
FAQs
How long should my bike chain be?
Using the chain length formula, a bike with a 17 in chainstay and 50/28 gearing needs a chain of 54.50 in, which works out to 110 links. That figure comes from the formula itself, so plug in your own chainstay length and gear sizes to get your number.
How many links is that?
Take the length in inches and multiply by two, since chain pitch is half an inch. For the 54.50 in result that gives 109, then round up to an even count for a total of 110 links. Always round up rather than down so the chain is long enough.
Why round up to an even number of links?
Inner and outer links must alternate along the chain, and the joining link needs a matching pair to connect properly. An odd link count leaves you with two of the same type at the ends, so you round up to the next even number, such as 110 links, to keep the pattern intact.
Should I size on the biggest cog and ring?
Yes. Size the chain with the biggest cog and the biggest ring in mind. A chain that fits those extremes can never tear the derailleur off, because the derailleur always has enough chain to cover the largest combination your gearing allows.
What if I change the cassette?
Recheck the length. A larger biggest cog lengthens the requirement by a quarter of the added teeth, so the change is smaller than you might expect but still real. Run the formula again with the new tooth count before you cut or fit a chain.
Can I use the old chain to size the new one?
Only if the old chain was the right length and your gearing is unchanged. In that case, count the links on the old chain and match that count. Do not measure stretch, since a worn chain reads longer than it should and would give you a wrong length.