If your chain clicks against a neighbouring sprocket after every shift, don’t start by turning the screws marked H and L. On a conventional cable-operated rear derailleur, the first adjustment is usually a small turn of the barrel adjuster. That can restore clean shifts without changing the stops that prevent the chain from leaving the cassette.
The indexing determines where the derailleur sits after each click of the shifter. Too little cable tension and the chain may hesitate before climbing onto the next larger sprocket; too much and the chain can be slow to return to a smaller one. The trick is recognising when this small adjustment is sufficient and when the symptoms point to a different mechanical fault.
Before indexing, rule out the problems a barrel adjuster cannot fix
Start by identifying the drivetrain. Most mechanical rear derailleurs use a cable to pull the derailleur towards the larger sprockets and a spring to return it towards the smaller ones. The following barrel-adjuster procedure applies to that common arrangement. An electronic derailleur uses a motor instead, and older reverse-action systems or unusual designs may require different instructions.
Secure the bicycle in a workstand or another stable support so the rear wheel can turn freely. Ensure the wheel is installed properly and the axle or quick-release skewer is tightened as specified. If the gears became noisy immediately after a wheel change, check the wheel and cassette before making any adjustment. A loose cassette, a wheel that has not seated correctly or differences in cassette spacing can all change where the sprockets sit relative to the derailleur.
Check that all the cable housing ends are seated in their stops, especially near the shifter and derailleur. A housing end that has slipped out of place can change the effective cable tension. Inspect the visible inner cable for rust, fraying or sharp bends. Do not pull a frayed cable through a shifter or try to solve a damaged cable by increasing tension.
Look from behind the bike at the relationship between the derailleur and cassette. If the bike has fallen onto its drive side, a bent hanger is possible. The derailleur can appear to work on one part of the cassette and be completely out of alignment on another. A proper hanger alignment tool is needed to confirm small errors. A severe bend, damage near the spokes or a loose mounting point should be dealt with before turning the cranks.
How to index mechanical rear gears
For a drivetrain that was previously working well, leave the cable anchor and limit screws alone to begin with. Find the barrel adjuster, which may be on the derailleur itself, on the shifter or fitted in line with the gear cable. Its threaded body changes the effective length of the cable housing and therefore the position of the derailleur.
Choose the smallest rear sprocket and turn the cranks forwards with light pressure. With a double chainring, use a front ring that gives a sensible chainline for this test. Click the lever once to select the next larger sprocket. Listen to the chain after the shift as well as watching how quickly it moves. A brief noise as it moves across is normal; a continuing chatter is the useful clue.
If the chain hesitates when moving towards the larger sprocket, the usual mechanical system needs slightly more cable tension. Unscrew the barrel adjuster anticlockwise by roughly a quarter of a turn, then try the same shift again. If the chain is reluctant to move back to the smaller sprocket, screw the barrel in clockwise to reduce tension. These directions refer to the adjuster as a threaded fitting: turning it out adds tension, turning it in removes tension.
Always return to the same starting gear after an adjustment. That keeps the test consistent, rather than judging one setting on one pair of sprockets and a different setting elsewhere. Use a quarter turn at a time and keep enough thread engaged for the adjuster to remain secure. If the barrel is approaching the end of its travel, the cable may need resetting according to the model’s instructions.
Once the lower part of the cassette works, move up through the remaining sprockets and back down. Keep the cranks turning gently throughout. A chain that sounds clean on the second sprocket but starts rubbing halfway across the cassette may need more investigation, rather than a larger adjustment. The guide to chain skipping under load explains other symptoms that point to wear or drivetrain damage.
What the H, L and B screws actually do
The high-limit screw, normally marked H, restricts how far the derailleur can move towards the smallest rear sprocket. The low-limit screw, marked L, controls movement towards the largest sprocket and the spokes. Neither screw is intended to correct noisy shifting between the middle gears. They are mechanical travel stops, not general indexing adjustments.
The distinction matters because a low-limit screw that allows too much inward travel can let the chain enter the spokes. Excessive outward travel can drop the chain beyond the smallest sprocket towards the frame. If either happens, stop pedalling immediately. A derailleur that cannot reach the largest or smallest sprocket may have an incorrect limit setting, but a cable tension or hanger problem can produce similar symptoms.
If a new derailleur has been installed or a limit setting is suspected to be incorrect, follow the procedure for that exact model. Inspect the relationship of the upper pulley and the relevant sprocket from behind the bicycle and adjust the stop only as directed by the manufacturer. Do not loosen the low limit in the hope of improving the middle gears. If the chain is approaching the spokes during testing, stop and correct the underlying fault before continuing.
The B screw on many derailleurs sets the spacing between the upper pulley and cassette. A pulley that sits too close to the larger sprockets can cause rough shifting or interference; a gap that is too large can make shifts slower. This setting is especially important with wide-range mountain bike and gravel cassettes. The required gap varies with derailleur and cassette model, and some modern systems use a dedicated setup gauge or a different installation procedure. There is no universal number of millimetres that works for every drivetrain.
Why the gears still skip or refuse to shift
A common frustration is getting the gears to work in one direction while they remain slow in the other. Cable friction is a likely cause. Increasing tension may help pull the derailleur towards the larger sprockets, but the spring then has to overcome the same friction when returning to the smaller ones. Worn housing, dirt, water or a kink in the cable can all produce this behaviour. Replacement is a better remedy than repeatedly compensating with the barrel adjuster.
A worn chain or cassette is a different problem. The bike may shift perfectly on a stand but jump under pressure when the rider starts climbing or accelerates. One or two frequently used sprockets can be affected while the rest of the cassette works normally. Check chain wear using an appropriate gauge and examine the cassette rather than assuming that the indexing is at fault. A new chain on a worn cassette can also skip. Our chain wear guide explains how to interpret the gauge.
A bent derailleur hanger often reveals itself through inconsistent indexing across the cassette. Moving the barrel adjuster may make the smaller sprockets sound perfect while making the larger ones worse. If the reverse also happens, verify hanger alignment. Do not attempt to straighten it by bending the derailleur cage by hand; a replacement hanger or professional alignment may be needed.
Check compatibility if any components have recently changed. A shifter, cable-operated derailleur and cassette must work together in terms of gear count and the movement produced by each click. Matching the number of sprockets alone does not guarantee compatibility across brands or component generations. A new wheel with a different cassette or a replacement derailleur that is not matched to the shifter can defeat even a carefully performed adjustment.
Electronic gears and modern direct-mount systems
For electronic systems, make small changes using the manufacturer’s trim or micro-adjustment procedure. Neither Shimano Di2 nor SRAM AXS has a conventional gear cable to tension. Don’t use instructions for one generation of electronic gearing on another without checking the model. A motor cannot correct a bent hanger or an improperly fitted cassette simply by moving further to one side.
Consult the manufacturer’s instructions for the installed system before entering adjustment mode. Check battery charge and the physical mounting first. If a new electronic drivetrain is not working correctly, confirm the required setup procedure and cassette compatibility rather than using a series of large trim changes to mask an installation error. Some direct-mount systems have different requirements from conventional hanger-mounted derailleurs, so the H, L and B screw instructions above do not automatically apply.
Test the gears before riding
Shift through every rear sprocket in both directions on the stand, turning the cranks slowly. Make sure the chain stays on the cassette and that no part of the derailleur or chain contacts the spokes. On a double chainring setup, check the normal usable combinations on each chainring; extreme cross-chaining may create noise that is not a rear indexing fault.
Take a short test ride away from traffic. Use light pedal pressure on the first changes and gradually increase the effort only when the shifts are smooth. If the chain jumps, the drivetrain is loose or there is any risk of the chain falling into the spokes, stop riding and have the fault checked. A quiet workstand test cannot guarantee reliable shifting under load. The bike maintenance guide covers several other checks worth making before the next long ride.




