null
Sport Factory Blog

How to Adjust a Rear Derailleur: Step-by-Step Guide

Posted by Matt Russ

How to Adjust a Rear Derailleur: Step-by-Step Guide

Mechanic adjusting a rear bicycle derailleur

To adjust a rear derailleur, work in a fixed order: confirm the hanger is straight, set the high and low limit screws, set cable tension with the barrel adjuster, then set the B-tension gap and test under load. Skip the order and you chase the same noise around the drivetrain. Follow it and most shifting problems clear up in 15 to 30 minutes with a few hex keys and a clean workspace.

This guide is for riders who know their way around a bike but have not set up a derailleur from scratch: road and gravel riders, triathletes, and mountain bikers. Each step says what to do, what goes wrong, and when the problem is a worn or bent part rather than a setting.

Sportfactoryproshop
sportfactoryproshop.com
Find the Right Parts for Your Setup
Explore cycling components and gear from trusted brands, selected for engineering quality and rider-focused performance.
Visit

TL;DR

  • Check the derailleur hanger, chain, cassette and cable housing first. No screw setting fixes a bent hanger or a gritty cable.
  • Set the limit screws so the chain cannot fall off either end of the cassette, then set cable tension with the barrel adjuster in quarter-turn moves.
  • Set the B-tension gap, usually 5 to 6 mm on road and many mountain setups, so the upper pulley clears the cassette without rattling.
  • Test under pedaling load, then recheck after a few rides, because a new cable settles in quickly.
  • If shifting is still poor after a clean adjustment, replace the worn part: cable and housing, hanger, chain or cassette.

Table of Contents

Check these four things before you touch a screw

Most “bad adjustment” is not an adjustment problem. A two-minute inspection saves an hour of tuning.

Derailleur hanger. The hanger is the small replaceable metal tab that connects the derailleur to the frame. It bends in a fall or when a bike is knocked over on the drive side. SRAM lists the signs of a bent hanger: the upper pulley wheel looks askew relative to the cassette, the chain shifts off either end of the cassette, or some gears shift smoothly while others do not. Look at the derailleur from behind the bike. The cage should hang straight and parallel to the cogs. If it does not, adjusting will not help; a straightening tool or a new hanger will. Our derailleur hangers page lists replacements.

Chain and cassette wear. A stretched chain on worn cogs skips and ghost-shifts no matter how well the derailleur is set. BikeRadar advises checking chain and cassette wear as part of any adjustment. We cover how in when to replace a chain and how to check for a worn cassette.

Cable and housing. Look for fraying at the ends, cracked housing and kinks. Dirt inside the housing adds friction, and friction makes the derailleur respond unevenly. BikeRadar’s Oscar Huckle notes that when downshifts are responsive but upshifts are not, dirty inner cables or housing are a likely cause, and lubricating or replacing them is the right fix rather than more barrel adjuster turns.

Check these four things before you touch a screw

Mounting bolts. Confirm the derailleur bolt, crankset and cassette lockring are tightened to the manufacturer’s torque specification, as BikeRadar recommends. Torque values are printed on the part or in its manual.

What you need

  • A bike stand, or a way to lift the rear wheel so the cranks turn freely
  • 2, 2.5, 3, 4 and 5 mm hex keys, plus a small Phillips or flathead screwdriver for the limit screws
  • A 5 or 6 mm hex key to measure the B-gap
  • Cable cutters and an end cap if you replace the cable
  • A clean rag and chain-safe degreaser
  • A torque wrench if you want to hit the cable pinch bolt spec exactly

A quick note on terms. Indexing means each click of the shifter moves the derailleur exactly one cog. The barrel adjuster is the knurled knob where the cable enters the derailleur or shifter; it changes cable tension without tools. The limit screws are the two small screws marked H and L that stop the derailleur from traveling too far toward the small or big cog.

Set up the bike for adjustment

Put the bike on a stand so the rear wheel spins freely. Clean the derailleur, pulleys and chain with a rag, because a gummy drivetrain makes it hard to hear and see what is happening. Shift the front derailleur to the large chainring (or the middle ring on a triple). Shift the rear to the smallest cog and click the shifter until no more clicks remain. This is your starting position.

On a 1x mountain or gravel drivetrain there is only one chainring, so the chain simply stays on it. The steps below are the same.

Set up the bike for adjustment

Step 1: Set the high limit screw

The H screw controls how far the derailleur can move toward the smallest cog. Set too loose, the chain drops off the small cog toward the frame. Set too tight, the chain cannot reach the small cog and shifts to it sluggishly.

  1. Take cable tension out of the picture. BikeRadar’s method is to set the high limit with the gear cable disconnected, using the larger chainring on a 2x drivetrain or the middle ring on a 3x. If the cable is attached, wind the barrel adjuster fully in first so the cable is not holding the derailleur out of position.
  2. Turn the crank by hand. The chain should run smoothly on the smallest cog without clicking, jumping or rubbing the second cog.
  3. If the chain will not reach the small cog, back the H screw out a quarter turn. If it is noisy or tries to jump to the next cog, turn the H screw in a quarter turn.
  4. As a visual guide, the upper pulley should sit directly under the smallest cog.

