Straightening the Derailleur Hanger

It's pretty easy to bend the derailleur hanger when you fall over to the right side. The derailleur hanger is the thing that sticks down behind the right dropout (rear wheel axle slot in the frame) to attach the rear derailleur. On some bikes, it's part of the frame. On most upper-end bikes, it's a separate piece of metal, designed to be replaced if it's damaged. (Even if the hanger is a separate piece of metal, you can use this technique to correct a minor warp. But, my suggestion is that you always have a replacement hanger available.)

A bent derailleur hanger can make the chain jump between rear cogs, can create "chain suck" on the front chainrings, or will make the chain jump off the front chainrings when backpedaling.

Removing the derailleur from the hanger.
Removing the derailleur from the hanger.
Using a hex wrench, unscrew the derailleur mounting bolt from the derailleur hanger. Leave the chain in place on the derailleur, letting the derailleur fall away from the hanger.
The best tool for the job is a derailleur straightening wrench. But most of us don't have one in the toolbox. A 10 mm fine-pitch bolt can be used for emergency tweaks of the derailleur hanger. Costs about a buck at the hardware store.
Bike shops have special tools to straighten the hanger.
Bike shops have special tools to straighten the hanger.
Bending the derailleur hanger by using leverage on the bolt.
Bending the derailleur hanger by using leverage on the bolt.
Turn your 10 mm, FINE-PITCH thread bolt into the derailleur hanger until it begins to come out the other side. (You can find a bolt like this at a hardware store. The longer the bolt is, the better it will work. Just make sure you get the fine-pitch thread, not standard thread.)

Grasp the bolt with your hand, or a wrench. Using the leverage at the end of the bolt, tweak the derailleur hanger until it appears straight.

Check the straightness of the hanger by confirming that it's 90 degrees from the main "plane" of the bike. Holding a carpenter's square against a 6-inch bolt, the square should parallel a string between the middle of the headset tube and the midpoint between the dropouts for the rear wheel.

Now test in the the up/down direction. Establish "vertical" along the seat tube. Sight along your carpenter's square to see if the your bolt needs to be tweaked upward or downward.

Checking to see if the hanger is straight. Test up/down and lengthwise.
Checking to see if the hanger is straight. Test up/down and lengthwise.
Putting the derailleur back on.
Putting the derailleur back on.
Now replace the derailleur. Twist it up and back (clockwise) from its usual position, so the tensioning screw is clear of the hanger, then tighten the hex bolt. Check the derailleur for position. If it's not right, take the derailleur off and tweak the hanger a little more.

Check and adjust the shifting of the derailleur . It's very likely that you tried to adjust the shifting before you realized the cause was a bent derailleur hanger. So, everything you messed up needs to be re-adjusted.