Anatomy of the Hamstring Muscles

Muscle diagram of lower extremity shows hamstrings.
MedicalRF.com/MedicalRF.com/Getty Images

The hamstrings are a group of muscles and their tendons at the rear of the upper leg. They include the biceps femoris, semitendinosus, and semimembranosus. The hamstrings flex the knee joint and extend the thigh to the backside of the body. They are used in walking, running, and many other physical activities.

Anatomy of the Hamstring Muscles

The hamstring muscles have their origin, where their tendons attach to bone, at the ischial tuberosity of the hip (often called the sitting bones) and the linea aspera of the femur. The hamstring tendons flank the space behind the knee. 

The most medial muscle, the semimembranosus, inserts on the medial condyle of the tibia bone. The semitendinosus inserts on the superior part of the medial tibia. The most lateral hamstring, the biceps femoris, inserts on the lateral side of the fibula and also attaches to the superior part of the lateral tibia. They are innervated by the sciatic nerve.

What Do the Hamstrings Do?

You use the hamstrings for walking, running, and jumping. They flex the knee and extend the hip at the beginning of each step. In walking and running, they are antagonists to the quadriceps muscles in the action of deceleration of knee extension. Because the hamstrings have their origin at the sitting bones, they are stretched while sitting, and long periods of sitting may affect their function.

Hamstring Exercises

The hamstrings are exercised by walking, running, or using the stairs. Engaging in these activities will build the functional fitness of the hamstrings. This can be important cross-training for people whose primary exercise is bicycling, which targets the quadriceps. Overdevelopment of the quadriceps needs to be balanced with exercising the hamstrings.

Isolation and compound exercises for the hamstrings may be used for rehabilitation or bodybuilding. Exercises that involve knee flexion and hip extension are used to build the hamstring muscles.

Hamstring Stretches

Hamstring flexibility is important for runners and may help prevent injury and delayed onset muscle soreness after exercise. Tight hamstrings may also be felt as limited motion when straightening the knee or a cramp at the back of the knee. Hamstring stretches are a common part of a stretching and flexibility routine.

Hamstring Injuries

The hamstrings take a beating during sports such as soccer, football, basketball and tennis where running is combined with rapid starts and stops. Hamstring sprains and tears are common. Worse hamstring injuries are evident when there is significant bruising behind the thigh. Repetitive strain injuries from running or walking might also be the cause of hamstring pain.

Was this page helpful?

Article Sources

Verywell Fit uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial policy to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Ramos GA, Arliani GG, Astur DC, Pochini AC, Ejnisman B, Cohen M. Rehabilitation of hamstring muscle injuries: a literature review. Rev Bras Ortop. 2017;52(1):11-16. doi:10.1016/j.rboe.2016.12.002

  2. Al-johani AH, Kachanathu SJ, Ramadan hafez A, et al. Comparative study of hamstring and quadriceps strengthening treatments in the management of knee osteoarthritis. J Phys Ther Sci. 2014;26(6):817-20. doi:10.1589/jpts.26.817

  3. Tsaklis P, Malliaropoulos N, Mendiguchia J, et al. Muscle and intensity based hamstring exercise classification in elite female track and field athletes: implications for exercise selection during rehabilitation. Open Access J Sports Med. 2015;6:209-17. doi:10.2147/OAJSM.S79189

  4. Davis hammonds AL, Laudner KG, Mccaw S, Mcloda TA. Acute lower extremity running kinematics after a hamstring stretch. J Athl Train. 2012;47(1):5-14.

  5. Ernlund L, Vieira LA. Hamstring injuries: update article. Rev Bras Ortop. 2017;52(4):373-382. doi:10.1016/j.rboe.2017.05.005