Muscle guide · Hip and thigh

The hamstrings are three muscles at the back of the thigh that bend the knee.

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

Where it is
Back of the thigh: biceps femoris, semitendinosus and semimembranosus1, 5
Attaches to
Ischial tuberosity (sitting bone), then the fibula and the tibia; the short head of the biceps starts on the thigh bone2, 3, 4, 5
What it does
Extends the hip and bends the knee1, 5
Nerve supply
Branches of the sciatic nerve (L5 to S2)2, 3, 4
Pain it can send
Sudden sharp pain at the back of the thigh when strained5, 6

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.

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. A suspected severe tear needs a doctor, not home care. The NHS lists the last three of these as reasons to get help from NHS 111. This page cannot tell you what is causing your pain.

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.

Go to an emergency department now if you have
See a doctor today if you have
Book a doctor’s appointment if
None of these warning signs is ticked. That does not rule anything out: see a doctor if the pain is not easing after a few weeks, or if it worries you.

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.

Sources

  1. StatPearls. Anatomy, Bony Pelvis and Lower Limb, Hamstring Muscle. Read 17 November 2026.The hamstring muscle complex occupies the posterior compartment of the thigh and comprises 3 individual muscles: the biceps femoris (including the long and short heads), semitendinosus, and semimembranosus
  2. Kenhub. Biceps femoris muscle. Read 17 November 2026.Biceps femoris is the most lateral hamstring muscle located in the posterior thigh.
  3. Kenhub. Semimembranosus muscle. Read 17 November 2026.Semimembranosus (along with semitendinosus) occupies the medial aspect of the posterior thigh.
  4. Kenhub. Semitendinosus muscle. Read 17 November 2026.Semitendinosus is a fusiform muscle of the posterior compartment of thigh.
  5. AAOS OrthoInfo. Hamstring Muscle Injuries. Read 17 November 2026.Muscle overload is the main cause of hamstring muscle strain.
  6. NHS. Hamstring injury. Read 17 November 2026.If the injury is severe, you may also feel a snapping sensation or hear a ‘pop’.
  7. NHS. Sciatica. Read 17 November 2026.The symptoms of sciatica usually affect your bottom and the back of one leg, often including your foot and toes.

Written by the Aphyx Content team for The Sync. Each fact above is numbered to the source it comes from. Published 17 November 2026. Last updated 17 November 2026. Next review 17 May 2027.

One visit tells us where things stand.

Book online or walk in. The assessment runs first, the readings go on the screen, and the plan is built from what they show.