Chain Length Calculator (Roller Chain & Sprocket)

Santaji Gadepatil
B.E. (Electronics & Telecommunication) · Founder & Editor
Connect on LinkedIn
Share
Published
Last updated
Read time
7 min
Chain Length Calculator (Roller Chain & Sprocket): formula and free online calculator

A roller chain drive is set by three things: the chain pitch, the tooth count of each sprocket and the distance between the shaft centres. This chain length calculator gives the length in pitches, rounds it up to an even number of links and finds the exact centre distance that chain needs.

Maintenance fitters use it to order replacement chain and set the motor base, and machine designers use it to check speed ratio, chain speed and sprocket diameters.

rpm
pitches
calculated
links
calculated
calculated
calculated
calculated
rpm
calculated
calculated
calculated
calculated
Type in any field to change it. Press × on a value to calculate that field instead.

How to use the chain length calculator

Enter the chain pitch, the number of teeth on the driving and driven sprockets and the planned centre distance between the shafts. The calculator gives the chain length in pitches, the length rounded up to an even number of links, the chain length in mm or inches and the exact centre distance that whole chain needs (so you know how far to set the shafts or the tensioner). Enter the driving speed to get the driven speed and the chain speed; the sprocket pitch diameters are given as well.

Chain length formula

Lp = 2C ÷ p + (N1 + N2) ÷ 2 + [(N2 − N1) ÷ 2π]² × p ÷ C

C = (p ÷ 4) × [L − (N1 + N2) ÷ 2 + √( (L − (N1 + N2) ÷ 2)² − 8 [(N2 − N1) ÷ 2π]² )]

v = N1 p n1 ÷ 60  ·  n2 = n1 N1 ÷ N2  ·  Dp = p ÷ sin(180° ÷ N)

The second formula is the first one solved for the centre distance, used once the chain length has been rounded to whole links.

Worked example

An ANSI 40 (12.7 mm pitch) chain drive with a 17-tooth driving sprocket at 500 rpm and a 34-tooth driven sprocket, shafts 500 mm apart:

  • Chain length = 2 × 500 ÷ 12.7 + (17 + 34) ÷ 2 + [(34 − 17) ÷ 2π]² × 12.7 ÷ 500 = 78.740 + 25.5 + 0.186 = 104.43 pitches
  • Rounded up to an even number: 106 links, a chain 1,346.2 mm long
  • With 106 links the centre distance becomes 510.0 mm — set the shafts there or take up the slack with a tensioner
  • Speed ratio = 34 ÷ 17 = 2, so the driven sprocket turns at 250 rpm
  • Chain speed = 17 × 0.0127 × 500 ÷ 60 = 1.799 m/s
  • Pitch diameters: 69.12 mm and 137.64 mm

Sprocket pitch diameter (mm)

Chain Pitch 9 T 12 T 15 T 17 T 19 T 21 T 25 T
ANSI 25 / 04C 6.35 mm (0.25 in) 18.6 24.5 30.5 34.6 38.6 42.6 50.7
ANSI 35 / 06C 9.525 mm (0.375 in) 27.8 36.8 45.8 51.8 57.9 63.9 76.0
ANSI 40 / 08A 12.7 mm (0.5 in) 37.1 49.1 61.1 69.1 77.2 85.2 101.3
ANSI 50 / 10A 15.875 mm (0.625 in) 46.4 61.3 76.4 86.4 96.4 106.5 126.7
ANSI 60 / 12A 19.05 mm (0.75 in) 55.7 73.6 91.6 103.7 115.7 127.8 152.0
ANSI 80 / 16A 25.4 mm (1 in) 74.3 98.1 122.2 138.2 154.3 170.4 202.7
ANSI 100 / 20A 31.75 mm (1.25 in) 92.8 122.7 152.7 172.8 192.9 213.0 253.3
ANSI 120 / 24A 38.1 mm (1.5 in) 111.4 147.2 183.3 207.3 231.5 255.6 304.0

Chain length against centre distance

17-tooth and 34-tooth sprockets, centre distance in pitches (multiply by the pitch for mm):

Centre distance Exact length (pitches) Links to use Centre distance for those links
30 pitches 85.74 86 30.13 pitches
40 pitches 105.68 106 40.16 pitches
50 pitches 125.65 126 50.18 pitches
60 pitches 145.62 146 60.19 pitches
80 pitches 185.59 186 80.20 pitches

Practical notes

  • Sprocket size: small sprockets cause chordal speed variation and faster wear — 17 teeth or more is usual for moderate and high speeds, and an odd tooth count on the small sprocket with an even number of links spreads the wear.
  • Slack: allow about 2% of the centre distance as sag on the slack side of a horizontal drive, and provide adjustment of at least two pitches for chain wear.
  • Lubrication: chain speed and pitch decide whether manual, drip, bath or forced lubrication is needed — check the manufacturer’s power rating tables, which also give the kW capacity of each chain size.
  • Wear: a roller chain is normally replaced when it has stretched by about 1.5–3% of its length; measure over several pitches with the chain under tension.
  • To check shaft speeds and torque for a drive, use the gear ratio calculator or the torque, power and speed calculator.

Second example: a reduction drive from a motor

