Self-care measures, such as rest and ice, might be all that's needed for an injury to one of the hamstring muscles.
Update Date: 13.12.2025
A hamstring injury involves straining or pulling one of the hamstring muscles — the group of three muscles that run along the back of the thigh. These muscles are attached to bones by tendons. The hamstring muscles start at the sitting bone at the lower back of your pelvis or the back of your thigh bone. They end at the shinbone on the lower leg.
Hamstring injuries often happen in people who play sports that involve sprinting with sudden stops and starts. Examples include soccer, basketball, football and tennis. Hamstring injuries also can occur in runners, especially sprinters, and in dancers.
Self-care measures such as rest, ice and pain medicine are often all that is needed to relieve the pain and swelling of a hamstring injury. Rarely, surgery is needed to repair a hamstring muscle or tendon.
A hamstring injury typically causes sudden, sharp pain in the back of the thigh. There also might be a "popping" or tearing sensation.
Swelling and tenderness usually develop within a few hours. There might be bruising or a change in skin color along the back of the leg. Some people have muscle weakness or are not able to put weight on the injured leg.
Mild hamstring strains can be treated at home. But see a healthcare professional if you can't bear weight on the injured leg or if you can't walk more than four steps without a lot of pain.
The hamstring muscles are a group of three muscles that run along the back of the thigh from the hip to just below the knee. The muscles are attached to the bone by tendons. The hamstring muscles make it possible to extend the leg back and to bend the knee. Stretching or overloading any one of these muscles beyond its limit can cause injury.
Hamstring injury risk factors include:
Returning to tiring activities before hamstring muscles are completely healed might cause the injury to happen again.
If the tendons attaching the muscles to the pelvis bone or the shin bone are completely torn off the bone, the hamstring muscles won't work as they should. Surgery may be needed to reattach the tendons.
Being in good physical condition and doing regular stretching and strengthening exercises can lessen the risk of a hamstring injury. Try to be in shape to play your sport. Don't try to get in shape by playing your sport.
If you have a job that is physically demanding, staying in shape can help prevent injuries. Ask your healthcare professional about good exercises to do regularly to avoid injury.
To diagnose a hamstring injury, a healthcare professional does a physical to check for swelling and tenderness along the back of the thigh. Where the pain is and how bad it is can give useful information about the damage.
Moving the injured leg into different positions helps pinpoint which muscle is hurt and whether there is damage to ligaments or tendons.
In severe hamstring injuries, the muscle can tear, or the muscle tendon can separate from the pelvis or shinbone. When this happens, a small piece of bone can be pulled away from the main bone. This is known as an avulsion fracture. X-rays can check for avulsion fractures, while ultrasound and MRIs can show tears in the muscles and tendons.
The first goal of treatment is to reduce pain and swelling. A healthcare professional might suggest the following:
Your healthcare professional or physical therapist can show you how to do gentle hamstring stretching and strengthening exercises. After the pain and swelling go down, your care team can show you how to do exercises to build more strength.
Most partial hamstring tears heal over time with physical therapy and do not require surgery. If the muscle tendons have pulled free from the pelvis or the shinbone, orthopedic surgeons can reattach them. Serious muscle tears also may need to be surgically repaired.
An emerging treatment option is platelet-rich plasma (PRP) therapy. This treatment involves taking a sample of your own blood and separating out the platelets and other healing factors. The solution of platelets and healing factors is then injected into the injured area. Researchers are still exploring the best way to use PRP, but it has shown promise in the treatment of muscle injuries.
To care for a minor hamstring injury yourself, try the R.I.C.E. approach:
Pain medicine you can get without a prescription, such as ibuprofen (Advil, Motrin IB, others) and acetaminophen (Tylenol, others), also might help. After a few days, start using your injured leg gently. Over time, your leg should get better at supporting your weight and moving without pain.
You might first talk with your primary healthcare professional. You might be referred to an expert who practices sports medicine or does orthopedic surgery.
Make a list that includes:
Your care team might ask some of the following questions:
© 2026 Mayo Foundation for Medical Education and Research. All rights reserved. Terms of Use