The hamstrings are the muscle group at the back of the thigh. They are the biceps femoris, the semitendinosus and the semimembranosus1. All three start near the bottom of the pelvis, cross the knee and end on the lower leg5. They help you extend the leg straight back and bend the knee5.
Hamstrings (hamstring muscles, hammies) at a glance
The hamstrings cross two joints, so they work at both the hip and the knee
The hamstrings start at the ischial tuberosity, the bony point at the bottom of the pelvis that you sit on5. They cross the knee and end on the lower leg5. The biceps femoris is the most lateral of the three. It ends on the head of the fibula, the thin bone of the lower leg2. The semimembranosus and semitendinosus lie on the inner side of the thigh3. They end on the tibia, the shin bone3, 4. The short head of the biceps femoris is the exception at the top: Kenhub says it starts on the femur, the thigh bone, and so acts only on the knee2.
At the hip they extend the thigh, moving it backward. At the knee they flex it, which bends the leg2, 5. Kenhub adds that they help stabilise the pelvis. It also describes the hamstrings as accessory stabilisers on the inner side of the knee4. StatPearls says the group plays a part in everything from upright posture to sprinting and jumping1.
All three muscles get their nerves from the sciatic nerve, and the short head of the biceps femoris has its own branch
All three muscles get their nerves from the sciatic nerve, with roots L5 to S22, 3, 4. The semimembranosus, the semitendinosus and the long head of the biceps femoris use the tibial division. The short head of the biceps femoris uses the common fibular division2, 3, 4. StatPearls counts both heads of the biceps femoris in the group1. Kenhub's semitendinosus page names only the long head as part of the group4.
Hamstring strains are common in sport, especially in sprinting
The American Academy of Orthopaedic Surgeons (AAOS) says hamstring injuries occur frequently in athletes, particularly in sports that involve sprinting5. StatPearls also calls them common in both elite and amateur athletes1. A strain can be a pull, a partial tear or a complete tear5.
AAOS gives muscle overload as the main cause. This happens when the muscle is stretched beyond its capacity or hit with a sudden load5. During sprinting, the hamstrings are both lengthened and loaded as the back leg pushes off5. It lists muscle tightness, a strength imbalance with the front-of-thigh muscles, poor conditioning and tiredness as factors that make a strain more likely5. The NHS advises building fitness gradually, warming up, and stopping if pain starts in the hamstrings6. For general background, see muscle strain.
A pop, heavy bruising or severe pain at the back of the thigh needs a doctor
The NHS says a hamstring injury can cause sharp pain at the back of the leg. If it is severe, you may feel a snapping sensation or hear a pop. The thigh may become tender, swollen and bruised after a few hours, and standing or walking on the leg may be hard6. AAOS lists bruising below the knee over the first few days and weakness that can last for weeks5.
In the most severe injuries the tendon tears completely away from the bone, and it may pull a piece of bone with it. AAOS calls this an avulsion injury5. The NHS says severe hamstring injuries can take weeks or months to heal and may need a specialist, and surgery may be needed after a complete tear6.
Pain down the back of the leg can also come from a nerve
The NHS says sciatica usually affects the bottom and the back of one leg7. It can feel like a sharp, burning pain, with tingling, numbness or weakness7. The NHS says a hamstring injury can happen when you are exercising or playing sport6. Sciatica symptoms can come on suddenly or start slowly7. Read more about sciatica.
Some hip and thigh pain needs a doctor before any stretch or massage
Tick anything that applies. The answer below changes to the most urgent step.
Warning signs from the NHS: Hip pain, DVT (deep vein thrombosis), Back pain, read 17 November 2026. This check is a prompt to get help, not a diagnosis.
Common questions about the hamstrings
The hamstrings are the muscle group at the back of the thigh. They are the biceps femoris, the semitendinosus and the semimembranosus. They start at the bottom of the pelvis, cross the knee and end on the lower leg. They extend the hip and bend the knee.
The main cause is muscle overload, when the muscle is stretched past its capacity or hit with a sudden load. It often happens in sprinting. Tightness, a strength imbalance with the front-of-thigh muscles, poor conditioning and tiredness can make a strain more likely.
See a doctor if you felt a snap or pop, if the thigh is badly swollen or bruised, if it hurts to walk or stand on the leg, or if the pain is getting worse. Severe injuries can need a specialist, and a complete tear may need surgery.
Pain down the back of the leg can be sciatica, where the sciatic nerve is irritated or compressed. It usually affects the bottom and the back of one leg, often with tingling, numbness or weakness. The NHS says a hamstring injury can happen when you are exercising or playing sport, while sciatica symptoms can come on suddenly or start slowly.