How to adjust a rear derailleur for smooth shifting

How to adjust a rear derailleur for smooth shifting

Tips and tricks to set up your rear derailleur 

Scott Windsor / Our Media

Published: September 19, 2024 at 11:00 am

There are few things quite as annoying as clicking or jumping gears, but knowing how to adjust your rear derailleur can save you from such frustration.

In this guide, we’ll take you through how to adjust a rear derailleur with easy-to-follow step-by-step instructions.

We’ve also got a troubleshooting section in case you’re struggling, as well as tips and tricks for setting up electronic rear derailleurs. 

How rear derailleurs work

Campagnolo Ekar GT rear derailleur, chain and cassette
The rear derailleur shifts the chain across the cassette. - Oscar Huckle / Our Media

The rear derailleur is a key component in your bike’s groupset, shifting the chain onto the various cassette sprockets. 

When you change gear on your bike, the shifter pulls or releases a set amount of cable. This moves the rear derailleur a predetermined distance, shifting your chain onto a different cassette sprocket. 

When set up correctly, your rear derailleur should shift one gear for every click of the shifter.

Parts of a rear derailleur 

Shimano Deore XT M8100 12-speed mountain bike drivetrain
You'll typically have two limit screws and a B-gap screw. - Alex Evans

In terms of adjustment, there are typically four parts of a rear derailleur we need to be concerned about: 

  • Two limit screws
  • B-gap
  • Barrel adjuster 

The limit screws control how far the rear derailleur can shift in either direction. Setting the limit screws correctly prevents the chain from shifting off the cassette and into the spokes, or into the driveside dropout

The B-gap adjustment determines the distance between the upper pulley (also known as the guide pulley) of the rear derailleur and the cassette teeth. 

The barrel adjuster shortens or lengthens the cable run to fine-tune the indexing. Some derailleurs may lack a barrel adjuster, where it is instead incorporated into the shifter. 

How to adjust a rear derailleur 

This guide explains how to adjust a rear derailleur from scratch, as if you’re installing it for the first time. 

If you're adjusting a rear derailleur that’s already on your bike, head straight to Step 4. 

Tools required

Tools required to adjust a rear derailleur
On some older rear derailleurs, the limit screw is designed for a JIS screwdriver. -
  • A hex key to fit your derailleur cable-retention bolt and limit screws (the latter may require a screwdriver)
  • Torque wrench and socket (only needed if setting up a rear derailleur from scratch)
  • Cable cutter (if installing a new cable)

Step 1

Shimano 105 rear derailleur and cassette on Giant Defy
It's easiest to set the limit screws with the cable disconnected. - Scott Windsor / Our Media

We’re first going to set the high limit screw. This controls how the chain runs on the smallest cog of the cassette, and is usually marked with the letter H. 

It’s good practice to adjust the limit screws without the gear cable attached to take cable tension out of the equation. 

For a 2x (two chainrings) drivetrain, set the rear derailleur’s limit screws with the chain on the larger (outer) chainring.

For a 3x (three chainrings/triple) drivetrain, set your rear derailleur’s limit screws with the chain in the middle chainring. 

Adjust the screw so the chain runs smoothly on the cog without jumping or clicking. 

Shimano 105 rear derailleur and cassette on Giant Defy
The limit screws are marked with the letters 'H' and 'L'. - Scott Windsor / Our Media

If the chain wants to shift into the second cog, back off the tension by winding the screw counter-clockwise. If the chain is trying to jump off the bottom of the cassette, wind the screw in clockwise. You only need to make small adjustments, so be patient and precise.

To check the limit is set properly, manually push the rear derailleur while pedalling into the middle of the cassette and then let go, allowing the rear derailleur to drop the chain back into the first cog. 

Adjusting limit screws with Allen key.
If the chain jumps into the second gear, the limit screw is too tight. - Scott Windsor / Our Media

If the chain always reverts back to the smallest cog without any jumping or skipping, the high limit screw is set correctly. 

Step 2 

Shimano 105 rear derailleur and cassette on Giant Defy
Manually push on the rear derailleur so the chain shifts into the largest cog. - Scott Windsor / Our Media

Now, we’ll set the low limit screw, which stops the chain from derailling into the spokes. 

Manually push on the derailleur to shift it up to the highest gear possible.

