The lower leg, the area between your knee and ankle, contains about 13 muscles organized into three distinct groups. These muscles work together to move your foot, stabilize your ankle, and support your body weight during walking, running, and standing. Understanding how they’re arranged helps make sense of common injuries like shin splints, calf strains, and ankle instability.
How Lower Leg Muscles Are Organized
The lower leg is divided into three compartments by tough sheets of connective tissue. Each compartment contains muscles that perform a related set of movements. The front compartment handles pulling your foot upward. The outer (lateral) compartment controls foot eversion, or tilting the sole outward. The back compartment, the largest of the three, powers the pushing-off motion you use with every step.
This compartment system matters beyond anatomy class. Compartment syndrome, a painful condition where swelling builds pressure inside one of these enclosed spaces, is a recognized risk after intense exercise or injury precisely because these dividing walls don’t stretch.
The Calf Muscles (Back Compartment)
The back of the lower leg holds the most powerful muscles in this region. It’s split into a superficial (closer to the skin) layer and a deep layer.
Superficial Layer
The gastrocnemius is the muscle most people picture when they think of the calf. It has two rounded heads that create the visible bulge at the back of your leg and crosses both the knee and ankle joints. It’s a primary driver of plantarflexion, the motion of pointing your toes or pushing off the ground when you walk. Because it crosses the knee, it also plays a minor role in bending the knee.
Directly underneath the gastrocnemius sits the soleus, a broad, flat muscle that runs from just below the knee to the heel. Unlike the gastrocnemius, the soleus only crosses the ankle joint. It’s built for endurance rather than explosive power, packed with slow-twitch muscle fibers that keep you stable during prolonged standing. The soleus is sometimes called the “skeletal muscle pump” because its contractions help push blood from your lower legs back up toward your heart.
The gastrocnemius and soleus merge into the Achilles tendon, the thickest and strongest tendon in the body, which attaches to the heel bone. A smaller muscle called the plantaris also lives in this layer. It has a tiny muscle belly and an extremely long, thin tendon that runs alongside the Achilles. The plantaris is considered largely vestigial and is absent entirely in about 7 to 20 percent of people. Surgeons sometimes harvest its tendon for use in reconstructive procedures elsewhere in the body.
Deep Layer
Four muscles sit in the deep posterior compartment. The tibialis posterior is the deepest of all lower leg muscles, running behind the shinbone and attaching to several bones in the midfoot. It’s the primary muscle responsible for supporting the arch of your foot. Weakness or dysfunction in the tibialis posterior is a leading cause of adult-acquired flatfoot.
The flexor digitorum longus controls the four smaller toes, curling them downward. Its partner, the flexor hallucis longus, does the same job for the big toe alone. The fact that the big toe gets its own dedicated muscle reflects how important it is for balance and the push-off phase of walking. The popliteus, a small muscle at the very top of this compartment behind the knee, “unlocks” the knee from a fully straightened position so you can begin bending it.
The Shin Muscles (Front Compartment)
Four muscles make up the front of the lower leg. The tibialis anterior is the most prominent, running along the outer edge of the shinbone. You can feel it contract by pulling your foot upward toward your knee, a movement called dorsiflexion. This muscle works constantly during walking to keep your toes from dragging on the ground as your leg swings forward. When the tibialis anterior is weak or its nerve supply is damaged, the result is “foot drop,” where the foot slaps down uncontrollably with each step.
The extensor digitorum longus fans out into four tendons that pull the smaller toes upward. The extensor hallucis longus extends the big toe and assists with dorsiflexion of the whole foot. The peroneus tertius (sometimes called the fibularis tertius) is the smallest muscle in this group and helps with both dorsiflexion and everting the foot outward. It’s actually absent in a small percentage of people with no noticeable loss of function.
The Outer Muscles (Lateral Compartment)
The lateral compartment contains just two muscles, both running along the fibula, the thinner bone on the outside of your lower leg. The peroneus longus (fibularis longus) has a tendon that takes a remarkable path: it wraps under the foot from the outside to the inside, forming a sling that supports the arch from below. This muscle works with the tibialis posterior to stabilize the foot during uneven terrain.
The peroneus brevis (fibularis brevis) sits underneath the longus and attaches to the base of the fifth metatarsal, the bony bump you can feel on the outside edge of your foot. Both peroneal muscles are critical for ankle stability. They react quickly to prevent inversion sprains, the classic “rolled ankle” that happens when the foot turns inward. Chronic ankle instability after repeated sprains is often linked to weakness or delayed reaction time in these two muscles.
How These Muscles Work Together
Lower leg muscles rarely act in isolation. Walking alone requires precisely timed coordination across all three compartments. As your heel strikes the ground, the tibialis anterior controls how quickly your foot lowers. As you roll forward over your foot, the deep posterior muscles stabilize your arch. During push-off, the gastrocnemius and soleus fire to propel you forward while the peroneals keep your ankle from rolling.
Running amplifies these demands significantly. The calf muscles absorb forces of up to six to eight times your body weight with each stride, which explains why calf strains and Achilles tendon injuries are so common among runners. The soleus bears the greatest load during running because the knee is slightly bent at the point of peak calf force, which reduces the gastrocnemius’s mechanical advantage.
Common Sources of Lower Leg Pain
Knowing which muscles live where can help you make sense of lower leg pain based on its location. Pain along the inner edge of the shinbone often involves the tibialis posterior or soleus where they attach to the bone, the classic presentation of medial tibial stress syndrome (shin splints). Pain in the front of the shin during or after walking may point to tibialis anterior overuse, especially in people new to exercise or those who’ve recently changed footwear.
Deep, persistent calf pain that worsens with exercise and eases with rest can signal chronic exertional compartment syndrome, where the muscles swell during activity and build excessive pressure inside their compartment. Pain on the outer ankle, particularly after a sprain, often relates to the peroneal muscles or their tendons. And a sudden, sharp sensation in the mid-calf, sometimes described as being “kicked,” is the hallmark of a gastrocnemius tear, most common in middle-aged athletes during explosive movements like sprinting or jumping.
Strengthening the lower leg muscles evenly across all three compartments, not just the calves, is one of the most effective strategies for preventing ankle sprains, shin splints, and Achilles tendon problems. Calf raises target the posterior compartment, toe raises and ankle dorsiflexion exercises hit the anterior compartment, and resistance band eversion exercises work the lateral compartment.

