Rest is the first treatment for a hamstring injury. Rest your injury completely. Do not consider exercising your leg for at least 48 to 72 hours. Many people choose to walk on crutches for a few days to completely rest their leg.
Place an ice pack covered with a soft cloth against your hamstring for 10 to 20 minutes to reduce swelling. Never ice your hamstring for more than 20 minutes. It’s easiest to place the ice pack under your leg when you are sitting down.
Wrap your leg in an ace bandage to reduce swelling but make sure not to wrap the hamstring too tightly. The compression of the ace bandage helps reduce the swelling of the pulled muscle.
Elevate your leg across some pillows, making sure to lift the foot above the chest area. Elevation helps stimulate circulation in the leg that allows the muscle to heal.
Gentle massage and stretching are important for rehabilitating a pulled hamstring. Make sure not to massage too roughly and perform careful stretches to prevent re-injury.