Skip to content
Engineering Bible

Results appear as you type. Use the arrow keys to move through them and Enter to open one.

Popular

↑ ↓ moveEnter openEsc close

Chain and sprocket calculator (roller chain length)

Roller chain drive: ratio, output rpm, chain speed, chain length in pitches (even), actual centre distance and sprocket pitch diameters.

Units
Sprockets of 17 and 51 teeth, 503.31 mm apart: 114 links.17 T, 900 rpm51 T, 300 rpmC 503.31 mmChain 114 links, 1,447.8 mmRatio 3.000; sprockets ⌀ 69.116 mm and 206.3 mmDriven at 300 rpmTo scale; pitch diameters
Drawn for the default inputs. It redraws as you change them.

Results are estimates. They do not replace the governing code, class or flag requirements, or a check by a competent person. Report a problem

Introduction

A roller chain drive changes speed in the ratio of the sprocket tooth counts. A 17-tooth sprocket at 900 rpm driving a 51-tooth sprocket turns it at 300 rpm. The chain must have a whole number of links, and an even number avoids a weak offset link. So the chain length is rounded up, and the centre distance moves slightly to suit.

This calculator gives the ratio, the output speed and the chain speed, the chain length in pitches for the centre distance you want, the even length to buy, and the actual centre distance with that chain. It also gives the pitch diameter of each sprocket and the chordal speed variation. It is for designers and maintenance staff laying out or replacing chain drives on conveyors, machines and motorcycles.

Formulas

Sprocket pitch diameter and chain speed:

D = p / sin(180° / N)
V = N₁ p n₁

Chain length in pitches for a centre distance C (Shigley eq. 17-27):

L/p = 2C/p + (N₁ + N₂)/2 + (N₂ − N₁)² / (4π² C/p)

Centre distance for a chain of L/p pitches (eq. 17-28):

A = (N₁ + N₂)/2 − L/p
C = (p/4) [−A + √(A² − 8 ((N₂ − N₁) / (2π))²)]

Chordal speed variation:

ΔV/V = (π/N) [1/sin(180°/N) − 1/tan(180°/N)]
  • p — chain pitch; N₁, N₂ — teeth on the driver and driven sprockets
  • n₁ — driver speed; L — chain length; C — centre distance

Assumptions and limitations

  • ANSI chain numbers give the pitch in eighths of an inch: No. 40 is 1/2 in (12.7 mm), No. 60 is 3/4 in. ISO B-series chains of the same pitch use the same geometry.
  • The chain length is rounded up to an even number of pitches, so no offset link is needed.
  • The centre distance is nominal, with the chain just taut. Provide adjustment or a tensioner, because chains elongate as their joints wear.
  • Power rating, lubrication and the number of strands are not checked. Use the chain maker's rating tables.

Worked example

A No. 40 chain (12.7 mm pitch) drives from a 17-tooth sprocket at 900 rpm to a 51-tooth sprocket. The centres are to be about 500 mm.

  1. Ratio: 51 / 17 = 3, so the output turns at 300 rpm.
  2. Chain speed: 17 × 0.0127 × 900 / 60 = 3.24 m/s.
  3. C/p = 500 / 12.7 = 39.37. L/p = 78.74 + 34 + 34² / (4π² × 39.37) = 78.74 + 34 + 0.74 = 113.48.
  4. Round up to an even number: 114 pitches, 1 447.8 mm of chain.
  5. Actual centres: A = 34 − 114 = −80, C = (12.7/4) × [80 + √(80² − 8 × 5.411²)] = 503.3 mm.
  6. Pitch diameters: 12.7 / sin(10.59°) = 69.12 mm and 12.7 / sin(3.53°) = 206.30 mm.

Setting the sprocket centres at 503.3 mm fits the 114-link chain without an offset link.

Sprockets of 17 and 51 teeth, 503.31 mm apart: 114 links.
The worked example, drawn by the same code as the live drawing above.

FAQ

How do I calculate chain length?

Use L/p = 2C/p + (N₁ + N₂)/2 + (N₂ − N₁)²/(4π² C/p), then round up to an even whole number of pitches.

Why should a chain have an even number of links?

