How-to: Adjusting an MTB Rear Derailleur

Whether you run a Shimano or a SRAM drivetrain: here is how to set up the gears on your mountain bike or e-MTB properly.

Reading time:12 min
Author:Marisa
Created:27 Oct 2026
How To
Tech & Workshop
Written without AI
Three mountain bikers riding uphill on a rocky trail | © bc GmbH

A bicycle's gearing is a complex system in which several mechanical components work together. For everything to run smoothly and efficiently, they have to be perfectly matched to one another. Adjusting a derailleur system often looks more complicated than it actually is. What matters is understanding the mechanics: every screw has a specific job. Once you know what that job is, you know exactly which screw to turn to fix the problem.

Because most mountain bikes, e-MTBs included, now run a 1x drivetrain that only shifts at the rear, setting things up is less complex than it used to be with a rear derailleur and a front derailleur. In return, the fine adjustment needs to be rather more precise, because the gaps between the individual sprockets on the cassette are smaller than they once were. We will show you how to go about it in the next few steps.

Close-up of a SRAM Eagle AXS rear derailleur with cassette and colorful chain on a mountain bike | © bc GmbH
Modern 1x12 drivetrains are now the standard on mountain bikes. Here: SRAM GX Eagle.© bc GmbH

Good to know: compatibility and condition of your drivetrain components

For your gears to work well, they not only have to be adjusted correctly — the components themselves must be:

  • compatible with one another,
  • clean and well maintained,
  • and neither worn nor bent.

More on this later.

Close-up of a Santa Cruz mountain bike with drivetrain, cassette and rear suspension | © bc GmbH
And here: Shimano XTR. The way they work, however, is almost identical for both manufacturers.© bc GmbH

Overview of the rear derailleur's adjustment screws

Before we get to the actual adjustment, here is a quick overview of the three adjustment screws on a modern mechanical rear derailleur – using a SRAM Eagle 12-speed derailleur as the example. The screws, their function and their arrangement are the same on most SRAM and Shimano rear derailleurs. SRAM T-Type derailleurs are the exception.

1. B-screw (B-screw)

This screw sets the gap between the upper jockey wheel and the cassette. In doing so, it also changes how far the chain wraps around the sprocket in question.

2. L-screw (low limit screw)

This screw sets the inner limit of the derailleur's travel at the largest sprocket on the cassette.

3. H-screw (high limit screw)

This screw sets the outer limit of the derailleur's travel at the smallest sprocket on the cassette.

The MTB rear derailleur seen from behind. The H and L limit screws and the B-screw are marked with orange arrows.
Here you can see all the adjustment screws at a glance.© bc GmbH

Adjusting MTB gears: step by step

Now for the actual adjustment of the MTB rear derailleur. Step by step, we show you how to set the limit stops, the cable tension and the chain wrap correctly.

Adjusting MTB gears

  1. Setting the outer limit stop (H-screw)

    First, a general word on the derailleur's limit stops: the derailleur's range of travel is limited by the L-screw and the H-screw. This stops the derailleur from swinging too far inwards or outwards. If the setting is off, the chain can jump over the relevant sprocket when you shift into the easiest or hardest gear and jam between the cassette and the spokes, or between the cassette and the frame. 

    The outer limit stop is set first, using the H-screw (high limit screw). Ideally you make this first adjustment before the cable and chain are fitted. The H-screw limits the derailleur's travel at the lower end of the cassette. The “high” refers to the highest gear ratio, in other words the hardest gear, on the smallest sprocket. 

    Start by shifting onto the smallest sprocket. If the cable and chain are already fitted, reduce the derailleur's cable tension using the barrel adjuster on the shifter. You will find it where the housing meets the shifter. Wind the adjuster all the way in, that is clockwise when looking from the housing towards the shifter. Now you can set the derailleur with the H-screw. Turning it clockwise moves the limit stop inwards, towards the wheel. Turning it anticlockwise moves the limit stop further out, towards the frame. The aim is for the upper jockey wheel to sit exactly beneath the smallest sprocket on the cassette. 

  2. Clamping the shift cable and setting the cable tension

    Now the cable is clamped and the cable tension is set. As a rule of thumb: with the jockey wheel sitting beneath the smallest sprocket, the shift cable should be under minimal pre-tension. On the shifter, where the cable emerges, there is a small barrel adjuster that can be turned without tools. Wind it all the way in (clockwise) and then back out by one or two turns (anticlockwise) before you clamp a new cable. That leaves you enough room in both directions for the fine adjustments to come.

    If, with this setting, the shift cable is too tight or too slack at the derailleur, or if the jockey wheel does not sit exactly beneath the smallest sprocket, the cable clamp at the derailleur needs to be readjusted. If a shift cable has already been clamped and unclamped several times, it should be replaced to stop it snapping. Once the cable is clamped correctly, the excess can be cut off with a cable cutter. A ferrule is then crimped onto the cut end to protect it.

  3. Setting the inner limit stop (L-screw)

    Now we set the inner limit stop using the L-screw (low limit screw). To do this, shift onto the largest sprocket. The upper jockey wheel should now sit exactly beneath the largest sprocket – and should not move any further inwards even when you push the shifter right through. If the jockey wheel sits too close to the spokes, turn the L-screw clockwise until the jockey wheel sits exactly beneath the sprocket. The L-screw should now be just touching the derailleur.

    If you cannot shift the derailleur into the easiest gear, check whether it is being blocked by the limit stop. If it is, back the L-screw off a little by turning it anticlockwise. The setting is spot on when the derailleur shifts into the easiest gear only just, but without any resistance.

