A chain cut two links wrong is a drivetrain that either cannot reach its biggest cog or sags through its smallest. This Chain Length Calculator applies the standard sizing formula — chainstay length plus chainring geometry — and returns the chain length in both inches and links, rounded the way chains are actually joined.







The Formula and the Worked Example

The shop-standard formula is L = 2C + (F + R)/4 + 1, in inches, where C is the chainstay length, F the largest front ring and R the largest rear cog in teeth. For a gravel bike with a 440 mm chainstay (17.32 in), a 34-tooth ring and a 28-tooth largest cog: L = 2 × 17.32 + (34 + 28)/4 + 1 = 34.65 + 15.5 + 1 = 51.15 inches. Bicycle chain links are half an inch pin to pin, so the count is 51.15 / 0.5 = 102.3 links — and because a chain must join inner to outer plates, it is rounded up to the next even number: 104 links, the figure the calculator reports. The geometry inside the formula is honest: the 2C term is the two straight runs (top and bottom) between the rings; the (F + R)/4 term approximates the wrap around roughly half of each ring’s circumference (a ring of N teeth has pitch circumference N × 0.5 in, and a quarter of the sum of the two circumferences is (F + R)/4 × 0.5 × 2 — the formula’s compact form); the +1 is the traditional allowance for the derailleur’s path and joining slack. That is also why the formula asks for the largest ring and cog: the chain must survive the big-big combination even if you never ride in it, because one accidental shift into it on a too-short chain can tear a derailleur off its hanger — the most expensive two links in cycling.

The Rivet Method: Checking the Formula Against the Bike

Mechanics trust the formula and verify with the physical method, which every rider should know because it needs no measurements at all. Wrap the new chain around the largest front ring and largest rear cog, bypassing the derailleur, pull it taut, and mark the shortest point where the ends meet and could be joined; then add two links (one inch) for a derailleur’s S-bend — more on long-cage mountain setups per the derailleur maker’s sheet. The two methods agree by construction (the formula is the rivet method’s arithmetic portrait), and when they disagree, the bike is right: full-suspension frames are the classic case, because the chainstay grows as the suspension compresses through its travel — size such a bike at full compression (or by the maker’s stated growth figure), or the chain that fits in the stand becomes a guitar string at the first big hit. The checks after cutting are equally physical: shift to big-big and confirm the derailleur cage still holds an S-curve with tension to spare; shift to small-small and confirm the chain does not sag slack or rub the cage — the window between “long enough for big-big” and “short enough for small-small” is the drivetrain’s own design space, set by the derailleur’s total capacity (its published tooth range: (F_big − F_small) + (R_big − R_small)), and a chain length problem is sometimes a capacity problem wearing the chain as a disguise.

Links, Half-Links and Wear: The Fine Print

Three practical footnotes complete the sizing picture. Even counts: standard chains alternate inner and outer links, so a joinable chain has an even number unless a half-link (offset link) is used — BMX and singlespeed practice — which is why the calculator rounds to even and why counting an old chain rivet-to-rivet (count each pin pair as one link) transfers the size without any formula at all: same drivetrain, new chain, copy the count. Quick links: a master link counts as one link pair in the total and joins the chain without a pin press; the count from the calculator includes it. Wear changes length, not count: a worn chain measures “longer” pin to pin (each joint’s play adds up — 0.5% elongation is the replacement threshold on modern narrow chains, checked with a gauge, roughly 1/16 inch over 12 measured inches), but its link count never changed; do not size a replacement by stretching the old chain beside it, because you will photocopy the wear. Recheck the count whenever the largest cog or ring changes size — a wider-range cassette (+4 teeth on the big cog) asks for roughly one more link pair, the formula shows exactly how much, and the two minutes with this page are cheaper than the derailleur hanger that teaches the lesson otherwise.

Capacity and the 1× Case, Worked

