What a derailleur does and why you might replace it

A derailleur is the mechanism that moves your chain from one sprocket to another when you shift gears. The derailleur sits on the frame near the rear wheel (rear derailleur) or near the pedals (front derailleur), and a cable connected to your shifter pulls it side to side. If your derailleur is bent, the cable is broken, or the whole unit is damaged, the chain won't shift smoothly—or won't shift at all.

Installing a new derailleur is a job you can do at home with basic tools. It takes about 30 to 45 minutes for a rear derailleur, longer if you're also adjusting the cable tension. A front derailleur is simpler but less common to replace. This guide covers the rear derailleur, which is what most people need to know.

Key Takeaways

  • A rear derailleur bolts to a hanger on the frame and connects to the shifter with a cable; you need the correct derailleur model for your bike's drivetrain.
  • Remove the old derailleur by unbolting it from the frame hanger and unscrewing the cable anchor bolt, then thread the cable out of the housing.
  • Install the new derailleur by bolting it to the hanger, routing the cable through the housing, and securing it at the anchor bolt.
  • After installation, you will need to adjust the cable tension and limit screws so the chain shifts smoothly across all gears without rubbing or falling off.
  • If the derailleur hanger is bent or broken, you must replace it before installing a new derailleur, or the new one will not work correctly.

Choosing the right derailleur for your bike

Derailleurs are not universal. You need one that matches your bike's drivetrain—the combination of chainrings, sprockets, and shifters. The derailleur must match the number of speeds (8-speed, 9-speed, 10-speed, 11-speed, or 12-speed) and the brand of your shifter (Shimano, SRAM, or Campagnolo are the main ones).

Find this information on your current derailleur or shifter. Look for a label or stamped text that says "Shimano Altus 8-speed" or "SRAM GX 12-speed," for example. If your derailleur is damaged beyond reading, check your bike's original spec sheet or ask at a local bike shop. Buying the wrong speed or brand will mean the cable pull ratio is off, and your shifting will be sluggish or skip gears.

You also need to know your derailleur hanger—the small metal piece bolted to the frame where the derailleur attaches. Most modern bikes have a replaceable hanger. Before you buy a new derailleur, check that your hanger is straight. If it is bent, you will need to replace it first, or the new derailleur will hang at an angle and won't work.

Tools and parts you will need

Gather these items before you start:

  • A new derailleur (matched to your drivetrain)
  • Allen wrenches or hex keys (usually 4 mm and 5 mm)
  • A Phillips or flathead screwdriver (for limit screws)
  • A cable cutter (or sharp scissors)
  • New cable and housing (optional, but recommended if the old cable is frayed or kinked)
  • A bike stand or a way to hang the bike so the rear wheel is off the ground

If you do not have a bike stand, you can flip the bike upside down so it rests on the handlebars and seat, or ask a friend to hold it steady. You need both hands free to work on the derailleur.

Removing the old derailleur

Start by shifting the chain to the smallest sprocket (the highest gear). This takes tension off the derailleur and makes it easier to remove. Locate the cable anchor bolt—a small bolt on the derailleur body where the cable attaches. Unscrew it with an Allen wrench, and the cable will come free. If the cable is still in the housing, pull it out gently.

Next, find the bolt that attaches the derailleur to the hanger. It is usually on the upper part of the derailleur body. Unscrew it with the appropriate Allen wrench (usually 5 mm). The derailleur will drop away from the frame. Set it aside.

Before you install the new one, inspect the hanger. It should be straight and parallel to the frame. If it is bent outward or inward, you will need to replace it. Most bike shops can do this in a few minutes, or you can order a replacement hanger online if you know your bike's model.

Installing the new derailleur

Position the new derailleur so the bolt hole aligns with the hanger. Slide the bolt through the derailleur and into the hanger, then tighten it firmly with an Allen wrench. Do not overtighten—you want it snug, not stripped.

Now you need to route the cable. If you are reusing the old cable, pull it out of the housing and inspect it. If it is frayed, kinked, or rusty, replace it with new cable and housing. Thread the cable through the housing from the shifter down to the derailleur. The housing should follow the frame, usually held in place by small clips or guides.

