Most shifting problems get fixed by turning the barrel adjuster at random until things get worse. The fix is to work in order: rule out the parts adjustment can’t fix, set the two limit screws so the derailleur can’t throw the chain off either end, then set cable tension so each click moves exactly one cog.
This guide is for cable-operated rear derailleurs. Electronic systems use the same limit screws and B-tension, but indexing is done in their own adjustment mode.
Tools & specs
Tools
- Hex keys Usually 4 mm and 5 mm for the cable clamp and mounting bolt
- Small screwdriver Phillips or a 2.5 mm hex key for the limit screws, depending on the model
- Repair stand Or a friend to lift the back wheel
Supplies
- New gear cable and housing, if the old one is frayed or sticky
Specs
| Spec | Value |
|---|---|
| Cable clamp bolt Typical for Shimano and SRAM. Check your derailleur’s manual. | 5–7 Nm |
| Derailleur mounting bolt Typical value. Check your derailleur’s manual. | 8–10 Nm |
| B-tension gap SRAM Eagle and Shimano 12-speed mountain derailleurs use a gauge. About 5–6 mm is a common starting point on older and road systems. | Model specific |
Check before you adjust
Rule out a bent hanger
Shift to the largest cog and look at the derailleur from directly behind the bike. The two jockey wheels should sit in a vertical line under the cog. If the cage leans in toward the spokes, the hanger is bent and no cable adjustment will fix the shifting.
Straighten the hanger with a hanger alignment gauge or replace it before going further.

Check the chain and the cable
A worn chain or a dirty, frayed cable looks exactly like a bad adjustment. Check chain wear, and look at the cable where it enters the derailleur and the shifter.
Shift through the gears with the wheel off the ground. If shifts are slow in both directions, suspect friction in the cable and housing and replace them first.
Set the limit screws
Release the cable
Shift to the smallest cog, then loosen the cable clamp bolt so the cable hangs free. The derailleur now rests against its high limit, which is what you’re about to set.
Set the high (H) limit
From behind, the upper jockey wheel should sit directly under the outer edge of the smallest cog. Turn the screw marked H: clockwise moves the derailleur in toward the wheel, counterclockwise lets it move out.
Turn the pedals. The chain should run quietly on the smallest cog with no sign of dropping off onto the frame.

Reattach the cable
Screw the barrel adjuster all the way in, then back it out one full turn so you have adjustment in both directions. Pull the cable snug by hand, route it the way the derailleur shows, and tighten the clamp bolt.
Cable clamp: 5–7 Nm
Set the low (L) limit
Shift one click at a time into the largest cog. Then push the derailleur body gently toward the spokes by hand. It should stop with the upper jockey wheel lined up under the largest cog and never touch the spokes.
Turn the screw marked L clockwise to stop it moving further in, counterclockwise to let it reach.
Caution: If the derailleur can reach the spokes, the chain can drop into them and destroy the wheel, the derailleur and the hanger. Set this before you ride.
Index the gears
Tune the first shift
Shift back to the smallest cog, then click once. If the chain doesn’t climb onto the second cog, or is slow to, add tension by turning the barrel adjuster out (counterclockwise) a quarter turn at a time.
Fine-tune across the cassette
Shift through every gear while turning the pedals. Slow to climb to bigger cogs: add tension (barrel adjuster out). Slow to drop to smaller cogs: reduce tension (barrel adjuster in).
You want one cog per click and a chain that runs silently in every gear.
Tip: In a middle gear, a chain that rattles against the next bigger cog means tension is slightly high. One that rattles against the next smaller cog means it is slightly low.
Set B-tension and test
Set the gap in the largest cog
Shift to the largest cog. The B-tension screw, at the back of the derailleur near the hanger, sets the gap between the upper jockey wheel and the cog. Too close and the jockey wheel chatters on the cog; too far and shifting goes vague.
Many current derailleurs specify an exact gap or come with a gauge, so check the manual. As a starting point on many road and older systems, about 5–6 mm works.

Recheck and test ride
B-tension changes how the derailleur meets the cassette, so run through the gears once more. Then test ride and shift under light and moderate pedaling. Small barrel adjuster corrections are normal once a new cable settles in.
Troubleshooting
Still not right? Find the symptom, check the cause, apply the fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| Chain skips or won’t settle in some gears | Cable tension slightly off, or a worn chain or cassette | Adjust tension in quarter turns. Check chain wear. |
| Chain falls off into the spokes | Low limit too loose, or a bent hanger | Set the L screw and check hanger alignment. Inspect the spokes for damage. |
| Chain drops off the smallest cog onto the frame | High limit too loose | Turn the H screw clockwise until the jockey wheel lines up under the smallest cog. |
| Can’t reach the largest cog | Low limit too tight, or not enough cable tension | Back the L screw out a little and add cable tension. |
| Slow shifting in both directions | Friction from dirty, kinked or frayed cable and housing | Replace the cable and housing. |
| Chatter or rattle in the largest cog | B-tension gap too small | Turn the B-tension screw in to increase the gap. |
| Shifts fine in the stand but slips when you push hard | Worn chain or cassette | Check chain wear. Slipping only under load is usually wear, not adjustment. |
Questions
Which way do I turn the barrel adjuster?
Turning it out, away from the part it screws into, adds cable tension and moves the chain toward bigger cogs. Turning it in reduces tension.
How can I tell if my derailleur hanger is bent?
From behind, the derailleur cage should run parallel to the cogs. If it leans toward the spokes, or the shifting went bad after the bike fell on that side, suspect the hanger.
Does this work for electronic groupsets?
Limit screws and B-tension work the same way. Indexing is done in the system’s adjustment mode or app instead of with a barrel adjuster.