Medically reviewed by Amy Kwan, PT You can apply ice to your hamstring 2-3 times a day for about 20 minutes to decrease swelling. Make sure you get rest and do not move your injured leg to help with ...