Leg muscles
Musculi membri inferioris
The leg muscles run from the lower back and pelvis down to the ankle and foot. They form clear groups: three at the hip, three in the thigh and three compartments in the lower leg.
Loading 3D model…
Show
Free 3D model of the leg muscles. Right leg. Drag to rotate, zoom with + and − (or Ctrl + scroll), click a bone to highlight and name it.
Key points
- The hip is moved by the gluteal muscles behind, six deep rotators beneath them and the iliopsoas in front.
- The thigh has three groups: the quadriceps at the front, the adductors on the inner side and the hamstrings at the back.
- The lower leg has three compartments, front, outer and back, each with its own main nerve.
- Many leg muscles cross two joints, so they move the hip and knee, or the knee and ankle, together.
What are the muscles of the leg?
In everyday speech the leg is the whole lower limb, from the hip to the ankle. Its muscles form a chain of groups that cross the hip, the knee and the ankle, and many of them cross two joints at once.
Anatomists use "leg" in a narrower sense, for the part between the knee and the ankle, and call the part above it the thigh. This page uses the everyday sense and covers the hip, the thigh and the lower leg. The small muscles inside the foot have their own pages.
The model shows 38 muscles of the right side with the femur, patella, tibia and fibula, the hip bone, the sacrum and the lumbar spine. Several hip muscles start on the spine or the sacrum, so these trunk bones are shown with them.
Which muscles move the hip?
Behind and beside the hip lie the gluteal muscles: gluteus maximus, gluteus medius, gluteus minimus and tensor fasciae latae. Gluteus maximus extends the hip, as in climbing stairs. Gluteus medius and minimus hold the pelvis level each time one foot leaves the ground.

Under gluteus maximus lie six deep hip rotators: piriformis, gemellus superior, obturator internus, gemellus inferior, quadratus femoris and obturator externus. They turn the thigh outward and hold the head of the femur in its socket.
At the front of the hip, the iliopsoas runs from the lumbar spine and the inside of the pelvis to the femur. Its two parts, psoas major and iliacus, are the strongest flexors of the hip and lift the thigh forward in walking and running.
Which muscles are in the thigh?
Sheets of connective tissue divide the thigh into three compartments, each with a main job and a main nerve. The front compartment holds the four parts of the quadriceps and the long, strap-like sartorius. They straighten the knee, and the femoral nerve supplies them.

The inner, or medial, compartment holds the adductors: adductor longus, adductor brevis, adductor magnus, gracilis and pectineus. They pull the thigh in toward the midline and are supplied mainly by the obturator nerve.
The back compartment holds the hamstrings: biceps femoris, semitendinosus and semimembranosus. They extend the hip and bend the knee, and the sciatic nerve supplies them.
Which muscles are in the lower leg?
The lower leg also has three compartments. The front compartment holds tibialis anterior, extensor digitorum longus, extensor hallucis longus and fibularis tertius. They lift the foot and toes and are supplied by the deep fibular nerve.

The outer compartment holds fibularis longus and fibularis brevis, which turn the sole outward and are supplied by the superficial fibular nerve.
The back compartment holds the calf muscles. Gastrocnemius, soleus and plantaris form a superficial layer. Popliteus, tibialis posterior, flexor digitorum longus and flexor hallucis longus form a deep layer. The tibial nerve supplies them all.
Why do many leg muscles cross two joints?
Rectus femoris, sartorius, gracilis, the hamstrings and gastrocnemius each cross two joints. Rectus femoris bends the hip and straightens the knee. The hamstrings do the opposite: they extend the hip and bend the knee. Gastrocnemius bends the knee and points the foot.
Because of this, the position of one joint changes how well the muscle can act on the other. The hamstrings feel tight when the knee is straight and the hip is bent, as in touching the toes. Two-joint muscles also pass force between joints in walking, running and jumping.
How do the leg muscles work in walking?
In each step, the hip flexors swing the leg forward and the muscles at the front of the lower leg lift the foot so the toes clear the ground. As the heel lands, the quadriceps control the bending knee and the front muscles of the lower leg lower the foot gently.
While one foot is on the ground, gluteus medius and minimus of that side stop the pelvis from dropping toward the swinging leg. At the end of the step the calf muscles push off through the ball of the foot. Climbing stairs and running call on gluteus maximus and the hamstrings far more than level walking.
Common problems with the leg muscles
Muscle strains are most common in two-joint muscles: the hamstrings at the back of the thigh, the adductors in the groin, rectus femoris at the front of the thigh and the medial head of gastrocnemius in the calf.
Tendon problems cluster at a few sites: gluteal tendinopathy at the greater trochanter on the outer hip, patellar tendinopathy below the kneecap and Achilles tendinopathy above the heel. Pain at the outer knee can come from the iliotibial tract. In the buttock, the sciatic nerve passes close to piriformis, the basis of the term piriformis syndrome. This page describes anatomy only.
Free 3D models of every muscle here
- Gluteal muscles
- Gluteus maximus
- Gluteus medius
- Gluteus minimus
- Tensor fasciae latae
- Deep hip rotators
- Piriformis
- Gemellus superior
- Obturator internus
- Gemellus inferior
- Quadratus femoris
- Obturator externus
- Iliopsoas
- Psoas major
- Iliacus
- Anterior leg muscles
- Tibialis anterior
- Extensor digitorum longus
- Extensor hallucis longus
- Fibularis tertius
- Fibularis muscles
- Fibularis longus
- Fibularis brevis
- Calf muscles
- Gastrocnemius
- Soleus
- Plantaris
- Popliteus
- Tibialis posterior
- Flexor digitorum longus
- Flexor hallucis longus
- Quadriceps
- Rectus femoris
- Vastus lateralis
- Vastus intermedius
- Vastus medialis
- Sartorius
- Hip adductors
- Adductor longus
- Adductor brevis
- Adductor magnus
- Gracilis
- Pectineus
- Hamstrings
- Biceps femoris
- Semitendinosus
- Semimembranosus
Common questions
How many muscles are in the leg?
It depends on where the leg is said to start and whether the foot is counted. The model shows 38 muscles of the right hip, thigh and lower leg. The foot has its own small muscles as well.
What is the largest muscle in the leg?
Gluteus maximus, which is usually named the largest muscle in the body. In the thigh, vastus lateralis is the largest part of the quadriceps.
What are the hip flexors?
The muscles that lift the thigh forward. The main one is the iliopsoas, helped by rectus femoris, sartorius, tensor fasciae latae and pectineus.
Which muscles make up the calf?
Gastrocnemius and soleus, which join in the Achilles tendon, with plantaris and the deep calf muscles beneath them.
Is this 3D model of the leg muscles free?
Yes. The interactive 3D model on this page is free to view and use for study, with no account or download needed.
About this free 3D model of the leg muscles
The interactive 3D model on this page is free to use in your browser, with no sign-up. It is built from scan-based anatomy data, so every bone is a separate, correctly placed shape you can turn and inspect from any side.