Special case: setting up the SRAM Eagle Transmission (T-Type)

Setting up a SRAM Eagle Transmission derailleur works in a fundamentally different way from a conventional derailleur – and is both simpler and quicker. Because the derailleur mounts directly to the frame, the conventional H-, L- and B-screws are done away with. Instead, the basic position is set using a setup key and a specified setup sprocket.

Close-up of a SRAM T-Type drivetrain with cassette, chain and electronic rear derailleur on a mountain bike. | © bc GmbH
Adjusting is a thing of the past: the mechanical Transmission, too, is fitted and ready to go in no time.© bc GmbH

Requirements for a well-functioning MTB drivetrain

Compatibility of the drivetrain components

To be able to set your gears up properly, every part of the drivetrain and the shifting system has to be compatible. The rear derailleur and the shifter must come from the same manufacturer and, ideally, from the same series. The number of speeds matters most of all: a 12-speed derailleur can only be operated by a 12-speed shifter from the same manufacturer, and only a 12-speed cassette and chain can be used with it. Shimano and SRAM parts should not be mixed. Doing so usually causes problems and, in the worst case, the gears stop working altogether. Compatible parts are available from other manufacturers too. Depending on the combination, however, the original components from the groupset manufacturer may deliver better shifting performance.

Close-up of a Santa Cruz mountain bike rear drivetrain with cassette, rear derailleur and chain | © bc GmbH
For the best performance, a single-brand, internally compatible system is essential. Here: Shimano XT 12-speed.© bc GmbH

Cleaning and lubricating your drivetrain components

Heavy dirt, particularly on the sprockets, chain and jockey wheels, can cause shifting problems. Cleaning and maintaining the drivetrain regularly and thoroughly is therefore important. Make sure the chain is clean and adequately lubricated and that the derailleur's pivots move cleanly and freely. After frequent washing, treat all the derailleur's moving parts and the jockey wheel bearings with a suitable lubricant.

Bicycle mechanic cleaning a mountain bike rear derailleur | © bc GmbH
Less dirt means less friction. Every moving part of the drivetrain has to be clean and lubricated.© bc GmbH

Checking the drivetrain components

Worn or loose components can also be behind shifting problems. So check the key components from time to time – and above all whenever you are having trouble shifting.

Chain: check the chain for stretch with a chain wear indicator. A badly worn chain can impair shifting performance and wear out other components as well.

Checking a bicycle chain with a chain wear gauge | © bc GmbH
Chain stretch is measured with a chain wear indicator.© bc GmbH

Cassette: take hold of the largest sprocket at two opposite points and try to move the cassette sideways. It should sit on the freehub without rocking or play. Also check that the cassette lockring and the thru-axle are tightened to the torque specified by the manufacturer. Then check the individual sprockets for wear. If the teeth are badly worn, bent or broken off, the cassette should be replaced.

This image compares two SRAM cassettes. A new one is on the left, while an older one with clear signs of wear is on the right.  | © bc GmbH
Clear enough: new and used. But when to replace? That is not always easy to judge. The cassette on the right is still in good shape.© bc GmbH

Rear derailleur: the derailleur must be bolted to the hanger securely and to the specified torque. Check whether it is damaged or has sideways play. The jockey wheels should not tilt sideways either, and their teeth should be neither worn nor damaged. Modern Shimano and SRAM derailleurs have a friction clutch that increases chain tension and so reduces chain slap. If you can push the derailleur cage forwards by hand with almost no resistance, the clutch may be worn – on a Shimano derailleur it may simply be switched off. Check that the lever is set to “on”.

Checking the rear derailleur on a mountain bike | © bc GmbH
Check the resistance of the cage as well as any play in the pivots and jockey wheels.© bc GmbH

Derailleur hanger: if the derailleur strikes a solid object, the hanger can bend or, in a heavier impact, even break. As a designed breaking point, the hanger can thus prevent more serious damage to the derailleur and the frame. A bent hanger makes it impossible to set the gears up cleanly. It can often be corrected with a hanger alignment tool. If it is cracked or clearly damaged, it should be replaced. Modern frames increasingly use the UDH standard (Universal Derailleur Hanger), which makes replacements easier to find. SRAM T-Type derailleurs mount directly to a UDH-compatible frame, need no separate hanger and are built to be very robust.

Shimano XT rear derailleur and cassette on a mountain bike | © bc GmbH
The derailleur hanger connects the frame and the rear derailleur.© bc GmbH