When the cable reaches the derailleur, insert the end into the anchor bolt hole and screw the bolt down. Tighten it firmly but do not strip it. The cable should be taut but not under heavy tension yet—you will adjust that next.

Adjusting cable tension and limit screws

Shift the front shifter to the smallest chainring (if you have a front derailleur) and the rear shifter to the smallest sprocket. The chain should be on the smallest cog. Look at the derailleur from behind the bike. The two small pulleys on the derailleur should be roughly in line with the smallest sprocket.

If the derailleur is too far inward (toward the frame) or outward (away from the frame), you need to adjust the limit screws. These are usually labeled "L" (low, or inboard) and "H" (high, or outboard). Turn the "L" screw clockwise to move the derailleur inward, or counterclockwise to move it outward. Make small quarter-turn adjustments and check the alignment after each one.

Once the derailleur is aligned with the smallest sprocket, shift to the largest sprocket. The derailleur should move outward and align with the largest cog. If it does not reach far enough, turn the "H" screw counterclockwise. If it goes too far and the chain falls off, turn it clockwise. Again, make small adjustments.

Now test the cable tension. Shift through all the gears slowly. The chain should move smoothly from sprocket to sprocket without hesitation or noise. If the chain is slow to shift up (to larger sprockets), the cable is too loose—turn the barrel adjuster (a threaded collar on the cable housing) counterclockwise a quarter turn and test again. If the chain is slow to shift down (to smaller sprockets), the cable is too tight—turn the barrel adjuster clockwise.

Testing and fine-tuning

Shift through all the gears several times while the bike is stationary. Listen for rubbing or grinding sounds. The chain should not rub on the derailleur cage or the sprockets. If it does, go back and check the limit screw adjustment and cable tension.

Once the stationary test is smooth, take the bike for a short ride on flat ground. Shift through the gears while pedaling gently. The shifts should feel crisp and quiet. If you hear grinding or the chain hesitates, stop and make another small adjustment to the barrel adjuster or limit screws.

It may take a few test rides and small tweaks to get the shifting perfect. This is normal. Keep notes of which direction you turned each screw so you can undo it if the adjustment makes things worse.

When to call a professional

If the derailleur hanger is bent and you do not have the tools or confidence to replace it, a bike shop can do it quickly. If you install the derailleur but the shifting remains sluggish or noisy after several adjustment attempts, the cable may be damaged inside the housing, or the derailleur itself may be faulty. A shop can diagnose this faster than trial and error.

If you are uncomfortable working with the cable or limit screws, or if your bike has an unusual drivetrain, a professional installation is worth the cost. Most shops charge $40 to $80 for a derailleur installation and adjustment.

Frequently Asked Questions

Can I install a derailleur without removing the chain?

Yes. You do not need to remove the chain to install a derailleur. However, shifting the chain to the smallest sprocket before you start makes the work easier because there is less tension on the cable and the derailleur sits in a neutral position.

What if the cable breaks while I am riding?

If the cable snaps, you will lose the ability to shift. You can ride home in whatever gear the chain is in, but shifting will not work. Once home, you can replace the cable following the steps in this guide, or take the bike to a shop.

How often do derailleurs need to be replaced?

A derailleur can last many years if the cable is kept clean and adjusted. Damage from crashes, bent hangers, or a broken cable usually triggers replacement. Regular cleaning and cable inspection can extend the life of your derailleur.

Is the front derailleur installed the same way?

The front derailleur is similar but simpler. It bolts to the seat tube (the vertical frame tube near the pedals) and uses the same cable routing and adjustment method. The limit screws work the same way, but there are only two sprockets to align instead of eight or more.

What if my new derailleur does not shift into the largest sprocket?

The "H" limit screw is likely set too tight. Turn it counterclockwise a quarter turn and test again. If the chain still will not reach the largest sprocket after several adjustments, the cable may be too tight—try turning the barrel adjuster clockwise slightly.