While still manually pressing on the derailleur, gently turn the cranks and wind out the low limit screw until the cassette shifts to the biggest cog and isn’t jumping or clicking. 

Shimano 105 rear derailleur and cassette on Giant Defy
You can then wind the limit screw in with the chain on the largest cog. - Scott Windsor / Our Media

Another method we recommend is setting the limit screw so the chain runs in the second largest cog. Slowly unwind the limit screw until the chain jumps into the biggest cog and runs smoothly. This method ensures the tolerance of the derailleur’s limit isn’t skewed towards the wrong end of the scale. 

Step 3 

Shimano 105 rear derailleur and cassette on Giant Defy
We'd always recommend torquing the cable-pinch bolt. - Scott Windsor / Our Media

We’ll now connect the gear cable. Before routing the cable, wind the barrel adjuster in fully clockwise, then out by one or two turns – this gives a good scope for adjustment later. 

Route the cable through the barrel adjuster and the cable-pinch bolt, making sure the cable is routed through the latter correctly. 

If it’s not obvious how the cable should be routed, you could fully remove the pinch bolt and take note of the groove on its underside face. 

Pull the cable taut and tighten the pinch bolt to the manufacturer’s recommended torque spec – usually 5Nm. 

If the gear cables are new, it’s vital you pre-stretch them (technically, you’re seating the outer housings in the cable stops, but stretching is more descriptive). 

Without pedalling, press on the shifter throughout its cycle and then downshift a couple of times. The cable should stretch and you can then loosen and re-secure the cable in the pinch bolt. 

Step 4 

Mechanic pressing Shimano 105 shifter
Press once on the shifter. - Scott Windsor / Our Media

We can now start to work on indexing the gears

With the chain in the smallest cog, press once on the shifter to shift the chain onto the second smallest cog. 

One of three scenarios will happen:

  1. The chain either shifts to the second cog without excessive noise
  2. It stays in the smallest cog 
  3. It overshifts

If the chain didn’t shift to the second gear, increase the cable tension by winding the barrel adjuster counter-clockwise while pedalling until it makes the shift and the chain doesn’t make any rasping noises on the cog.

If you’ve had to unwind the barrel adjuster a lot, it’s worth undoing the cable pinch bolt, pulling more cable through and starting again. Otherwise, there won’t be much room for future adjustments. 

If the chain overshifts, you’ll want to decrease the cable tension by winding the barrel adjuster clockwise until the chain settles on the second cog without any excessive noise. 

You may need to make minute adjustments and we’d recommend only adjusting the barrel adjuster by a quarter turn once you’re almost within range. 

Step 5

Mechanic indexing Shimano 105 gears
Use the barrel adjuster to make minute adjustments. - Scott Windsor / Our Media

We’ll now check that the chain shifts back down to the smallest cog smoothly. 

If the chain is hesitant to downshift, decrease the cable tension in small increments. 

Step 6

Repeat steps 4 and 5 for the third cassette cog. Once you’ve got the first three gears indexed properly, it’s likely the indexing will be fine for the rest of the cassette. 

Step 7 

Oscar Huckle adjusting gears on Giant Defy
Take time to persevere with your work. - Scott Windsor / Our Media

Check the shifting across the entirety of the cassette, making small adjustments to the barrel adjuster if required. 

If the downshifting is responsive but upshifting isn’t, the cables likely need lubricating or replacing. 

Step 8 

SRAM GX Eagle AXS mountain bike drivetrain
Some manufacturers include gauges to make setting the B-gap easier. - Alex Evans

We’ll now set the B-gap (also known as B-tension). With the chain in the largest gear, the upper jockey wheel should just clear the cassette. Turning clockwise will increase the gap whereas anti-clockwise will close it. 

Refer to the manufacturer’s recommended clearance. Most manufacturers recommend a B-gap of between 5 and 6mm. Adjust until you have achieved this clearance – you can use a 5 or 6mm hex key as a guide. 

Oscar Huckle adjusting gears on Giant Defy
A hex key can make a useful guide. - Scott Windsor / Our Media

If there isn’t a recommended clearance, make sure you take your time to experiment and get this right. If the B-gap is set so the guide pulley is too close to the cassette, the chain will make a rumbling sensation as you ride. If there’s too great a distance, the shifting will be sloppy. 

