Toolvito

Works on this device

Chain Length Calculator

Find how many links your bicycle chain needs. Enter the chainstay length and the teeth of the largest chainring and the largest rear cog. For a bike with one gear, see how far the rear axle moves with each chain length.

Enter your values

For road, gravel, mountain and hybrid bikes with a rear derailleur, also 1x drivetrains. You need the chainstay length and the teeth of the largest chainring and the largest rear cog.

Your values

From the centre of the crank axle (bottom bracket) to the centre of the rear axle. Measure it on the bike, or take it from the geometry chart of the frame.

The number is often stamped on the chainring. Otherwise count the teeth.

A standard chain can only be joined into a loop at an even number of links. A half-link chain can have any whole number of links.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose the kind of bike: Bike with a rear derailleur or Single speed, fixed gear or BMX.
  2. Measure the chainstay length: from the centre of the crank axle to the centre of the rear axle. Pick its unit.
  3. Enter the teeth of the largest chainring and the largest rear cog. On a bike with one gear, enter the chainring and the cog.
  4. Choose the kind of chain. Most chains are standard chains, which are joined at an even number of links.
  5. Choose Calculate. Check the length on the bike before you cut the chain.

The formulas

  • Chainstay formula for a bike with a rear derailleur: L = 2 × C + F ÷ 4 + R ÷ 4 + 1. L is the chain length in inches, C is the chainstay length in inches, F is the teeth on the largest chainring and R is the teeth on the largest rear cog.
  • Rounding: a standard chain is joined at a whole inch (one inner and one outer link), so L is rounded up to the next whole inch. A half-link chain is rounded up to the next half inch.
  • Links = inches × 2, because a bicycle chain has a pitch of 1/2 inch (12.7 mm).
  • Wrap of two sprockets with no slack: L = 2C ÷ p + (F + R) ÷ 2 + (R − F)² × p ÷ (4π² × C) links, with p = 12.7 mm. Its first two terms are the same as 2 × C + (F + R) ÷ 4 inches, so the chainstay formula is this wrap plus about one inch for the derailleur.
  • Big-big method: the wrap of the largest chainring and the largest cog, rounded up to a length that can be joined, plus the links your derailleur instructions give.

Worked example

A road bike has a chainstay of 410 mm, a largest chainring of 50 teeth and a largest cog of 28 teeth. 410 mm is 16.142 inches. L = 2 × 16.142 + 50 ÷ 4 + 28 ÷ 4 + 1 = 32.283 + 12.5 + 7 + 1 = 52.783 inches. Rounded up to 53 inches, that is 106 links (1346.2 mm).

A fixed gear bike with a chainring of 48 teeth, a cog of 16 teeth and a chainstay of 400 mm needs 95.82 links to fit exactly. A standard chain of 94 links puts the rear axle 11.7 mm forward. A chain of 96 links puts it 1.2 mm back, so 96 links fit with the axle a little further back in the dropouts.

Limits you should know

  • The formulas give a starting point. The instructions of your derailleur maker come first. Some makers give their own chart by chainstay length.
  • On a full-suspension bike the distance between the axles changes when the rear shock moves. Check the length with the shock compressed to where the chain is longest.
  • The tool does not check whether your derailleur can take the largest cog or the gear range.
  • A worn chain measures longer than a new one. Count links, do not measure, when you copy an old chain.
  • Motorcycle chains have other pitches. Use the Motorcycle Sprocket Calculator for them.

Related tools