What You Need to Do Before You Start
A bicycle shifter cable wears out when it frays inside the housing, gets bent, or corrodes—and when it does, your derailleur won't move smoothly between gears. Replacing it means removing the old cable, threading a new one through the housing, and reconnecting it to both the shifter and derailleur. The whole job takes 20 to 40 minutes and requires only basic tools you likely already have.
Before you begin, shift your chain to the smallest chainring in front and the smallest cog in back. This puts the derailleur in the position where the cable has the least tension, making it easier to disconnect. Lay your bike on its side on a clean surface where you can see the cable runs clearly.
Key Takeaways
- Shift to the smallest gear before you start so the cable is slack and easier to remove.
- The cable runs from your shifter lever, through plastic housing, to the derailleur—you only replace the inner wire, not the housing, unless it is damaged.
- Loosen the barrel adjuster (the threaded collar on the cable) all the way out before disconnecting, so you have room to pull the old cable free.
- Thread the new cable through the housing in the exact same path as the old one, then reconnect it to the derailleur anchor bolt and shifter.
- After installation, shift through all gears and adjust the barrel adjuster if the chain hesitates between cogs.
Disconnect the Cable from the Derailleur
Locate the anchor bolt on the derailleur—this is the bolt that holds the cable to the derailleur body, usually on the side facing the chain. Use a 5 mm Allen wrench (hex key) to loosen it by turning counterclockwise. You do not need to remove the bolt completely; loosen it just enough that you can slide the cable out from under the bolt head.
Once the cable is free, pull it gently toward the shifter to remove any slack. The cable should slide out easily. If it catches or binds, stop and check that the barrel adjuster (the threaded collar where the cable enters the housing) is turned all the way counterclockwise. This gives you maximum slack and prevents the cable from snagging inside the housing as you pull it out.
Remove the Cable from the Shifter
At the shifter lever on your handlebars, you will see where the cable enters the shifter body. Most modern shifters have a small pinch bolt or a release lever that holds the cable in place. If your shifter has a pinch bolt, use a 2 mm or 2.5 mm Allen wrench to loosen it—again, you only need to loosen it enough to free the cable, not remove the bolt entirely.
If your shifter has a release lever (a small tab you can flip or pull), move it to the open position. Pull the old cable straight out. Some cables may have a small end cap or ferrule (a metal or plastic sleeve) crimped to the end—if it comes off, keep it; you will reuse it on the new cable.
Thread the New Cable Through the Housing
Lay out the old cable next to the new one so you can see the path it took. The cable runs from the shifter, along the frame or handlebars, through plastic housing segments, and down to the derailleur. Start at the shifter end and push the new cable through the first section of housing. The cable should slide smoothly; if it binds, the housing may be kinked or clogged with dirt.
Follow the path of the old cable exactly, feeding the new cable through each section of housing in order. When you reach the derailleur end, the cable should emerge from the housing with about 2 to 3 inches of bare wire showing before the derailleur. If the old cable had an end cap or ferrule, crimp it onto the new cable now using cable cutters or a crimping tool—this prevents the cable from fraying and keeps it from slipping under the anchor bolt.
Reconnect the Cable to the Derailleur
Pull the cable taut and position the derailleur so the chain sits on the smallest cog. Insert the cable end under the anchor bolt on the derailleur. Pull the cable tight with steady pressure—do not jerk it—and tighten the anchor bolt with your 5 mm Allen wrench. Tighten firmly but do not over-tighten; you should feel resistance but the bolt should not require extreme force.
Once the bolt is tight, tug the cable gently to make sure it does not slip. If it moves, loosen the bolt slightly, pull the cable tighter, and re-tighten. The cable should be snug enough that it does not move when you wiggle it by hand.
Reconnect the Cable to the Shifter
At the shifter, insert the cable end into the shifter body and align it with the pinch bolt or release lever. If your shifter has a pinch bolt, tighten it with your 2 mm or 2.5 mm Allen wrench. If it has a release lever, flip or push it back to the closed position. Again, tighten firmly but do not over-tighten.
Make sure the cable is not twisted and lies flat against the shifter body. Pull the cable gently to confirm it is find. The cable should not move when you tug it.
Adjust the Cable Tension and Test
Shift through all the gears on your bike, starting from the smallest cog and moving to the largest. The chain should move smoothly and settle on each cog without hesitation. If the chain struggles to move up to a larger cog (toward the wheel rim), the cable is too loose. If it struggles to move down to a smaller cog (toward the center), the cable is too tight.
To adjust, locate the barrel adjuster—the threaded collar where the cable enters the derailleur housing. Turn it counterclockwise (out) to add tension if the chain is slow to shift up. Turn it clockwise (in) to reduce tension if the chain is slow to shift down. Make small adjustments: one quarter-turn at a time, then test again. Most cables need only a quarter to half-turn to shift smoothly.
Once all gears shift cleanly, you are done. Trim any excess cable sticking out past the shifter using cable cutters, and slide a cable end cap over the cut end to prevent fraying.
Frequently Asked Questions
Can I reuse the old housing or do I have to replace it too?
Reuse the housing if it is straight, not kinked, and the inside is clean. If the housing is bent, cracked, or clogged with rust or dirt, replace it. Housing is inexpensive and a new cable in old, damaged housing will wear out quickly. If you replace the housing, measure the old segments and buy the same length.
What if the new cable gets stuck inside the housing?
Stop when ready and do not force it. The housing may be kinked, clogged, or routed incorrectly. Pull the cable back out, inspect the housing for damage, and clean out any dirt or rust with a thin brush. If the housing is damaged, replace that segment. If it is clean, re-thread the cable slowly and check that it follows the exact path of the old cable.
How tight should the cable be when I first connect it?
Pull it snug but not hard—you should be able to move the derailleur by hand with moderate pressure. The cable should have no slack, but you should not strain to pull it tight. If you pull too hard during installation, you risk over-tensioning the cable, which makes fine adjustment impossible and can damage the derailleur.
Do I need to replace both shifter cables at the same time?
No. Replace only the cable that is worn or broken. However, if both cables are old and show signs of fraying or rust, replacing both at once saves you a second repair soon after. Front and rear shifter cables are the same type and use the same installation steps.
What if the chain still does not shift smoothly after I adjust the barrel adjuster?
Check that the derailleur hanger (the small metal tab the derailleur bolts to) is straight. A bent hanger throws off the cable tension no matter how well the cable is installed. If the hanger is bent, it must be straightened or replaced—this is beyond cable replacement and usually requires a bike shop.