Sparrow Tools › Guides
How to calculate roller chain length in links
Short answer: For a two-sprocket drive, estimate individual pitches with L ≈ 2C/p + (N1 + N2)/2 + p(N2 − N1)²/(4π²C). Here p is chain pitch, C is center distance in the same unit, and N1 and N2 are sprocket tooth counts. Our length mode rounds upward to an even link count, then estimates the corresponding center distance.
Count pitches, not pairs
In this guide a link means one pitch between adjacent pin centers. It does not mean a pair of inner and outer links. Once you have the selected link count, physical chain length is links × pitch. A chain with 110 pitches at 12.7 mm pitch is therefore 1397 mm long.
Start with the pitch specified for your chain, both sprocket tooth counts and the intended shaft spacing. Measure spacing between shaft centers, not tooth tips. The pitch and center distance must use the same unit in the formula. The calculator accepts millimeters or inches and converts its geometry to millimeters internally.
Read the approximation correctly
Tsubaki's drive-chain selection page expresses center distance in numbers of pitches. The formula above substitutes C/p because C here is a physical length. The calculator uses full π rather than the rounded constant in the source. This is still the standard link-count approximation, not an exact simulation of every articulated link.
The first term accounts for the two spans between sprockets. The second accounts for the tooth counts, and the final correction accounts for the difference between them. When tooth counts are equal at N, the final term vanishes and the approximation becomes L ≈ 2C/p + N. Do not omit the correction merely because a first estimate looks close.
Worked example: unequal sprockets
Assume p = 12.7 mm, N1 = 20, N2 = 40 and C = 500 mm. These are illustrative design inputs, not a recommended drive. The pure function gives 108.997513 pitches before rounding. Length mode chooses 110 links and therefore 1397 mm of chain.
| Output | Calculated value |
|---|---|
| Approximate pitches at target spacing | 108.997513 |
| Selected even links | 110 |
| Selected physical length | 1397 mm |
| Geometric center estimate | 505.998430 mm |
| Change from target spacing | +5.998430 mm |
If the driver input is also 600 rpm, the code reports 300 rpm at the driven sprocket and a mean chain speed of 2.54 m/s. These follow from tooth ratio and pitch travel; they are not a power or load rating. Confirm that the layout can accommodate the revised spacing before choosing a length.
Why the center estimate is a separate calculation
The calculator derives pitch-circle diameter as D = p / sin(π/N). It then sums tangent spans and wrapped arcs around the two circles and solves for a path length equal to links × p. A real chain travels in chords between teeth, so an exact smooth-circle calculation remains a geometric estimate for the actual chain drive.
For equal 20-tooth sprockets, p = 12.7 mm and target C = 508 mm, the approximation gives exactly 100 links, or 1270 mm. The smooth-circle center solver returns 507.476226 mm. This difference is expected from the two models. It is not a reason to label the original approximation or the numerical solver an exact installation rule.
Even links, odd links and chain sizes
Tsubaki says odd link counts need an offset link and recommends changing teeth or center distance to obtain an even count where possible. Our length mode rounds upward to an even number. Center mode can accept an odd count, but that input does not establish that an appropriate offset link exists or has the required rating.
D.I.D's table lists 420 and 428 chains at 12.7 mm pitch, and 520, 525 and 530 chains at 15.875 mm pitch. Matching pitch is only one dimension. The table also distinguishes other dimensions and products. A pitch preset in this calculator is not a compatibility check for chain width, joining link or sprocket fit.
Use the result for the right layout
Use these calculations for the two-sprocket route described here. They do not model derailleur routing, suspension motion or additional idlers. Follow the relevant equipment and chain instructions for those configurations. Keep the proposed link count, assumed center distance and available adjustment together when reviewing the result.
Try it with your own inputs
Enter your measured inputs and check the units and assumptions before using the result. The examples above can be reproduced in the calculator; your own inputs will change the estimate.
Try it: Chain Length Calculator →
FAQ
What does one link mean here?
One link is one pitch between adjacent pin centers. A 110-link chain at 12.7 mm pitch has a nominal length of 1397 mm.
Why does the calculator choose even links?
Tsubaki advises avoiding odd counts where possible because an odd count requires an offset link. Length mode rounds upward to an even count.
Is the calculated center distance exact for real chain?
It is an estimate based on smooth pitch circles. A real roller chain follows chords between sprocket teeth.
Does the pitch preset prove compatibility?
No. Chain width, sprockets, joining links and product ratings still need to match.
Sources
- Tsubaki: drive chain selection formulas and odd-link guidance
- D.I.D: chain pitch and dimension table
- Sparrow Tools chain.js: approximation, rounding and geometry
Calculation examples checked against the linked source code on 22 October 2026. Example inputs are identified in the text; they are not universal product specifications or recommended rates.