An odd number needs an offset (cranked) link, which is weaker than a standard link. An even count joins with a standard connecting link.

How many teeth should the small sprocket have?

Seventeen or more is the usual rule for smooth running. With 17 teeth the chain speed varies by 1.7 % as each link seats; with 25 teeth by 0.8 %.

What is the pitch diameter of a sprocket?

The diameter of the circle through the centres of the chain rollers when the chain is seated. It is p / sin(180°/N).

What does the chain number mean?

In ANSI sizes, the first digits give the pitch in eighths of an inch. No. 50 is 5/8 in pitch, and a suffix such as -2 means a double-strand chain.

How fast can a roller chain run?

It depends on the pitch, the sprocket size and the lubrication. The chain maker's rating tables give the limits.

Related calculators

What this calculator is checked against

Before every release the calculator must reproduce each case below. The note under each case says where the expected answer comes from: a standard, a textbook, a published table, or a hand calculation shown in full.

  1. 2 : 1 drive, 17 and 34 teeth, C = 25 pitches: L/p = 50 + 25.5 + 0.293 = 75.79 → 76 pitches; actual C = 25.104 pitchesShigley's Mechanical Engineering Design, 10th ed., eqs. 17-27 and 17-28 (hand calculation with the data of the §17-5 design example)
  2. Pitch diameter D = p / sin(180°/N): 1/2 in chain, 17 teeth = 2.721 in; 51 teeth = 8.122 inShigley eq. 17-25 (hand calculation)
  3. No. 40, 17/51 teeth, 900 rpm, 500 mm: 300 rpm, 3.2385 m/s, 113.48 → 114 pitches (1 447.8 mm), C = 503.31 mmShigley eqs. 17-25 to 17-28 (hand calculation)
  4. Equal sprockets: L/p = 2C/p + N exactly, and the centre distance inverts it; an exact even length keeps CLimiting case N₁ = N₂ of eqs. 17-27 and 17-28
  5. Chordal speed variation: 1 − cos(180°/N) over N sin(180°/N)/π; 17 teeth 1.71 %, 25 teeth 0.79 %Shigley §17-5, chordal speed variation of a roller chain (derived from V_max = rω, V_min = rω cos(180°/N))
  6. Small sprockets warn; overlapping sprockets, fractional tooth counts and unknown chain sizes are rejectedBehaviour check: warnings and rejected inputs
  7. Worked example of the article: the calculator reproduces 113.48, 114, 503.3 mm, 69.12 mm, 206.30 mm, 3.24 m/s to the digits printedThe worked example on this page, to the digits printed

Assumptions and sources

Assumptions and limits

  • Standard roller chain of pitch p on two sprockets in one plane; ANSI chain numbers give the pitch in eighths of an inch (No. 40 = 1/2 in). ISO 606 B-series chains of the same pitch use the same geometry.
  • The chain length in pitches follows Shigley eq. 17-27 and is rounded up to the next even number, so that no offset (cranked) link is needed; the actual centre distance for that length follows eq. 17-28.
  • The centre distance is nominal with the chain just taut; provide adjustment or an idler for wear elongation and sag.
  • The chordal speed variation is the change in chain speed as each link seats on the small sprocket; it falls quickly as the tooth count rises.
  • Power capacity, lubrication and the number of strands are not checked here; use the ANSI or ISO power-rating tables of the chain maker.

Sources

  • Budynas and Nisbett, Shigley's Mechanical Engineering Design, 10th ed., §17-5 Roller chain, eqs. 17-25 to 17-28 (pitch diameter, chain velocity, length in pitches, centre distance)
  • ASME B29.100, Precision power transmission, double-pitch power transmission, and double-pitch conveyor roller chains, attachments and sprockets (standard chain numbers and pitches)
  • Renold, Roller chain design guide: chain length and centre distance calculation

Cite this calculator

Papandreou, C. (2026). Chain and sprocket calculator (roller chain length). Engineering Bible. https://engineeringbible.com/mechanical/chain-sprocket/

Embed this calculator on your site

Copy this HTML into your page. The calculator stays free to use and links back here.

By Christos Papandreou. Updated . How the numbers are checked.