A chain that is one link too short can jam the derailleur the first time you shift into the big chainring and the biggest rear cog, and a chain that is far too long hangs slack and shifts sloppily. Sizing a chain is not guesswork: the length follows from three measurements you can take in a minute, the chainstay length and the tooth counts of the largest chainring and the largest rear cog. This free chain length calculator turns those three numbers into the length to cut, in links and in inches, using the Park Tool and Sheldon Brown equation method. Enter your measurements, and it shows the exact length, the link count rounded up to the next even number so the chain closes properly, and a drivetrain diagram that grows and shrinks with your gearing, plus a comparison of what changes when the chainstay, the chainring, the cog, or the derailleur allowance changes.
Measure the chainstay from the centre of the bottom bracket to the centre of the rear axle. Always use the largest chainring and the largest rear cog: the chain must be long enough for the big-big combination, and the derailleur takes up the slack in every smaller gear. Park Tool adds one inch for cogs of 36 teeth or smaller and two inches for a dedicated 1x system with a cog of 42 teeth or larger.
Please check the inputs: chainstay 300 to 600 mm, chainring 20 to 80 teeth, rear cog 9 to 60 teeth.
| Scenario | Exact Length (in) | Links | Finished Length (in) | Change in Links |
|---|
Each row changes one thing from the figures you entered: a 20 mm longer chainstay, 4 more chainring teeth, 4 more cog teeth, or the 1x wide-range allowance of 2 inches instead of 1. The row matching the figures you entered is highlighted.
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
A chain length calculator works out how long a bicycle chain must be for a given frame and drivetrain, from the chainstay length and the tooth counts of the largest chainring and the largest rear cog. The answer is given in links, because that is how chains are cut and sold, and in inches and centimetres, because that is how the length is measured on the bench.
The calculation exists because a chain has two jobs that pull in opposite directions. It must be long enough to reach the largest chainring paired with the largest rear cog, the big-big combination, without pulling the rear derailleur to its limit. And it must be short enough that the derailleur can take up the slack in the smallest gears without the chain drooping or touching itself. The derailleur allowance in the formula, one inch on a standard drivetrain, is the slack that lets the cage move through its range.
The inputs are always the largest sprockets, never the ones you ride in most often. A chain sized for a 50 tooth chainring and a 17 tooth cog is sized for the hardest combination the bike can reach, and every smaller combination is handled by the derailleur. Measure the chainstay from the centre of the bottom bracket to the centre of the rear axle, in millimetres, and count the teeth on the biggest ring and the biggest cog. If you are changing gearing at the same time as the chain, use the new tooth counts. For help choosing the gearing itself, the Bike Gear Calculator works out gear ratios and gear inches from the same tooth counts.
Chainstay in inches = chainstay in millimetres / 25.4
Exact chain length in inches = 2 x chainstay in inches + chainring teeth / 4 + rear cog teeth / 4 + derailleur allowance
Raw links = exact chain length in inches x 2
Chain links = raw links rounded UP to the next even number
Finished length in inches = chain links x 0.5
Finished length in centimetres = chain links x 1.27
Gear ratio (big-big) = chainring teeth / rear cog teeth
The formula is the equation method published by Park Tool and popularised by Sheldon Brown: twice the chainstay, plus a quarter of each tooth count, plus an allowance for the derailleur. Each quarter-tooth term is the chain wrapped round about half of that sprocket: half the teeth, at half an inch of pitch per tooth, is teeth divided by 4 inches. The allowance is 1 inch for a largest cog of 36 teeth or smaller and 2 inches for a dedicated 1x system with a largest cog of 42 teeth or larger, which is Park Tool’s current rule.
Two points about the formula matter. First, it is an approximation, not a geometric exactness: it treats the chain run as two straight lengths plus half of each sprocket, and ignores the small angle between the runs. For normal chainstays of 15 inches and longer it lands within a link or two of the physical measurement, which is why workshops have used it for decades. Second, the current Park Tool article teaches the same length by the physical big-big method rather than by the equation, and the two agree: wrap the chain round the largest ring and cog without the derailleur, then add two rivets. The calculator uses the equation because it needs no chain in hand, and the How to Use section tells you to confirm the answer with the physical method before cutting.
The rounding rule is deliberate and is where this calculator differs from the older Park Tool wording. The old Park Tool article rounded the inch figure to the nearest whole inch, rounding 0.5 up. This calculator instead rounds the link count UP to the next even number. Rounding down, or rounding to the nearest inch, can leave the chain a link short of the big-big combination, and a short chain is the dangerous error: it can jam or break the derailleur. Rounding up costs at most one extra link of slack, which the derailleur absorbs. A chain only closes inner link to outer link, so the count must be even, and a master link counts as part of the total.
A road bike has a 420 mm chainstay, a 50 tooth chainring and a 17 tooth cog, with the standard 1 inch allowance. All steps below use the unrounded values; displayed figures are rounded as shown.
Chainstay in inches = 420 / 25.4 = 16.54 in.
Exact chain length = 2 x 16.54 + 50 / 4 + 17 / 4 + 1 = 33.07 + 12.50 + 4.25 + 1 = 50.82 in.
Exact chain length in centimetres = 50.82 x 2.54 = 129.09 cm.
Raw links = 50.82 x 2 = 101.64 links.
Chain links = 101.64 rounded up to the next even number = 102 links.
Finished length = 102 x 0.5 = 51.00 in, which is 129.54 cm.
Gear ratio = 50 / 17 = 2.94 to 1.
So the chain is cut to 102 links, 51.00 inches long. The 0.18 inches of extra length over the exact 50.82 inches is the rounding-up slack, and the derailleur takes it up.
At the test case (430 mm chainstay, 52 tooth chainring, 34 tooth cog, standard allowance): chainstay = 430 / 25.4 = 16.93 in. Exact length = 2 x 16.93 + 52 / 4 + 34 / 4 + 1 = 33.86 + 13.00 + 8.50 + 1 = 56.36 in. Raw links = 56.36 x 2 = 112.72 links, rounded up to 114 links. Finished length = 114 x 0.5 = 57.00 in, which is 144.78 cm. Gear ratio = 52 / 34 = 1.53 to 1.
At the Park Tool example (16 and 3/8 inch chainstay, 42 tooth chainring, 32 tooth cog): exact length = 2 x 16.375 + 42 / 4 + 32 / 4 + 1 = 32.75 + 10.50 + 8.00 + 1 = 52.25 in. Raw links = 104.50, rounded up to 106 links. Park Tool’s own nearest-inch rounding gives 52 in, or 104 links, so this calculator returns two links more than the old Park Tool figure on this example. That is the rounding-up rule at work, and it is the safe side: the chain is never short.
Always the largest chainring and the largest rear cog. The chain must be long enough for the big-big combination, because a rider can shift into it by mistake and a chain that cannot reach it will jam the derailleur or break something. The derailleur takes up the slack in every smaller combination, so sizing for the biggest pair covers all the rest. Sizing for your usual gears would give a shorter chain that fits the gears you use and fails on the one you do not.
Because a chain only closes inner link to outer link, so the count must be even, and because rounding down risks a chain that is too short. The older Park Tool wording rounded the inch figure to the nearest whole inch, which on some measurements gives a shorter chain than this calculator: at the Park Tool example of a 16 and 3/8 inch chainstay with a 42 tooth ring and a 32 tooth cog, nearest-inch rounding gives 104 links and this calculator gives 106. Two links of extra slack is absorbed by the derailleur; two links short can jam it. Rounding up is the safe side, and it is the rule most workshops and modern calculators use.
Because the largest cog is much bigger, so more chain is wrapped round it, and because a dedicated 1x derailleur has a longer cage that needs more slack to move through its range. Park Tool adds two inches instead of one for a 1x system with a largest cog of 42 teeth or larger. On a standard drivetrain with a largest cog of 36 teeth or smaller, one inch is enough. The calculator lets you choose the allowance, and the comparison tab shows what the 2 inch allowance does to your link count.
Measure from the centre of the bottom bracket shell to the centre of the rear axle, in millimetres, with a ruler or tape. On most frames the figure is stamped in the geometry chart: road bikes are usually 405 to 430 mm, gravel bikes 420 to 445 mm, and mountain bikes 430 to 450 mm or more. If you measure on the bike, measure to the centre of the axle, not to the end of the dropout. A 10 mm error in the chainstay changes the exact length by about 0.79 inches, which is roughly a link and a half, so measure carefully.
Only if the old chain was the right length and nothing else changed. Lay the old chain beside the new one, line up outer plates with outer plates or inner plates with inner plates, and match rivet by rivet, remembering that a worn chain measures longer than it did when new because the pins and bushings wear. If you changed the chainring, the cassette, or the frame, the old count no longer applies and you should work it out from the measurements. Park Tool’s own advice is to verify the old chain first by shifting into the big-big combination and checking for two slight bends at the derailleur pulleys: if the old chain fails that check, do not copy it.
This calculator works out bicycle chain length from the chainstay length and the tooth counts of the largest chainring and largest rear cog, using the Park Tool and Sheldon Brown equation method: twice the chainstay in inches, plus a quarter of each tooth count, plus a derailleur allowance of 1 inch, or 2 inches for a dedicated 1x system with a largest cog of 42 teeth or larger. The link count is rounded up to the next even number, because a chain only closes inner link to outer link. The result is an estimate for a derailleur bike with a standard chain of one-half inch pitch. It does not cover single-speed, fixed-gear, or internally geared bikes, full-suspension bikes with chain growth through the travel, or drivetrains where the manufacturer publishes its own sizing rule, such as Campagnolo and some SRAM 1x systems: where the manufacturer gives a rule, follow it. Always confirm the length on the bike with the physical big-big method before cutting, and check the derailleur position in the largest and smallest combinations after fitting. If the chain is too short to reach the big-big combination, do not ride it.
ADVERTISEMENT
Last updated: 25 November 2026
ADVERTISEMENT