Where it goes wrong: riders mix up the H and L screws. They are usually stamped on the derailleur body. Move only the screw marked H, and move it a quarter turn at a time. Large turns overshoot the sweet spot and you end up redoing the step.

Step 2: Set cable tension

Cable tension is what makes indexing work. The cable has to be taut enough that the derailleur moves precisely one cog per click, but not so tight that it pulls the derailleur early.

  1. Shift the chain to the smallest cog.
  2. Wind the barrel adjuster fully clockwise (in), then back out one turn. Leaving room both ways lets you fine-tune later. BikeRadar describes this wind in, then out one turn approach.
  3. Loosen the cable pinch bolt, pull the cable taut by hand and retighten the bolt. The torque varies by derailleur; BikeRadar’s example is 5 Nm on a Shimano Sora derailleur, so check your model’s manual.
  4. If you cut a new cable, trim the tail and crimp an end cap on it so it cannot fray or snag the chain.

New cables deserve special mention. SRAM notes that new cables commonly go out of adjustment quickly because the cable ends compress into place, creating slack, rather than the cable physically stretching. Plan to touch up the barrel adjuster after the first few rides.

If you are replacing cables, our cables, housing and hoses category carries SRAM, Shimano and other brands, so you can match the housing to your shifters.

Step 3: Set the low limit screw

The L screw controls how far the derailleur can travel toward the largest cog. Set too loose, the chain falls into the spokes, which can wreck a wheel and a derailleur. Set too tight, the chain will not climb onto the big cog.

  1. Shift to the largest chainring (or the middle on a triple) so the chain is not at an extreme angle.
  2. Push the derailleur by hand toward the largest cog. BikeRadar’s approach is to wind the L screw out until the chain moves to the biggest cog without jumping or clicking.
  3. An alternative: put the chain on the second-largest cog and slowly unwind the L screw until the chain jumps to the biggest cog, then back it in slightly.
  4. Turn the cranks and confirm the chain sits on the big cog quietly. The pulley should be under that cog, with no sign the chain wants to climb over it.

Where it goes wrong: if you only test at the stand, the chain looks fine. Shift to the big cog and pedal at the same time, then check again on a ride. The low limit is a safety setting. Err toward slightly tight, then loosen until the big cog is reachable.

Step 4: Fine-tune indexing with the barrel adjuster

Now connect the shifter to the derailleur’s real behavior. Start on the small cog and click the shifter once at a time while turning the cranks.

  • Chain is slow to climb to a larger cog, or will not move: add tension by turning the barrel adjuster counter-clockwise a quarter to half turn.
  • Chain is noisy, or jumps past the cog you wanted: remove tension by turning the barrel adjuster clockwise a quarter to half turn.

Bicycling offers a memory trick: if the chain skips when shifting to a lower gear, give the barrel adjuster a half turn counter-clockwise, and think L for lower and left turn. A higher gear needs a half turn clockwise.

Work up the cassette one click at a time, then back down. Make small moves and check after each. A common beginner mistake is over-correcting: three full turns when a quarter turn would have been enough. If the shifting is clean in both directions, you are done. If the top gears are crisp but the bottom ones are not, the cable run may be dirty or the hanger bent.

If you ride with bar-end or integrated shifters and the lever feel is the issue, browse our shifters and bar end shifters.

Step 5: Set the B-tension gap

The B-tension screw sets how close the upper pulley sits to the cassette. It matters most when you change cassettes or derailleurs, and it is the step many quick guides skip.

  1. Put the chain on the largest cog (and the smallest chainring on a double or triple).
  2. Turn the B screw so the upper pulley is close to the cog but does not touch it. Shimano’s instructions say to set the guide pulley as close to the sprocket as possible without touching, then confirm there is no contact with the chain on the smallest sprocket.
  3. Use a number as a check. BikeRadar says most manufacturers recommend a gap of 5 to 6 mm, and a 5 or 6 mm hex key works as a gauge. Turning the screw clockwise increases the gap and counter-clockwise closes it. Bicycling suggests 6 to 7 mm for best performance, so stay inside the range your derailleur’s manual gives.

Too close and the chain makes a rumbling sensation as you pedal. Too far and the shifting turns sloppy, as Huckle explains. Some mountain bike derailleurs use different figures by mode. Shimano’s MTB manual lists 5 to 6 mm for the freeride setting and 10 to 11 mm for downhill on the RD-M820 and RD-M640, and says the B-tension must be redone if you change the cassette’s tooth count.

Step 6: Test it under load