The formula sizes the chain; the derailleur’s total capacity decides whether any chain length can serve both extremes, and the two computations travel together. Capacity = (big ring − small ring) + (big cog − small cog): a compact road double with an 11–34 cassette demands (50 − 34) + (34 − 11) = 39 teeth of take-up — beyond a short-cage derailleur’s rating, which is a specification problem no chain length can fix, only a longer cage can. The modern 1× drivetrain simplifies the front away and stresses the rear instead: one 32-tooth ring, a 10–52 cassette, a 450 mm chainstay. The formula: L = 2 × 17.72 + (32 + 52)/4 + 1 = 35.4 + 21 + 1 = 57.4 inches → 114.9 links → 116 links. Note how the wide-range cassette’s 52-tooth cog drives the length — nearly a fifth of the chain is spoken for by the two ring wraps — and how a 1× setup’s whole gear range rides on one chain length and one (clutched, long-cage) derailleur’s take-up of the difference between a 10 and a 52: 42 teeth of capacity, engineered rather than improvised. Gravel’s 2× wide-range hybrids sit between the stools and deserve both computations run before the chain is cut: the formula for the length, the capacity sum for the derailleur, and the big-big/small-small physical check as the court of final appeal.

Singlespeed and Fixed-Gear: The Formula Without the Derailleur

Remove the derailleur and the sizing tightens: a singlespeed chain must reach from ring to cog with just enough slack to install, its final tension set by sliding the axle in horizontal dropouts (or an eccentric hub or bottom bracket). The same formula frames the estimate — a 44/16 setup on a 435 mm stay prices at 2 × 17.13 + (44 + 16)/4 = 34.3 + 15 = about 49.3 inches, ≈ 99 links — but the +1 derailleur allowance retires, and the target becomes the count that lands the axle mid-dropout with a whisper of slack, because the dropout’s travel is the fine adjustment the derailleur used to provide. This is where the half-link earns its keep: a single offset link moves the axle position by a quarter inch of chain, often the difference between a dropout’s sweet spot and its edge. Fixed-gear riders additionally respect the no-coast rule of the drivetrain: chain tension is a safety item (a thrown chain under leg-braking is an event), so the sizing discipline flips conservative — the snug side of perfect, checked at the crank’s tightest point of rotation, since no two chainrings are perfectly round and the chain’s tension breathes once per revolution.

Common Mistakes

Sizing on the small ring or mid-cassette position instead of big-big (the chain must survive the longest wrap). Measuring chainstay to the dropout’s end instead of axle centre to bottom-bracket centre. Forgetting that links round up to an even count. Copying a worn chain’s measured length instead of its link count. Ignoring suspension growth on full-suspension frames. And blaming chain length for small-small slack that is really a derailleur capacity limit — check the capacity arithmetic before cutting anything.

Related Tools

Continue with the Fish Weight Calculator, the Pool Table Room Size Calculator, the Swim Time Converter, or browse the full Sports Calculators hub.

Frequently Asked Questions

How do I calculate bike chain length?

L (inches) = 2 × chainstay (in) + (largest front teeth + largest rear teeth) / 4 + 1. Divide by 0.5 for links and round up to the next even number. A 440 mm chainstay with 34/28 rings gives 51.15 in → 104 links.

Why does the chain need the biggest ring and cog?

Because that combination wraps the most chain. A chain sized on a smaller combination can be too short for big-big — and one accidental shift there can rip the rear derailleur off. Size for the maximum, ride anywhere.

What is the rivet (big-big + 2) method?

Wrap the chain around the largest ring and cog without threading the derailleur, pull taut, find the joinable point, and add two links (one inch) for the derailleur path. It is the physical twin of the formula and the final check before cutting.

Why must the link count be even?

Chains alternate inner and outer link pairs, so the ends only join when the total count is even — unless a half-link (offset link) is used, as on some BMX and singlespeed setups. Quick links count as one pair in the total.

My new cassette has a bigger largest cog. Do I need a longer chain?

Almost certainly: each added tooth on the big cog adds about a quarter inch of wrap. Run the formula with the new cog — going from 28 to 32 teeth typically adds one link pair (2 links).

Can I copy my old chain’s length?

Copy its link count, not its measured length. A worn chain has elongated (that’s what wear is), and matching its stretched length builds the wear into the new chain. Count rivets, or measure 24 pins of the new chain as you cut.