An ANSI 50 chain (15.875 mm pitch) takes a 960 rpm motor down through a 19-tooth sprocket to a 57-tooth sprocket, with the shafts planned at 640 mm:

  • Exact length = 2 × 640 ÷ 15.875 + (19 + 57) ÷ 2 + [(57 − 19) ÷ 2π]² × 15.875 ÷ 640 = 119.54 pitches
  • Order 120 links, a chain 1,905.0 mm long
  • The shafts must then sit at 643.7 mm, 3.7 mm further apart than planned, so the motor base needs at least that much slot travel
  • Ratio 3:1, driven speed 320 rpm, chain speed 4.83 m/s
  • Pitch diameters 96.4 mm and 288.2 mm, giving about 163° of wrap on the small sprocket, comfortably above the 120° minimum

At 4.8 m/s an ANSI 50 chain is past the range where hand oiling is enough; most makers ask for drip or oil bath lubrication at this speed.

Measuring chain wear in the field

Chain stretch comes from wear of the pins and bushes, not from the plates stretching. Lay the chain flat under light tension and measure across 12 pitches from the centre of one pin to the centre of the pin 12 pitches away. For ANSI 40 the new length is 152.4 mm:

Elongation Length over 12 pitches In inches
0.0% 152.4 mm 6.000 in
1.0% 153.9 mm 6.060 in
1.5% 154.7 mm 6.090 in
2.0% 155.4 mm 6.120 in
3.0% 157.0 mm 6.180 in

Replace the chain at about 1.5% on drives with large sprockets or timing duty and at 3% on slow, general drives. The 106-link chain in the default example grows by about 20 mm at 1.5% wear, which is most of the adjustment a normal tensioner offers. Replace worn sprockets with the chain, because hooked teeth wear a new chain out quickly.

Common mistakes

  • Rounding the link count down. A chain shorter than the calculated length cannot be fitted at the planned centres; always round up to the next even number and move the shaft.
  • Counting rollers instead of pitches. A 106-link chain has 106 pitches including the connecting link; counting rollers on an open length is easy to get wrong by one.
  • Measuring a slack chain for wear. Without tension the joints sit at random in their clearances and the reading means little.
  • Mixing ANSI and ISO chain. ANSI 40 and ISO 08B are both 12.7 mm pitch, but the roller diameter and inner width differ, so they do not run well on each other’s sprockets.
  • Ignoring tooth counts below 17 at speed. A 12-tooth sprocket at high speed gives noticeable chordal speed variation, vibration and short chain life.

Frequently asked questions

How do you calculate roller chain length?

In pitches, L = 2C ÷ p + (N₁ + N₂) ÷ 2 + [(N₂ − N₁) ÷ 2π]² × p ÷ C, where C is the centre distance, p the pitch and N₁ and N₂ the tooth counts. Round the result up to the next even whole number of links and multiply by the pitch for the length. For 17 and 34 teeth on ANSI 40 chain at 500 mm centres, L = 104.43 pitches, so use 106 links.

Why should a chain have an even number of links?

A chain with an odd number of pitches needs an offset (cranked) link to join it, which is weaker than standard links — often derated by about 20–35%. Choosing an even number of links and adjusting the centre distance or using a tensioner avoids it.

How do you find the pitch diameter of a sprocket?

Pitch diameter = p ÷ sin(180° ÷ N). A 17-tooth sprocket for 12.7 mm (ANSI 40) chain has a pitch diameter of 12.7 ÷ sin(10.59°) = 69.1 mm. The outside diameter is a little larger and depends on the tooth form.

What centre distance is best for a chain drive?

Manufacturers usually recommend 30–50 pitches, with a maximum of about 80 pitches without a guide or idler. The chain should wrap at least 120° around the small sprocket, which is easier with ratios below about 7:1.

How do I measure a roller chain for wear?

Measure across 12 pitches under light tension, pin centre to pin centre. New ANSI 40 measures 152.4 mm; replace it at about 154.7 mm (1.5%) for precise drives or 157.0 mm (3%) for slow, general drives.

How far must I move the motor after fitting a new chain?

Set the shafts to the exact centre distance for the rounded link count. In the ANSI 50 example the planned 640 mm becomes 643.7 mm for 120 links, a 3.7 mm move.

Free widget

Put this calculator on your website

Copy one snippet. It resizes itself and works on any site or blog.

<iframe src="https://zentacalculator.com/embed/engineering/chain-length/" title="Chain Length Calculator (Roller Chain & Sprocket)" width="100%" height="640" style="border:1px solid #e2e5ee;border-radius:12px;max-width:720px" loading="lazy"></iframe>
<p style="font-size:13px"><a href="https://zentacalculator.com/engineering/chain-length/">Chain Length Calculator (Roller Chain & Sprocket)</a> by <a href="https://zentacalculator.com/">Zenta Calculator</a></p>
<script>addEventListener('message',function(e){if(e.origin==='https://zentacalculator.com'&&e.data&&e.data.zentaHeight){document.querySelectorAll('iframe[src="https://zentacalculator.com/embed/engineering/chain-length/"]').forEach(function(f){if(f.contentWindow===e.source)f.style.height=e.data.zentaHeight+'px'})}})</script>
Why Zenta Calculator

From formula to answer in seconds

One clear path from the numbers you have to a result you can use, for students, engineers and everyday users.

  1. 01

    Enter what you know

    Type any values you have, in the units you use. Leave the unknown blank and the calculator solves for it.

  2. 02

    See the formula and steps

    Every result shows the equation, a worked example and a chart, so you understand the answer and not just the number.

  3. 03

    Get answers you can trust

    Formulas follow published standards and textbooks, and every worked example is checked before a page goes live.