A bike on a stand does not feel what a bike on the road feels. Take a short ride on flat ground, then:

  • Shift up and down through the whole cassette while pedaling steadily.
  • Shift under moderate pressure, as you would when a hill starts.
  • Check the extremes: the smallest cog and the largest cog, to make sure the chain stays put.
  • Listen for ticking or rumbling in any single gear.

Recheck the barrel adjuster after a few rides, as new cable settles. This is normal and takes a minute.

Troubleshooting: what the symptom tells you

Symptom Most likely cause What to do
Chain drops off the small cog toward the frame H limit too loose Turn the H screw in a quarter turn
Chain falls into the spokes from the big cog L limit too loose Turn the L screw in a quarter turn
Chain slow to climb to a larger cog Not enough cable tension Barrel adjuster out, quarter turn
Chain noisy or overshoots a cog Too much cable tension Barrel adjuster in, quarter turn
Some gears fine, others not Bent hanger, worn cassette or dirty cable Inspect hanger and drivetrain wear
Rumbling in the big cogs B-gap too small Turn the B screw clockwise
Sloppy shifts across the range B-gap too large Turn the B screw counter-clockwise
Upshifts poor, downshifts fine Dirty inner cable or housing Lubricate or replace cable and housing

If you hit your derailleur on a mountain bike ride and shifting went strange, check whether it simply rotated. On SRAM Eagle Transmission, the Full Mount is designed to rotate in a frontal impact, and a trailside reset may be needed by hand or with the rear axle. Do not loosen the 8 mm derailleur mounting bolt while the axle is under torque.

When adjusting is not enough

If you have worked through every step and the shifting still drifts or skips, stop turning screws and look at the parts:

  • Cable and housing. Fresh cable and housing fixes more shifting complaints than any other single replacement. Grit inside old housing creates friction, so the derailleur does not return consistently.
  • Pulley wheels. Worn or sticky guide and tension pulleys add noise and slow shifts. We stock derailleur pulley wheels from SRAM, Shimano and CeramicSpeed.
  • The derailleur itself. A derailleur with a worn parallelogram or bent cage cannot hold a setting. Our rear derailleurs and pulleys range lets you match your drivetrain.
  • Chain and cassette. A worn pair ghost-shifts on every setup. Replace them together when the chain has stretched too far, so the new chain does not skip on old cogs.

Get the parts for a clean setup

A good adjustment starts with parts that hold a setting. Sport Factory Pro Shop sells rear derailleurs, derailleur hangers, shifters, cables and housing, and pulley wheels for road, gravel and mountain drivetrains, along with tires, pedals, pumps and inflation systems, lights, tools and apparel. If your tune-up turned up a bent hanger or tired cables, you can shop our bike components and have the fix on its way.

Sportfactoryproshop

Riders who want to keep tires inflated and the bike tuned on the road can also browse pumps, inflation systems and maintenance tools.

Our view: adjust less, replace the right thing sooner

We see the same pattern in how riders approach shifting: a drivetrain that feels off gets a dozen small barrel adjuster turns, when the real fix is one worn part. The order in this guide is built to prevent that. Check the hanger, cable and wear first. Then set the limits, tension and B-gap once, properly.

Competitive riders and triathletes feel a skipped shift the most, because it costs power at the worst moment. Mountain bikers feel it when the chain drops under load on rough ground. In both cases, a straight hanger, fresh cable and housing, and a clean, well-matched drivetrain give you a setting that stays where you put it.

That is why we focus on components chosen for engineering quality and rider-focused features, and why our shop includes the small parts, such as hangers, cables and pulley wheels, that decide whether an adjustment lasts. A precise tune on good parts beats a constant tune on tired ones.

Coach Matt

FAQ

How do I adjust the H and L screws on a derailleur?

The H screw limits travel toward the smallest cog, and the L screw limits travel toward the largest. Turn each a quarter turn at a time until the chain runs quietly on that end cog without jumping off or refusing to climb onto it. Always confirm the screw is marked H or L before turning it.

How do I fix a misaligned rear derailleur?

Start with the hanger. Look from behind the bike: if the cage is not parallel to the cogs, the hanger is bent, and screw adjustments will not correct it. Straighten it with an alignment tool or replace it, then repeat the limit, tension and B-gap steps.

What position should the rear derailleur be in when I adjust it?

Place the chain on the smallest cog and the large chainring (the middle ring on a triple), and click the rear shifter until no clicks remain. That gives you a neutral starting point for the high limit and cable tension. On a 1x drivetrain, just start on the smallest cog.

How do I reset a rear derailleur?

For a standard derailleur, resetting means returning to the starting position: back the barrel adjuster to a mid-range position, re-seat the cable under the pinch bolt, and run through the limit, tension and B-gap steps. On a SRAM Eagle Transmission that rotated after an impact, follow the maker’s reset using the alignment marks, by hand or with the rear axle.

Sources