Chain Length Calculator

By: Calculator Grid

Bicycle Chain Length Calculator

Estimate the chain length and minimum link count from chainstay length, the largest front chainring, and the largest rear cog.

Pitch 0.5 in Method Simple sizing Links 105 Length 52.25 in
Excel workbook ready.

Bike measurements

Center of bottom bracket to center of rear axle. Use a period for decimals.
Changing units converts the current chainstay value and result lengths.
Enter the tooth count of the largest front ring.
Enter the tooth count of the largest cassette or freewheel cog.

Live result

Number of links
105 links
Minimum whole-link count from the simple chain sizing formula. Confirm connector and drivetrain requirements before cutting.
Chain length
52.25 in
Shortest possible chain length
51.29 in
Rigorous link count
103 links
Recommended minimum: 105 links; calculated length: 52.25 inches.

Method comparison

Method Calculated length Raw links Rounded whole links
Simple sizing 52.25 in 104.50 105
Rigorous geometry 51.29 in 102.58 103
The simple formula includes a one-inch allowance. The rigorous value is a theoretical geometric minimum and is not, by itself, an installation instruction.

How to use the bicycle chain length calculator

What this calculator does

This calculator estimates the length of a conventional bicycle derailleur chain from three drivetrain dimensions: chainstay length, the tooth count of the largest front chainring, and the tooth count of the largest rear cog. It reports the common simple sizing result, converts that length into a minimum whole-link count using the standard half-inch chain pitch, and also shows a rigorous geometric minimum for comparison. The result is a planning estimate. It does not replace the chain-sizing procedure specified by the drivetrain manufacturer, and it cannot account automatically for unusual suspension growth, idler pulleys, chain guides, oversized derailleur cages, or proprietary full-mount systems.

When to use it

Use the calculator when replacing a chain without a trustworthy old chain to copy, checking whether a standard replacement chain contains enough links, planning a cassette or chainring change, or comparing the effect of a longer chainstay or larger sprocket. For final workshop sizing, compare the result with a physical largest-chainring/largest-cog check. Park Tool's chain length sizing procedure explains that practical verification method and notes special considerations for wide-range drivetrains and rear suspension.

How to calculate

  1. The calculator opens with a ready-to-use demonstration: a 16.375-inch chainstay, 42-tooth largest front chainring, and 32-tooth largest rear cog. The displayed result and a validated Excel workbook are available immediately.
  2. Measure from the center of the bottom bracket to the center of the rear axle, then replace the value in Chain stay length. Use a period as the decimal separator.
  3. Select Measurement unit. Changing between inches and centimeters converts the current chainstay value and all displayed lengths; it does not change the tooth counts or link count.
  4. Enter the tooth count stamped on the Largest front chainring and the Largest rear cog. Results update as soon as the complete input set is valid.
  5. Read Number of links as the minimum whole-link result from the simple sizing equation. Compare Chain length with Shortest possible chain length in the method table, then check the manufacturer's installation instructions before removing links.
  6. Select Download Excel to export the current typed inputs, outputs, formula comparison, and notes. Reset clears the demonstration data and results; Excel export is then disabled until a complete valid set is entered again.

Input guide

Chain stay length is required and accepts a positive decimal from 1 to 40 inches, or the equivalent 2.54 to 101.6 centimeters. A realistic road or mountain-bike example is 16.375 in. A longer chainstay increases both calculated lengths by roughly twice the added distance. Do not enter a frame-size label or measure along a curved tube; use the straight center-to-center distance.

Measurement unit is required and accepts Inches (in) or Centimeters (cm). The unit switch converts the current numeric value, so 16.375 in becomes 41.5925 cm. A common mistake is manually converting the value and then changing the unit, which converts it a second time.

Largest front chainring is a required whole number from 1 to 100 teeth. The startup value is 42. Increasing it adds one quarter inch of simple-formula chain length for each extra tooth. Enter only the largest ring used by the drivetrain, not the sum of all front rings.

Largest rear cog is also a required whole number from 1 to 100 teeth. The startup value is 32. A larger cog raises the simple result by one quarter inch per tooth and may also trigger manufacturer-specific sizing rules on modern wide-range systems. Enter the largest sprocket, not the number of cassette speeds.

Output guide

Number of links is the calculated simple length divided by the 0.5-inch chain pitch and rounded upward to a whole link. It is an estimate rather than a universal cut instruction because manufacturers differ in how they count quick links, rivets, and added links. Chain length is the simple formula result in the selected unit. Shortest possible chain length is the rigorous geometric value and is normally lower because it omits the simple formula's one-inch allowance. Rigorous link count converts that theoretical minimum into whole links. The Method comparison table shows calculated length, unrounded raw links, and rounded links for both formulas so the rounding step is transparent.

Worked example

With a 16.375 in chainstay, 42 front teeth, and 32 rear teeth, the simple equation is 2 × 16.375 + 42 ÷ 4 + 32 ÷ 4 + 1 = 52.25 in. Dividing by the 0.5 in pitch gives 104.50 link intervals, so the calculator rounds upward to 105 links. The rigorous equation gives approximately 51.29 in and 102.58 raw links, which rounds upward to 103. These values match the first-open screen and the startup Excel workbook. Before cutting, check whether your connecting link is included in the manufacturer's count and verify derailleur capacity through the full suspension or gear range.

How the chain length formulas work

The simple sizing equation is designed for ordinary derailleur bicycles with a chainstay longer than about 15 inches and conventional sprocket sizes:

L = 2C + F/4 + R/4 + 1

Here, L is chain length in inches, C is chainstay length in inches, F is the largest front chainring tooth count, and R is the largest rear cog tooth count. The two-times-chainstay term represents the upper and lower chain runs. The sprocket terms approximate the chain wrapped around the selected front and rear gears, and the final inch provides practical allowance.

The rigorous equation models the straight tangent spans between unequal sprockets more closely:

TSPCL = 2 × √(C² + (0.0796 × (F – R))²) + (F + R)/4

Because the rigorous result is a theoretical shortest path, treat it as a comparison metric rather than a final installation length. Shimano's official chain dealer manual illustrates why the final joining method and model-specific instructions matter. SRAM also directs current full-mount drivetrain users to its official chain installation guidance rather than a generic formula alone.

Installation check: a chain that is too short can overload the derailleur or prevent a largest-to-largest shift. A chain that is too long can sag, slap, and shift poorly. Use this calculation to prepare, then verify the actual bicycle before pressing out a rivet.

Practical interpretation and common mistakes

The link count is intentionally rounded upward because a fractional link cannot be installed. However, the physical chain may need to end on a particular inner/outer plate combination, and a quick link may or may not be included in the manufacturer's published count. That is why a calculated odd number is not automatically a final cutting mark. Lay out the chain, identify the connector type, and follow the specific joining procedure.

Do not use the old chain's stretched overall length as the only reference. If the old chain was sized correctly, compare rivet count or link count rather than simply matching end-to-end length. Rear-suspension bicycles deserve extra attention because the effective chainstay can lengthen as the suspension moves. Idler-equipped bikes, chain guides, tandems, internally geared hubs, and some electronic or full-mount drivetrains may use methods outside this model.

The formulas also determine length, not chain width or compatibility. Match the replacement chain to the drivetrain's speed count and manufacturer requirements. A chain can have the correct length but still be unsuitable for the cassette, chainring profile, or joining hardware.