Skip to content

Whole body · Muscles

Hamstrings

The hamstrings are the muscles at the back of the thigh: semitendinosus, semimembranosus and the long head of biceps femoris, joined by the hamstring part of adductor magnus. They arise from the ischial tuberosity and cross both the hip and the knee, so they extend the hip and flex the knee. Because they span two joints, they are often strained in sprinting.

The hamstrings layer of the 3D whole body is part of Student Pro; the bones and surface muscles are free.

Hamstrings on the Get3DMed whole body model
From the Get3DMed whole body model. Turn it yourself
Where
The posterior compartment of the thigh, covered above by gluteus maximus.
From
The ischial tuberosity, the bony lump you sit on at the bottom of the hip bone.
Attachments below
Biceps femoris to the head of the fibula; semitendinosus and semimembranosus to the medial side of the tibia.
Moves
They extend the hip and flex the knee, and rotate the bent knee.
Nerve
The tibial division of the sciatic nerve (L5, S1, S2).

Explained

Hamstrings, step by step

In the order it is built and the order you will be asked it. Every structure here is on the 3D whole body.

Which muscles count as hamstrings

A true hamstring arises from the ischial tuberosity, crosses both the hip and the knee, and is supplied by the tibial division of the sciatic nerve. Semitendinosus, semimembranosus and the long head of biceps femoris meet all three rules. The part of adductor magnus that arises from the ischial tuberosity is grouped with them.

The short head of biceps femoris fails the test. It arises from the femur, crosses only the knee and has its own nerve from the common fibular division, so it is not counted as a true hamstring even though it shares a tendon with the long head.

Origins and insertions

Semitendinosus and the long head of biceps femoris share one tendon from the medial part of the upper area of the ischial tuberosity. Semimembranosus arises just above and lateral to them. The short head of biceps femoris comes from the linea aspera, the ridge down the back of the femur, and the lateral supracondylar line.

Below, the muscles split to the two sides of the knee. Semitendinosus joins sartorius and gracilis on the upper medial tibia in the pes anserinus, a fan-shaped insertion named after a goose's foot. Semimembranosus sends expansions that reinforce the back of the knee capsule.

MuscleOriginInsertion
SemitendinosusIschial tuberosity, common tendon with biceps long headUpper medial surface of the tibia, behind sartorius and gracilis (pes anserinus)
SemimembranosusIschial tuberosity, above and lateral to the common tendonBack of the medial condyle of the tibia; expansions form the oblique popliteal ligament
Biceps femoris, long headIschial tuberosity, common tendon with semitendinosusHead of the fibula, tendon split by the fibular collateral ligament
Biceps femoris, short headLinea aspera and lateral supracondylar line of the femurHead of the fibula, with the long head

Actions

The hamstrings extend the hip and flex the knee. In walking they extend the hip as the body moves forward over the planted foot. At the end of the swing phase they contract while lengthening, an eccentric contraction, to slow the swinging leg before the heel strikes the ground.

With the knee straight they control bending forward at the hips, paying out length as the trunk lowers. When the knee is bent they also rotate the leg: biceps femoris turns it laterally, while semitendinosus and semimembranosus turn it medially.

Nerve and blood supply

The tibial division of the sciatic nerve (L5, S1, S2) supplies the three true hamstrings. The short head of biceps femoris is the exception, taking its supply from the common fibular division from the same roots.

Blood comes mainly from the perforating branches of the deep femoral artery, which pierce through to the back of the thigh. The inferior gluteal artery adds supply at the top and branches of the popliteal artery help near the knee.

Relations and the popliteal fossa

Gluteus maximus covers the hamstrings at their origin, and below it they fill the posterior compartment of the thigh. The sciatic nerve runs down beneath the long head of biceps femoris, lying on adductor magnus.

Above the knee the muscles diverge to form the upper borders of the popliteal fossa, the diamond-shaped space behind the knee. Biceps femoris forms the upper lateral border, with the common fibular nerve following its medial edge. Semitendinosus and semimembranosus form the upper medial border.

Testing the hamstrings

Ask the patient to lie prone and bend the knee against resistance. The tendons stand out on either side of the back of the knee: biceps femoris laterally, semitendinosus and semimembranosus medially.

In the straight-leg raise, tight hamstrings stop the leg early with a pull felt in the back of the thigh. Pain that shoots below the knee instead points to an irritated sciatic nerve root rather than the muscle.

Clinical: strains, avulsions and grafts

Most hamstring injuries come from the two-joint arrangement. The muscle is stretched across the hip and knee at the very moment it contracts hardest, so sprinters and footballers are the classic patients.

Muscle strain

Sprinting strain

Strains happen in the late swing of sprinting, when the muscle contracts while being stretched across both joints. The commonest site is the long head of biceps femoris where muscle meets tendon. Re-injury is frequent if rehabilitation is rushed.

Origin injury

Proximal avulsion

Forced hip flexion with the knee straight, as in water-skiing, can tear the common origin off the ischial tuberosity. In adolescents the same force pulls off the ischial apophysis, the growth centre of the tuberosity, instead.

Surgery

ACL reconstruction graft

The semitendinosus tendon, often taken with gracilis, is a common graft for rebuilding the anterior cruciate ligament of the knee.

Written from Gray's Anatomy for Students and OpenStax Anatomy and Physiology 2e and Moore's Clinically Oriented Anatomy, matched to the structures on the Get3DMed whole body. Last changed 27 November 2026.

Test yourself

Three questions before you move on.

Exam-style, with the reason under each answer. Then find the real thing on the model.

  1. 1Which nerve supplies the short head of biceps femoris?

    Question 1 options
  2. 2A sprinter pulls up suddenly at full speed and grabs the back of his thigh. At which phase of running and site is a hamstring strain most likely?

    Question 2 options
  3. 3A 14-year-old water-skier is pulled forward with the hip flexed and knee straight and feels sudden buttock pain. What injury is most likely?

    Question 3 options

0 of 3 answered

Questions

Asked about the hamstrings

What are the three hamstring muscles?
The three hamstrings are semitendinosus, semimembranosus and the long head of biceps femoris. All arise from the ischial tuberosity and cross both the hip and knee. The hamstring part of adductor magnus is usually grouped with them.
What do the hamstrings do?
The hamstrings extend the hip and flex the knee. In walking they slow the leg at the end of the swing before the heel strikes. With the knee bent, biceps femoris rotates the leg laterally and the two medial hamstrings rotate it medially.
Why are hamstring strains so common in sprinting?
The hamstrings cross two joints, so in the late swing of sprinting they are stretched at the hip and knee while contracting hard to slow the leg. That combination overloads the muscle, most often at the muscle-tendon junction of the long head of biceps femoris. Rushed rehabilitation leads to frequent re-injury.
Why is the short head of biceps femoris not a true hamstring?
It arises from the femur rather than the ischial tuberosity, so it crosses only the knee. It is also supplied by the common fibular division of the sciatic nerve instead of the tibial division. It still joins the long head to insert on the head of the fibula.