The hamstring is made up of three muscles: the biceps femoris, the semitendinosus, and the semimembranosus. All three run down the back of the thigh from the pelvis to the lower leg, and together they bend the knee and extend the hip. That trio is what people mean when they talk about "the hamstring" — it is a group, not a single muscle.
The Three Hamstring Muscles and Where They Attach
Each of the three has a slightly different job and a different feel under the skin. Knowing the parts helps you locate a stretch or a sore spot accurately.
Biceps femoris
This is the outermost of the three and the one you can usually feel as a firm band on the outer back of the thigh. It has two heads. The long head starts at the ischial tuberosity — the sitting bone at the bottom of the pelvis — and the short head starts along the back of the femur. Both heads join and attach to the top of the fibula, the smaller bone of the lower leg, just below the outside of the knee. Because it crosses both the hip and the knee, it helps extend the hip and bend the knee, and it also rotates the lower leg outward when the knee is bent.
Semitendinosus
This muscle sits more toward the inner back of the thigh. It starts at the ischial tuberosity, runs down the inner side, and attaches to the upper part of the tibia (shinbone) as part of the pes anserinus, a shared attachment point with the sartorius and gracilis. Its long tendon is the one surgeons sometimes harvest for ligament repair elsewhere in the knee. It bends the knee and extends the hip, and it rotates the lower leg inward.
Semimembranosus
The deepest of the three, semimembranosus lies underneath the semitendinosus on the inner back of the thigh. It also starts at the ischial tuberosity and attaches to the back of the medial tibial condyle — the inner bump at the top of the shinbone. Like its neighbors, it bends the knee and extends the hip, and it assists with inward rotation of the lower leg.
What the Hamstring Does — and What It Does Not Do
The hamstring's main actions are knee flexion (bending the knee) and hip extension (pulling the thigh backward). It also helps rotate the lower leg when the knee is bent. That combination matters in walking, running, jumping, and rising from a chair.
A common misconception is that the hamstring is only a knee muscle. In fact, two of the three muscles — biceps femoris (long head) and semitendinosus — cross the hip joint as well, so they work in hip extension too. Another common mix-up: the hamstring does not straighten the knee. That is the quadriceps on the front of the thigh. The two groups are antagonists, meaning they pull in opposite directions, and they work as a pair to control the knee.
One more correction: the hamstring is not the same as the glutes. The gluteus maximus is the large muscle of the buttock, and it is a powerful hip extensor, but it does not cross the knee. When you feel a pull high on the back of the thigh near the sitting bone, that is often the proximal hamstring attachment, not the glute.
How to Locate Each Hamstring Muscle on Your Own Leg
You can map the three muscles with your hand in a few seconds. Sit on a chair with your knee bent about 90 degrees and the foot flat on the floor.
- Outer back: Press along the outer half of the back of your thigh, from the sitting bone toward the outside of the knee. The firm cord you feel is the biceps femoris.
- Inner back, closer to the surface: Slide your hand toward the inner back of the thigh. The rounded band just under the skin is the semitendinosus; its tendon can be felt as a tight cord behind the inner knee when you gently resist bending the knee.
- Inner back, deeper: The semimembranosus lies beneath the semitendinosus, so you will not isolate it by touch. You feel it as a broader fullness on the inner back of the thigh rather than a distinct cord.
A simple check: with your knee bent, try to press your heel into the floor as if to slide it backward while someone holds your foot still. The cords that stand out on the back of your thigh are the hamstring tendons — the inner one is semitendinosus, the outer one is biceps femoris.
Hamstring Strains: Which Muscle Usually Gets Hurt
Most hamstring strains involve the biceps femoris, particularly its long head near the sitting bone, because that muscle is stretched the most during sprinting. The semitendinosus and semimembranosus can also be strained, but they are less commonly the site of a sudden pull. A strain typically causes a sharp pain in the back of the thigh, sometimes with a visible bruise a day or two later, and it hurts to bend the knee against resistance or to stretch the leg forward.
For a mild strain, the usual approach is relative rest, avoiding the movement that caused it, and gentle pain-free range of motion. Ice can help with comfort in the first day or two. If you cannot put weight on the leg, cannot walk without limping, or the pain is severe or worsening, see a doctor or a physical therapist rather than pushing through it. Do not try to "run it off" — that is a common way to turn a small strain into a larger one.
To check whether you are ready to return to activity after a mild strain, try a slow jog at an easy pace. If you can jog without pain and without changing your stride, you can gradually add speed over several sessions. If the pain returns, back off. A physical therapist can give you a specific progression if the strain is moderate or recurrent.
A Rule of Thumb for Remembering the Hamstring
Think "two inner, one outer, all behind." The semitendinosus and semimembranosus sit on the inner back of the thigh, and the biceps femoris sits on the outer back. All three start at the sitting bone and cross the knee. If you remember that the hamstring bends the knee and extends the hip, you have the core function right. And if you are ever unsure whether a muscle is part of the hamstring, ask two questions: does it run down the back of the thigh, and does it attach to the lower leg below the knee? If yes to both, it is one of the three.
For practical purposes, you rarely need to name the individual muscle. When you stretch the hamstring, you stretch all three at once by extending the knee with the hip flexed — for example, sitting on the floor with one leg straight and reaching toward the toes. Keep the stretch mild, hold it for about 20 to 30 seconds, and stop if you feel sharp pain rather than a gentle pull. That single stretch covers the whole group, which is usually what you want.