How to adjust a rear derailleur
A step-by-step guide to stopping skipped gears and ghost shifts, for when you're doing the adjustments at home.
More guidesHow a rear derailleur works
A rear derailleur moves your chain sideways across the cassette, the cluster of sprockets on your back wheel, so you get a different gear. To hold the chain in exactly the right spot, for every gear, every time, the parts all have to be in line and work together.
We wrote this guide with AI. Check anything that affects your safety with a bike shop or the maker's instructions.
The cable and the spring pull in opposite directions
Shift to an easier gear and the shifter pulls in a length of cable. That cable drags the derailleur sideways, towards the larger sprockets. Shift the other way and the cable releases, and a spring built into the derailleur pulls it straight back towards the smaller sprockets. The derailleur never has to decide where to sit. It just settles wherever the balance between cable pull and spring pull puts it, which is why getting that cable tension right matters so much to how cleanly it shifts.
Limit screws set the edges it can't cross
Two small screws, usually marked H and L, stop the derailleur travelling further than it should in either direction.
- The H (high limit) screw stops it moving too far towards the smaller sprockets, where the chain could run off the edge of the cassette.
- The L (low limit) screw stops it moving too far towards the larger sprockets, where it can jam against the wheel or the frame.
Between them, these two screws give the cable and spring a lane to move in that's no wider than the cassette itself.
The B-tension screw sets the gap to the cassette
A third screw, the B-tension screw, doesn't affect sideways movement at all. It tilts the derailleur on its mounting bolt, adjusting how close the upper pulley wheel, the small toothed wheel nearest the cassette, sits to the sprockets. Too close and the chain can catch on the largest sprocket. Too far and shifting feels slow and vague, even when the cable tension is spot on. It's a small adjustment, and an easy one to overlook.
Setting the limit screws, cable tension and B-screw
If you'd rather not do it yourself, or you're unsure about any step, a bike shop can.
Three separate adjustments control how a rear derailleur shifts: the limit screws, the cable tension, and the B-screw. Each one fixes a different symptom, so it helps to know which is which before you start turning anything. You'll need a 5mm Allen key for the derailleur's mounting and cable bolts, and a small flat or Phillips screwdriver for the limit screws, depending on the model.
Setting the high and low limit screws
The limit screws stop the derailleur moving further than it should in either direction. Go too far one way and the chain can jump off the smallest sprocket and jam against the frame; go too far the other and it can run off the largest sprocket and into the spokes. Most derailleurs mark them H (high gear, smallest sprocket) and L (low gear, largest sprocket).
- Shift to the smallest sprocket and the smallest chainring, then look along the chain from behind the bike.
- Turn the H screw until the upper jockey wheel (the small pulley that guides the chain through the derailleur) sits directly under the smallest sprocket.
- Shift to the largest sprocket and repeat the check with the L screw, lining the jockey wheel up under the largest sprocket.
- Shift through the full range once more and confirm the chain doesn't try to climb past either sprocket at the extremes.
Dialling in cable tension
Once the limits are set, cable tension decides how precisely each shift lands. Too little tension and upshifts (moving to a larger sprocket) feel sluggish or don't happen at all; too much and the chain overshoots and makes noise against the next sprocket along.
- Shift to the smallest sprocket, where cable tension should be at its lowest.
- Shift one gear at a time towards the largest sprocket, listening and watching for hesitation or noise.
- If an upshift is slow, add tension by turning the barrel adjuster (the knurled dial on the cable, usually near the derailleur or shifter) a quarter turn counterclockwise.
- If the chain overshoots or rattles on a downshift, remove a little tension by turning the barrel adjuster clockwise.
- Repeat through the full range of sprockets until every shift, up and down, happens on the first click.
Adjusting the B-screw for chain-to-cassette clearance
The B-screw sets the gap between the upper jockey wheel and the cassette (the cluster of sprockets on the rear wheel). Too little clearance and the jockey wheel can catch on the largest sprocket's teeth, especially under load; too much and shifting feels vague because the chain has further to travel before it engages a new sprocket.
- Shift to the largest sprocket at the back and the largest chainring at the front, the combination that puts the most strain on this clearance.
- Turn the B-screw to bring the jockey wheel closer to or further from the cassette, aiming for a small, consistent gap.
- Turn the pedals by hand and check the gap stays even as you shift back down through the sprockets.
Get all three right and the derailleur should shift cleanly across the whole cassette without hesitation, noise or chain rub. If it still doesn't, the cause is usually somewhere other than adjustment, which is worth ruling out before you keep tweaking the same two screws. If you're thinking about a wider drivetrain upgrade, Is a Groupset Upgrade Worth It? helps you weigh that first. The other maintenance guides are on the guides page.
Before you ride, run through every gear and check the chain can't drop off either end.
When adjustment won't fix the problem
Sometimes a rear derailleur keeps skipping or shifting badly no matter how carefully you set the limit screws and cable tension. That usually means something other than adjustment has gone wrong, and no amount of fiddling with the barrel adjuster will put it right. If you're thinking about different gears altogether, the gear ratio calculator shows the ratio for any chainring and sprocket pair.
A bent derailleur hanger
The derailleur hanger is the small metal bracket that bolts the derailleur to the frame, and on most bikes it's designed to bend or snap in a crash rather than let the impact wreck the frame itself. A bent hanger throws the derailleur out of line with the cassette, the cluster of sprockets on the rear wheel, so every gear shifts slightly wrong even after a fresh adjustment. The giveaway is a derailleur that leans visibly inward or outward when you look along the bike from behind, or shifting that's consistently worse in one or two gears than the rest. A hanger alignment tool can straighten a mild bend, but a hanger that's badly twisted or cracked needs replacing rather than bending back.
Worn cable and housing
The cable that pulls the derailleur across the cassette runs inside a plastic-coated housing, and both wear over time. Frayed strands inside the cable, a kink in the housing, or grit that's worked its way in all add friction, so the derailleur hesitates or lags behind what the shifter is asking for even with the tension set correctly. If shifting improves for a few rides after an adjustment and then drifts back to the same hesitant feel, worn cable and housing rather than tension is usually the cause, and replacing them restores the sharp response.
When a bike shop is the better call
A mild hanger bend and a cable swap both sit within reach of a home mechanic with the right tools. A hanger that's badly bent, cracked or sheared off, or a derailleur that's been pulled into the spokes, is a different problem: the frame or wheel may need checking too, and that's worth a bike shop's eye before you spend money on new parts.