Sometimes, carefully
A slightly bent derailleur cage can sometimes be eased back into line by hand. The cage is the pair of plates that hold the chain. Use light, gentle pressure only, and check the result often. Bending metal repeatedly weakens it, so a cage that has been bent back and forth several times is a sign to replace it.
If the cage is cracked, badly twisted, or won’t stay in line after a small adjustment, replace it rather than trying to bend it back.
Cage or hanger?
It helps to know which part is bent before you start. The cage holds the chain and the pulleys. The hanger is the bracket that bolts the derailleur to the frame. After a crash, the hanger is often the part that bends, and the cage can be fine, or the other way around.
From behind the bike, check whether the derailleur sits in line with the cassette. If it leans in or out, the hanger is the likely problem. If the derailleur sits straight but the cage plates look out of line with each other or with the chain, the cage may be bent.
Check the cage plates
Look at the cage plates against the chain with the chain on a middle cog. The plates should run parallel with the chain, and the pulleys should line up with the cassette. A cage that’s been knocked will often show an uneven gap between the plates or an angle that doesn’t match the chain.
Check after any crash, even if the shifting seems fine, since a small bend can still cause rubbing or skipping.
Ease a minor bend back
If the bend is small, support the cage with one hand and use gentle pressure with the other to move it back toward true. Make only a small change, then recheck the alignment against the chain. Stop when the plates line up.
Don’t try to bend the cage far in one go. A large bend in a single move can crack the metal. If the cage is hard to move, or the plates spring back, stop and consider replacing it.
Check the hanger too
A cage that’s been straightened can still rub or shift badly if the hanger is out of alignment. Check the hanger after you’ve worked on the cage. How to straighten derailleur hanger covers the hanger side. Signs bent derailleur hanger problems can help you spot a bent hanger before you tune the derailleur.
When to replace the cage
Replace the derailleur if the cage is cracked, if the plates are badly bent, or if the cage won’t hold its alignment after adjustment. A shop can check whether the derailleur and hanger are worth keeping or should be replaced together.