Modern 12- and 13-speed groupsets are particularly reliant on the correct B-tension. SRAM includes a tool you can line up with the derailleur pulley wheel and the cassette cog. 

If you’re adjusting the B-gap on a full-suspension mountain bike, bear in mind you’ll need to set this up with the shock under its required sag. 

If you’ve had to make significant changes to the B-gap, it’s worth re-checking the indexing. 

Other factors that can impact your rear derailleur’s shifting 

Commencal Meta Power SX Bosch Signature full suspension mountain eBike
You'll be forever chasing your tail with the indexing if your derailleur hanger is bent. - Ian Linton / Our Media

If you've followed our steps but your bike gears still aren't working correctly, there are a few things to check.

Firstly, check that the derailleur hanger isn’t bent. You’ll need a derailleur hanger alignment tool to straighten a bent hanger. If you don’t have this tool, a good starting point is eyeballing the hanger to check it isn’t obviously bent. 

Checking chain wear with a Park Tool chain checker
A worn chain will also result in sloppy shifting. - Scott Windsor / Our Media

Check the cassette and chain wear – a worn chain will shift poorly. 

Check that the cables are in good condition. If the cable ends are frayed – or the outer housing has any cracks or is split – replace it. 

Make sure the rear derailleur mounting bolt, crankset and cassette are all tightened to the manufacturer’s recommended torque. 

Torquing rear derailleur with a torque wrench
Check the derailleur mounting bolt is torqued. - Scott Windsor / Our Media

Finally, if the derailleur or shifters are old, inspect their condition. On the derailleur, look for any slop in the pivots or linkages. You can check this by holding the derailleur cage and checking it has excessive lateral movement. 

With the shifter, the ratchet inside can wear over time and you can tell if this is the case by a vague or dead shifting feel. 

How to adjust an electronic rear derailleur 

SRAM Rival eTap AXS rear derailleur and FFWD RYOT 33 wheel against a stone background
Setup for electronic rear derailleurs differs between brands. - Oscar Huckle / Our Media

Electronic rear derailleurs differ from mechanical ones in that they are powered by motors, communicating either wirelessly or via wires. The way in which you adjust them differs between manufacturers. 

You typically need to press a button on one or various components to enter an adjustment mode, which performs an equivalent function to a barrel adjuster. 

Of course, make sure the system has sufficient charge. 

Shimano Di2 

Shimano Dura-Ace Di2 rear derailleur on Pinarello Dogma X
Setup for 12-speed rear derailleurs differs from 11-speed variants of old. - Scott Windsor / Our Media

On its latest 12-speed semi-wireless groupsets, Shimano recommends first setting the B-gap before then focusing on the indexing and setting the limit screws last. 

  1. Shift into the eighth cassette cog and smallest chainring. This is the position Shimano recommends starting in before adjusting the gears. 
  2. Press and hold the function button on the rear derailleur for between 3 and 5 seconds – the LED will light up yellow. 
  3. Then press the downshift button on the right shifter until the chain shifts into the ninth cog with a slight rubbing noise. 
  4. Shimano then recommends pressing the upshift button five times to back off the rear derailleur to its final position. 
  5. To exit adjustment mode, press and hold the rear derailleur function button for half a second.
  6. Check the chain shifts smoothly in all gears. 

When you’re in the smallest or largest cogs, Shimano recommends winding in the relevant limit screw until it lightly touches the derailleur’s inner link. 

Shimano Ultegra R8050-GS rear derailleur
11-speed Shimano Di2 rear derailleurs are still commonly found. - Simon Bromley / Immediate Media

If you have an older 11-speed groupset, the process differs. Before adjusting the rear derailleur, you'll need to have set up the front derailleur (if applicable).

  1. Shift the chain into the largest cassette cog. Don’t worry if the indexing isn’t perfect – we’ll come onto that later. 
  2. Set the rear derailleur’s low limit screw with a 2mm hex key. 
  3. Now set the B-gap. Shimano recommends a 3 to 4mm gap. 
  4. Shift the chain down the cassette and take note of the quality of the indexing. If you need to make any adjustments, you'll need to enter adjustment mode. Press the function button on the junction box to enter adjustment mode for 3 to 5 seconds. A red light will illuminate to indicate you’re in adjustment mode. 
  5. Use the right shifter buttons to make minute adjustments to the rear derailleur.
  6. Press the function button again for 3 to 5 seconds to exit adjustment mode.
  7. Check the indexing and adjust as required.

