Chain Length Calculator

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.

Chain and Gearing

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.

102 links Exact length 50.82 in (129.09 cm) Chainstay 420 mm Chainring 50T Rear cog 17T
Chain length
Chainstay Length
Exact Chain Length
Exact Chain Length (cm)
Chain Links (cut to this)
Finished Length
Finished Length (cm)
Gearing
Gear Ratio (big-big)
Derailleur Allowance
Note: the link count is always rounded UP to an even number, because a chain only joins inner link to outer link. Rounding down could leave the chain too short for the big-big combination. Always confirm on the bike: wrap the chain round the largest chainring and largest cog without the derailleur, then add one full link (two rivets, one inch) before cutting.
ScenarioExact Length (in)LinksFinished 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.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

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.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

What is a Chain Length Calculator?

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.

How to Use the Chain Length Calculator

  1. Measure the chainstay from the centre of the bottom bracket to the centre of the rear axle, and enter it in millimetres. Most road and gravel bikes fall between 400 and 440 mm.
  2. Count the teeth on the largest chainring and enter the number, then count the teeth on the largest rear cog and enter that number.
  3. Leave the derailleur allowance on Standard (+1 inch) unless you ride a dedicated 1x system with a largest cog of 42 teeth or larger, in which case choose the 1x wide-range allowance (+2 inches), following Park Tool.
  4. Click Calculate, or just type: the results update as you enter the numbers. The diagram is a side view of the drivetrain, and the picture moves with your inputs: the chainring grows with its tooth count and the rear cog grows with its own, the distance between them lengthens with the chainstay, and the link dots along the top run multiply as the link count rises, so every input changes the picture, not just the labels.
  5. Read the Summary tab for the exact chain length in inches and centimetres, the link count to cut to, the finished length after rounding, and the big-big gear ratio.
  6. Open the Compare Scenarios tab to see what the length becomes with a 20 mm longer chainstay, 4 more chainring teeth, 4 more cog teeth, or the 1x wide-range allowance, each with the change in links.
  7. Confirm the answer on the bike before cutting: wrap the new chain round the largest chainring and largest cog without threading it through the derailleur, find the nearest rivet where the ends could join, then add one full link (two rivets, one inch) and cut there.

Chain Length Calculator Formula

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.

Worked Example

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.

Benefits of Using a Chain Length Calculator

  • Gives the link count to cut to, not just an inch figure, so you can count links off a new chain on the bench.
  • Rounds UP to an even link count, so the chain always closes inner to outer and is never a link short of the big-big combination.
  • Takes millimetres, the unit most frames are measured in, and converts to inches inside the formula, so no manual conversion is needed.
  • Handles the 1x wide-range case with Park Tool’s 2 inch allowance for a largest cog of 42 teeth or larger, instead of applying the standard inch to every drivetrain.
  • Shows the exact length beside the finished length, so you can see how much of the answer is rounding and how much is measurement.
  • Compares what-if scenarios side by side: a longer chainstay, a bigger chainring, a bigger cog, or the wide-range allowance, each with the change in links.
  • Refuses impossible inputs instead of calculating nonsense: a chainstay outside 300 to 600 mm, a chainring outside 20 to 80 teeth, or a cog outside 9 to 60 teeth all produce a clear error message.
  • Free and instant: no sign-up, no download, and the results and diagram update as you type.

Frequently Asked Questions

Should I use the largest chainring and largest cog, or the ones I ride in most?

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.

Why does the calculator round up to an even number of links instead of to the nearest inch?

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.

Why does a 1x bike with a big cassette need a longer chain?

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.

How do I measure the chainstay length?

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.

Can I just copy the link count from my old chain?

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.

Calculator Sources

  • Park Tool: Chain Length Sizing — the largest chainring and largest cog method, two rivets added for cogs of 36 teeth or smaller and four rivets for a 1x system with a cog of 42 teeth or larger, and the equation method in the archived version.
  • Sheldon Brown: Derailer Adjustment — the big-big method with one complete link of overlap, and the note that SRAM 1x systems need two extra complete links.
  • Park Tool: Chain Compatibility — the one-half inch pitch standard for modern bicycle chains, from rivet to rivet.

Disclaimer

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