Shift cable and housing: the shift cable should move through the housing with as little friction and play as possible. Check the cable and housing and replace them if the cable runs stiffly. If the housing is worn, the cable can move sideways inside it. Given the few bends the housing inevitably makes on its way to the derailleur, that quickly translates into poorer shifting precision. In that case only replacement will help. When routing, aim for the largest possible radii and cut the housing cleanly and square with a cable cutter.

Tip: a specially coated shift cable lets you reduce friction even further.

Close-up of the rear derailleur of a mountain bike with cassette and bicycle chain: The mechanic checks the friction of the shift cable inside the housing.  | © bc GmbH
Check the friction of the shift cable inside the housing. Precise shifting is only possible with minimal friction!© bc GmbH
Mitarbeiterbild Marisa
About the author

Marisa

Marisa feels at home both on asphalt and off-road - whether gravel racing, bikepacking or taking on ultra-distance rides. At bc, she coordinates the Shop & Content team.

FAQ: adjusting an MTB rear derailleur

Yes. Depending on the groupset you need a cross-head screwdriver (Shimano) or an Allen key (SRAM Eagle), a little time and the right sequence: the limit stops first (H- and L-screw), then the chain wrap (B-screw), then the cable tension and finally the fine tuning. Check beforehand that the hanger, shift cable and jockey wheels are in good order – with a bent hanger the gears cannot be set up at all.

They are the limit stops: the H-screw (high) limits the derailleur's travel at the lower end of the cassette, the L-screw (low) its travel at the upper end. Set correctly, they stop the chain from dropping off either outwards or inwards. They do not govern the shifts in between – those come down to the cable tension.

The B-screw sets the gap between the upper jockey wheel and the sprockets. If the gap is too large, the derailleur does not shift cleanly. If it is too small, the jockey wheel hits the cassette and gets in the way of the shift. It is adjusted once the limit stops are set. Good to know: SRAM Eagle Transmission derailleurs no longer have a B-screw.

Shift onto the largest or second-largest sprocket (check the manufacturer's specifications) and make the gap between the upper jockey wheel and the sprocket as small as possible and as large as necessary: the jockey wheel must not touch the sprocket, but nor should it sit far away. Shimano specifies a gap of 5 to 6 mm for many groupsets; SRAM supplies its Eagle derailleurs with a chain gap gauge that lets you measure the gap directly and set it to the manufacturer's specification.

A proven sequence: 1) preliminary check (hanger straight, cable running freely, jockey wheels sound). 2) H-screw. 3) Attach the cable and set the tension roughly. 4) L-screw. 5) Chain wrap via the B-screw. 6) Fine-tune the cable tension at the barrel adjuster on the shifter until every gear runs cleanly and quietly. Don't forget to shift through the whole range.

Wear is usually the cause: a stretched chain and worn sprockets no longer mesh cleanly under load. So check chain stretch first, then the cassette. If both are fine, check whether one or more chain links are stiff. Only then is it worth looking at cable tension and the hanger.

With the barrel adjuster on the shifter or, on older models, on the derailleur. Rule of thumb: if it is slow to shift onto a larger sprocket, increase the cable tension by winding the adjuster out (anticlockwise when looking from the housing towards the shifter). If it overshoots or rattles towards a smaller sprocket, reduce the tension by winding the adjuster in (clockwise). Always work in quarter turns and test while turning the cranks.

Yes, but gently: the cassette has to be turning for the chain to move between sprockets – with a derailleur system it will not work at a standstill. Always ease off the pedals a little as you change gear. The exception is a SRAM Eagle Transmission derailleur: it is expressly built to shift under load as well.

The rear derailleur sits at the back and moves the chain across the sprockets of the cassette. The front derailleur sits at the front and shifts between the chainrings. Many modern MTBs run “1x”, that is without a front derailleur at all.

Unlike conventional systems, SRAM T-Type derailleurs bolt directly to the frame – which means your frame has to use the UDH standard. There are no H- and L-limit screws and no B-screw. The basic position follows from the setup key and a specified setup sprocket. Fine adjustment is done via the AXS app or the controller on the electronic groupsets, and with the barrel adjuster on the shifter on the mechanical ones (Eagle 90/70).

Typical signs: the gears cannot be set up cleanly despite careful adjustment, the chain skips, or the derailleur sits visibly askew in relation to the cassette. The hanger is the intended breaking point and bends even in minor crashes. An alignment tool helps you bring a bent hanger back into line. If it is cracked or clearly damaged, replace it. A UDH is always replaced, because it cannot be straightened.

At a workshop this is usually one of the cheaper jobs and is often part of a service. Your local workshop will tell you what it costs exactly. If you adjust the derailleur yourself, it costs you the right tools and around half an hour of your time. If the hanger, chain or cassette are worn, spare parts come on top.

The rear derailleur first. The reason: you set the front derailleur's limit stops in specific gear combinations, and you need to be able to select those combinations cleanly – which only works with a correctly adjusted rear derailleur. On a 1x drivetrain the question does not arise.