Chain Length Calculator

Calculate the exact chain length your bicycle needs by entering your chainring teeth (front), sprocket teeth (rear), and chainstay length. Get back the chain length in inches, the number of links required, and a visual breakdown of the calculation — no reference chain needed.

teeth

Number of teeth on your front chainring (largest if multiple)

teeth

Number of teeth on your largest rear sprocket/cog

inches

Distance from the bottom bracket center to the rear axle center (in inches)

Standard bicycle chains use 1/2 inch pitch

The accurate formula uses trigonometry for a more precise result

Results

Number of Links Required

--

Chain Length

--

Chain Length (cm)

--

Chainstay Length Used

--

Chain Length Components (inches)

Frequently Asked Questions

Why is bicycle chain length significant?

A correctly sized chain ensures smooth gear shifting, prevents chain drops, and protects your drivetrain components. A chain that is too short can damage your derailleur or prevent you from using larger gear combinations, while a chain that is too long will sag, skip, and shift poorly.

What size bike chain do I need?

The correct chain size depends on your drivetrain's speed rating (e.g. 8-speed, 10-speed, 12-speed), which determines the chain width. For length, you need to know your front chainring tooth count, largest rear sprocket tooth count, and your frame's chainstay length. This calculator uses those three values to find the right length.

How do I measure my bike's chainstay length?

The chainstay length is the distance from the center of the bottom bracket axle to the center of the rear wheel axle. You can measure this with a tape measure or ruler along the chainstay tube. Most road bikes have a chainstay between 15 and 17 inches; mountain bikes tend to be slightly longer.

How does the chain length formula work?

The simple formula is L = 2 × C + F/4 + R/4 + 1, where C is the chainstay length in inches, F is the number of front chainring teeth, and R is the number of rear sprocket teeth. The accurate (trigonometric) formula is L = 2 × √(C² + (0.0796 × (F − R))²) + (F + R) / 4, which accounts for the vertical offset between differently-sized sprockets.

What's the chain length for a 15" chainstay, 40 front teeth, and 30 rear teeth?

Using the simple formula: L = 2 × 15 + 40/4 + 30/4 + 1 = 30 + 10 + 7.5 + 1 = 48.5 inches. Dividing by the 0.5-inch link pitch gives 97 links. You would round up to the nearest even number, so 98 links.

Can I shorten a bike chain that's too long?

Yes. Bicycle chains can be shortened by removing links using a chain tool (also called a chain breaker). Always aim to remove the minimum number of links necessary, and if possible remove an even number of links to maintain the chain's pin-and-socket alternating pattern.

Does chain length affect gear shifting?

Absolutely. A chain that is too long will have excess slack and can cause poor shifting, chain slap, and dropped chains. A chain that is too short puts excessive tension on the rear derailleur, preventing you from using the largest sprocket and potentially bending or snapping the derailleur hanger.

Should the number of chain links be odd or even?

In most cases, the number of links should be even, because standard chains alternate between inner and outer link plates, requiring a matching inner-outer connection at the master link. Some specialty master links allow odd-link chains, but an even count is the standard recommendation.

More Health & Fitness Tools