SRAM AXS 

SRAM Force AXS rear derailleur on Look 765 Optimum
SRAM rear derailleurs are particularly sensitive to the correct B-gap. - Scott Windsor / Our Media

The only tool you’ll require is a 2.5mm hex key to set the limit screws. 

  1. We first need to pair the components. Make sure you have installed a charged SRAM AXS battery in the derailleur(s). 
  2. Press the AXS button on the rear derailleur until the green LED blinks slowly, then release. Once the rear derailleur is in pairing mode, the rest of the components can be paired in any order. 
  3. Press the AXS button on the front derailleur (if applicable) and both shifters until the LED blinks quickly, then release. 
  4. Press and release the AXS button on the rear derailleur to exit pairing mode. You can check everything works by pressing on the shifter and checking the derailleur executes the command. 
  5. If you’re using a front derailleur, it must be in the outboard position before you can begin installation. Set the derailleur so both guide marks for the height and angle align with the chainring. SRAM also provides a Set Up Tool with some of its derailleurs in the box, which simplifies this step. 
  6. Make sure you install a front derailleur support wedge that best fits between the derailleur and your frame. The motors in SRAM front derailleurs are aggressive and not using a wedge will put more stress on the frame. 
  7. Shift the rear derailleur into the largest cog and set the B-gap. You’re likely to achieve the best results using SRAM’s specific B-gap guide tool. 
  8. Set the low limit screw, making sure the limit screw lightly touches the inner link of the rear derailleur. 
  9. Shift the chain into the smallest cog and set the high limit screw, again ensuring the limit lightly touches the rear derailleur’s inner link. 
  10. Set the front derailleur’s high limit screw so there is between 0 and 0.5mm clearance between the chain and outer plate. Unlike a mechanical derailleur, you mustn’t manually press on a SRAM derailleur to check the limit screws because this may damage the motor. 
  11. Set the front derailleur’s lower limit screw by shifting the chain into the small chainring and largest cassette cog. Again, there should be between a 0 and 0.5mm clearance between the inner plate and the chain. 
  12. To set the rear indexing, you’ll need to use the MicroAdjust feature, which moves the rear derailleur by 0.25mm in either direction. You can enter this mode by pressing on the AXS button on the relevant shifter, or you can even do this via the ‘Drivetrain settings’ of the SRAM app. Although the derailleur may not appear to move, watch for the derailleur button to flash to confirm the command has been executed. 

The process for SRAM direct-mount rear derailleurs differs from conventional derailleurs. Check out our step-by-step guide to installing and setting up SRAM’s Eagle Transmission rear derailleur

Campagnolo Super Record Wireless

Campagnolo Super Record Wireless rear derailleur and cassette
Setup for Campagnolo's new Super Record Wireless rear derailleur differs from its previous EPS platform. - Oscar Huckle / Our Media

The process for setting up a Campagnolo Super Record Wireless rear derailleur differs from its previous EPS electronic groupsets. 

The only tool you’ll need is a 2mm hex key. 

  1. Shift the chain so it's in the sixth cog. 
  2. Press the ‘Mode’ buttons on the inside of both shifters at the same time for five seconds, until the LEDs light up pink. 
  3. Press the ‘Mode’ button on the right shifter within one second – the LED will light up pink for a moment and then the rear derailleur will light up solid pink. 
  4. Like SRAM, use the shifter buttons to centre the chain on the cog until there is no rasping. 
  5. Once correctly positioned, press the mode buttons again on both shifters at the same time. The LEDs will briefly light up blue, while the rear derailleur starts to flash blue slowly to come out of adjustment mode. 
  6. Now, shift onto the largest cog and set the low limit screw and B-gap (Campagnolo recommends a distance of 5-7mm). 

How to replace a rear derailleur 

Oscar Huckle greasing threads on Shimano Sora rear derailleur
It's always wise to put some anti-seize on the rear derailleur's mounting bolt threads. - Kaden Gardener / Our Media

To replace a rear derailleur, you’ll first need to remove the chain if it’s installed. 

Then, simply undo the old rear derailleur’s mounting bolt. 

Lightly grease the threads of the new rear derailleur and install the new rear derailleur, taking care not to cross-thread it. Tighten the mounting bolt to the recommended torque – usually 5Nm.