bike chain calculator

Bike Chain Length Calculator

Use this tool to estimate the correct chain length for derailleur bikes, single-speed, BMX, and fixed-gear setups.

What this bike chain calculator does

This calculator gives you a practical starting point for chain sizing before you cut a new chain. A chain that is too short can damage your derailleur or hanger. A chain that is too long can shift poorly and feel sloppy. The goal is a safe, efficient length based on your bike geometry and gearing.

You enter your chainstay length, your largest front chainring tooth count, and your largest rear cog tooth count. Then the tool uses a formula matched to your drivetrain style and returns a recommended chain length in links, inches, and centimeters.

Inputs explained

1) Chainstay length

Chainstay length is the distance from the bottom bracket axle to the rear axle. Most modern bikes land somewhere between about 390 mm and 450 mm, but cargo and specialty bikes can be outside that range.

2) Largest front chainring

On derailleur bikes, always size using the biggest chainring, not your most-used chainring. This prevents accidental over-tension when cross-chaining into big-big combinations.

3) Largest rear cog

Same logic: use the largest rear sprocket. Even if you rarely ride there, your chain must be long enough to safely reach this gear without overstretching your derailleur.

4) Drivetrain type

  • Derailleur: Uses a conservative sizing formula similar to common workshop methods.
  • Single-speed / fixed: Uses the classic chain-length engineering equation based on center distance and sprocket sizes.

Formulas used

Derailleur bike formula

L (inches) = 2C + (F/4 + R/4 + 1)
where C is chainstay in inches, F is largest chainring teeth, and R is largest rear cog teeth.

The result is rounded up to the next whole inch, then converted to links (2 links per inch because chain pitch is 1/2 inch).

Single-speed / fixed formula

L (links) = 2m + (F + R)/2 + ((F - R)2 / (4π2m))
where m = center distance / pitch, and pitch is 0.5 inch.

The result is rounded up so the chain is not too short. If half-link use is disabled, the output is rounded up to the next even link count.

How to measure chainstay length quickly

  • Shift to a middle rear cog (if you have gears) to reduce derailleur tension while measuring.
  • Use a tape measure from the center of bottom bracket to center of rear axle.
  • Take two readings and average them for better accuracy.
  • If you only know frame geometry data, manufacturer specs are usually accurate enough for first-pass sizing.

After calculating: real-world chain setup checklist

  • Install chain and route correctly through jockey wheels.
  • For derailleur bikes, verify the big-big combo does not overextend the derailleur.
  • Check smallest gear combo for excessive slack.
  • On single-speed/fixed, set wheel position and chain tension with a slight amount of vertical play.
  • Rotate cranks one full turn and re-check tension—tight spots are common on single-speed drivetrains.

Common mistakes to avoid

  • Using current worn chain length as your only reference.
  • Sizing from a small chainring instead of the largest chainring.
  • Forgetting that many chains must use even link counts unless using a half-link solution.
  • Cutting first, testing later. Always dry-fit and verify before final riveting or quick-link closure.

Bottom line

A calculator is the best way to start, not the last step. Use the number from this tool to cut close, then verify on the bike under full gear range and proper tension. That extra 5 minutes can save a derailleur, improve shifting, and keep your drivetrain quiet and efficient.

🔗 Related Calculators