Physics & Chemistry
Roller Chain Length Calculator (Links and Centre Distance)
Roller chains transmit power between sprockets in bicycles, motorcycles, conveyors, agricultural machinery and industrial drives. When building or repairing a drive, you need to know how many links the chain should have. The answer depends on the chain pitch, the number of teeth on each sprocket and the distance between the shaft centres. This calculator uses the standard chain length formula from ANSI and ISO practice, gives the exact length in pitches and rounds it up to the next even number of links so a standard connecting link can be used, together with the chain length in millimetres and the drive's speed ratio.
How to use this calculator
- Choose the chain pitch: for example 12.7 mm (1/2 inch) for ANSI 40, ISO 08B and bicycle chain.
- Enter the number of teeth on the small and large sprockets.
- Enter the centre distance between the two shafts in millimetres.
- Read the number of links needed, rounded up to an even number.
- Adjust the centre distance or add a tensioner to take up the extra slack from rounding.
Understanding the formula
The first term counts the pitches along the two straight spans between the sprockets, and the second counts those wrapped around half of each sprocket. The third term is a correction for unequal sprockets: when one sprocket is larger, the chain wraps further round it and the straight spans are angled, which adds a little length.
The formula is accurate for normal drives with a centre distance of roughly 30–80 pitches. For very short centres or extreme ratios, check the result against the manufacturer's tables or by fitting the chain.
Choosing centre distance and slack
Most chain manufacturers recommend a centre distance of about 30–50 times the pitch, and a wrap of at least 120 degrees on the small sprocket. Too short a centre distance concentrates wear on fewer teeth; too long a distance makes the chain whip and sag.
Because the chain must have a whole, even number of links, it will rarely match the centre distance exactly. Drives normally have a way to adjust the shaft position, such as slotted motor mounts or an eccentric bottom bracket, or use an idler sprocket. A slack-side sag of about 2–4 % of the span is typical.
Formula & method
Chain length in pitches L = 2C ÷ p + (N₁ + N₂) ÷ 2 + p (N₂ − N₁)² ÷ (4π² C)Round up to the next even number of links to avoid an offset linkChain length = links × pitchRecommended centre distance is about 30–50 pitchesChain length in pitches: L = 2C ÷ p + (N₁ + N₂) ÷ 2 + p (N₂ − N₁)² ÷ (4π² C), where C is the centre distance, p the pitch and N₁, N₂ the tooth counts. Round up to the next even whole number. Chain length = links × pitch. Speed ratio = N₂ ÷ N₁.
Worked example
Example: 17- and 51-tooth sprockets, 500 mm apart, 1/2-inch chain
- 2 × 500 ÷ 12.7 = 78.740; (17 + 51) ÷ 2 = 34.
- 12.7 × (51 − 17)² ÷ (4π² × 500) = 12.7 × 1,156 ÷ 19,739 ≈ 0.744.
- Total ≈ 113.484 pitches, rounded up to 114 links, a chain length of 1,447.8 mm.
Answer: Use a 114-link chain; the ratio is 3 : 1.
Frequently asked questions
Why must the number of links be even?
Roller chain alternates inner and outer links. An even number allows the ends to be joined with a standard connecting link; an odd number needs an offset link, which is weaker.
What pitch is my chain?
Measure the distance between the centres of adjacent pins. Common pitches are 6.35 mm (1/4 in), 9.525 mm (3/8 in), 12.7 mm (1/2 in), 15.875 mm (5/8 in), 19.05 mm (3/4 in) and 25.4 mm (1 in).
Can I use this for bicycle chains?
Yes, bicycle chain has a 12.7 mm pitch. With derailleur gears, chain length also depends on the largest sprockets and the derailleur capacity, so follow the manufacturer's sizing method.
How do I find the speed ratio?
Divide the teeth on the driven sprocket by the teeth on the driving sprocket. A 17-tooth driver and 51-tooth driven sprocket give a 3 : 1 reduction.
What is a good number of teeth for the small sprocket?
At least 17 teeth is recommended for smooth running at moderate to high speeds, because fewer teeth increase vibration and wear from chordal action.
When should I replace a chain?
When it has stretched by about 1–1.5 % of its length through wear, measured over a number of links, or when it skips on the sprockets.