ThisCalculator

Everyday

Chain Length Calculator: How to Find the Right Size

Updated · Standard formula, shown below

Chain length 55 links
Chain length
55.5 inches
Result
Chainstay length
425 mm
You entered
Largest chainring teeth
50
You entered

Chain Length Calculator: How to Find the Right Size

A chain length calculator works out how many links (or how long) a chain needs to be for a given setup, whether it’s a bicycle drivetrain, a chainsaw bar, or an industrial conveyor. You enter the relevant measurements—like chainstay length, largest chainring and cassette teeth, or bar length and pitch—and it returns the required number of links or the chain length in inches or millimeters. This article explains the math behind the most common chain length calculations, how to use the results, and what to watch out for.

Formula

The most widely used formula for bicycle chain length (in links) is:

Chain length (links) = (2 × chainstay length in inches) + (largest chainring teeth / 4) + (largest cassette teeth / 4) + 1

Where:

  • Chainstay length (a) is the distance from the center of the bottom bracket to the center of the rear axle, measured in millimeters (convert to inches by dividing by 25.4).
  • Largest chainring teeth (b) is the number of teeth on the biggest front gear.
  • Largest cassette sprocket teeth (c) is the number of teeth on the biggest rear gear.
  • The +1 accounts for the derailleur cage and the extra slack needed for shifting. For a single-speed or fixed-gear bike, you might omit the +1 or use +0.5.

This formula assumes a standard rear derailleur setup. For bikes with very long cages or unusual geometry, the result may need a link added or removed. Always double-check by wrapping the chain around the largest chainring and largest cassette sprocket without threading it through the derailleur—the chain should overlap by one link (inner plate to inner plate) for a typical setup.

Worked Example

Using the default values from the calculator:

  • Chainstay length = 425 mm
  • Largest chainring = 50 teeth
  • Largest cassette sprocket = 34 teeth

First, convert the chainstay to inches: 425 / 25.4 = 16.732 inches

Now apply the formula:

Chain length = (2 × 16.732) + (50 / 4) + (34 / 4) + 1

Chain length = 33.464 + 12.5 + 8.5 + 1 = 55.464 links

Since you can’t have a fraction of a link, you round to the nearest whole number: 55 links. The calculator shows 55 links (rounded to 0 decimals). The inch result is 55.5 inches, which is the same number of links because one link is exactly one inch in a standard chain (half-inch pitch).

When to Use This Calculator

This calculator is primarily for bicycles with derailleur gears. You would use it when:

  • You are replacing a worn or broken chain and don’t have the old one to count.
  • You are changing to a larger chainring or cassette and need to know if the existing chain is long enough.
  • You are building a bike from scratch and need to order the correct chain length.

For single-speed, fixed-gear, or BMX bikes, the formula is slightly different because there is no derailleur to take up slack. In those cases, you typically wrap the chain around the largest chainring and the rear sprocket, pull tight, and add one link for the master link or connecting pin. The calculator’s +1 is a reasonable starting point, but you should always verify physically.

How to Read the Result

The result is the number of links in the chain. A standard bicycle chain has a pitch of 0.5 inches (12.7 mm), so the number of links is also the length in inches (since each link is one inch of length). For example, a 55-link chain is 55 inches long. If you need the length in centimeters, multiply the number of links by 2.54 (since 1 inch = 2.54 cm). So 55 links = 55 × 2.54 = 139.7 cm.

When you install the chain, you should have a small amount of sag on the lower run (about 1–2 cm of vertical play) when the bike is in the smallest chainring and smallest sprocket. If the chain is too tight, it can damage the drivetrain; too loose, and it may drop off.

Common Mistakes and Misconceptions

One common mistake is mixing units. The formula requires the chainstay length in inches, but many people measure in millimeters. Always convert before plugging in the numbers.

Another mistake is forgetting to account for the derailleur cage. The +1 in the formula is a rule of thumb, but some derailleurs (especially long-cage mountain bike derailleurs) may require an extra link. Conversely, a short-cage road derailleur might need one less. The formula gives a good starting point, but you should always wrap the chain around the largest gears and check the overlap.

A common misconception is that the chain length must be exactly even. In fact, chains are made of inner and outer links, and you can break them at any point, but you must use a compatible connecting link. The number of links can be odd or even; it doesn’t matter as long as the chain connects properly.

Limits of the Formula

This formula is designed for standard derailleur bikes with a single front chainring or a double/triple setup where the largest chainring and largest cassette are used together. It does not work for:

  • Bikes with internally geared hubs (where chain length is fixed and simpler).
  • Timing belts or chains on engines (they use a different calculation based on center distance and sprocket sizes).
  • Chainsaws (see the next section).

For chainsaws, the chain length is determined by the bar length and the pitch/gauge of the chain, and it’s usually specified by the number of drive links. That calculation is different and not covered by this bicycle-specific formula.

Chainsaw Chain Length: A Different Calculation

If you’re looking for a chainsaw chain length, the calculator above won’t help. Chainsaw chains are sized by the number of drive links, which depends on the guide bar length, the chain pitch (e.g., 3/8″ or .325″), and the gauge (thickness of the drive links). The number of drive links is typically stamped on the bar or listed in the saw’s manual. You can also count the drive links on an old chain. There is no simple formula involving just bar length because the bar mount and sprocket size affect the count. Always refer to the manufacturer’s specifications for your specific model.

Frequently Asked Questions

How do I measure chainstay length?

Chainstay length is the distance from the center of the bottom bracket axle to the center of the rear axle. Measure it with a ruler or caliper while the bike is assembled. If you have a full suspension bike, measure it with the suspension at the sag point (the amount it compresses when you sit on it) because the distance changes as the suspension moves.

Can I use this formula for a single-speed bike?

Yes, but you may need to adjust the +1. For a single-speed, wrap the chain around the chainring and rear sprocket, pull it tight, and then add one link for the master link. The formula gives a close estimate, but you should always check physically because there is no derailleur to take up slack.

What if my chain has a quick link or master link?

Master links are usually one link long (half-inch pitch), so they count as one link in the total. When you break the chain to size it, you can use a master link to connect the ends. Just make sure the master link is compatible with the chain’s speed (e.g., 8-speed, 9-speed, etc.).

Why does the formula use the largest chainring and largest cassette?

Because that combination requires the longest chain. If the chain is long enough to wrap around the largest front and rear gears, it will be long enough for all other gear combinations. Using smaller gears would give a shorter chain, which might be too tight when you shift into the big gears.

Should I round up or down?

Round to the nearest whole number. If the result is exactly between two numbers (e.g., 55.5), you can round up to 56 to be safe, especially if you have a long-cage derailleur. It’s better to have a chain that is one link too long than one link too short, because a too-short chain can damage the derailleur.

Does the formula work for e-bikes?

Yes, the same formula applies to e-bikes with a standard derailleur drivetrain. The motor doesn’t change the geometry. Just make sure you use the actual largest chainring and cassette teeth, and consider that e-bike chains are often stronger but the length calculation is the same.

Related

Formula used
in a | Chainstay length | mm | 425 | 0
in b | Largest chainring teeth | - | 50 | 0
in c | Largest cassette sprocket teeth | - | 34 | 0
out links | Chain length | links | (2 * a / 25.4) + (b / 4) + (c / 4) + 1 | 0
out inches | Chain length | inches | (2 * a / 25.4) + (b / 4) + (c / 4) + 1 | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.