Pain in Ankle When Flexing Foot: Causes and Treatment

Pain in the ankle when you flex your foot usually points to a mechanical problem: something is getting pinched, stretched, or compressed as the joint moves through its range. The direction of the flex matters enormously. Pain when you pull your toes toward your shin (dorsiflexion) suggests a different set of causes than pain when you point your toes downward (plantarflexion), and some conditions hurt in both directions. Sorting out which structures are involved is the first step toward knowing whether rest and rehab will fix it or whether you need imaging and more targeted intervention.

Why the Direction of the Flex Matters

Your ankle joint is built around two bones meeting at a hinge: the lower leg bones (tibia and fibula) form a bracket that cradles the talus bone on top of your foot. When you dorsiflex, the wider front edge of the talus wedges tightly into that bracket. When you plantarflex, it slides forward, opening space at the back. Pain during dorsiflexion tends to involve structures at the front of the ankle being compressed or blocked. Pain during plantarflexion tends to involve structures at the back being pinched as the joint closes down posteriorly. Some conditions, like damaged cartilage or inflamed tendons that wrap around the ankle, can hurt with movement in either direction because the shifting load irritates them no matter which way the joint travels.

Anterior Ankle Impingement

If you feel a sharp or achy pain at the front of your ankle when pulling your foot up, anterior impingement is one of the most common explanations. It happens when soft tissue or bony spurs at the front of the joint get trapped between the tibia and the talus during dorsiflexion. This often develops after direct trauma or from years of repetitive dorsiflexion, common in sports that involve deep squatting, uphill running, or landing from jumps. The chronic version typically presents as ongoing ankle pain, swelling, and a noticeable loss of upward foot motion.1PubMed Central. Update on anterior ankle impingement

The bony spurs themselves form as the body’s response to repeated microtrauma. Every time the front rim of the tibia and the neck of the talus collide during forceful dorsiflexion, tiny bits of bone remodel and grow outward. Over time, these spurs physically block the joint from opening fully and pinch the soft tissue caught between them. Dancers, soccer players, and basketball players are particularly prone to it. You might notice that the pain is worst at the end range of dorsiflexion, right when your shin would normally travel forward over your foot, and that there’s a hard “stop” that wasn’t there before.

Limited dorsiflexion doesn’t just cause local pain. Research on athletes with restricted ankle dorsiflexion shows that the body compensates elsewhere during dynamic movements: the knee tends to buckle inward more, and overall leg stiffness increases during landing, both of which raise the risk of injuries higher up the chain.2PubMed Central. The Effect of Limited Ankle Dorsiflexion During Emergency Stop—Jump Movements on Lower Limb Biomechanics So a stiff, painful ankle isn’t just an ankle problem; it can quietly set the stage for knee trouble too.

Posterior Ankle Impingement

The mirror image of anterior impingement, posterior impingement causes pain at the back of the ankle when you point your foot downward. This is especially common in ballet dancers (who spend hours in relevé and en pointe), soccer players who repeatedly kick with a pointed foot, and downhill runners. The culprit is usually a bony prominence at the back of the talus. Some people have an extra little bone there called an os trigonum, a normal anatomical variant that never fused during growth. Others have an elongated ridge called a Stieda process. Either one can get pinched between the tibia and the calcaneus during plantarflexion.3PubMed Central. Posterior Ankle Impingement: It’s Not Only About the Os Trigonum

The flexor hallucis longus tendon, the tendon that curls your big toe, runs right next to these bony structures at the back of the ankle. When an os trigonum is present, it can compress and irritate this tendon and its sheath, leading to inflammation called tenosynovitis. That means posterior impingement often comes with pain not only when pointing the foot but also when pushing off the big toe during walking or running.4PubMed Central. The Effect of Flexor Hallucis Longus Morphology on Os Trigonum Syndrome If your pain is deep behind the ankle and gets worse when you forcefully point your toes or push off during a step, this combination of bony and tendon involvement is a strong possibility.

Tendon Problems Around the Ankle

Several tendons cross the ankle joint, and any of them can become inflamed, degenerated, or partially torn in ways that produce pain with foot flexion. The three most relevant are the Achilles tendon, the peroneal tendons, and the posterior tibial tendon.

The Achilles tendon connects your calf muscles to the back of your heel. Insertional Achilles tendinopathy, where the tendon meets the bone, is especially aggravated by dorsiflexion because pulling the foot upward compresses the tendon against the heel. One rehabilitation approach specifically aims to limit dorsiflexion during exercise and eliminate calf stretching to reduce this compression.5PubMed Central. Effectiveness of reducing tendon compression in the rehabilitation of insertional Achilles tendinopathy: a randomised clinical trial If your pain is right at the back of the heel and gets worse when you pull your foot up or do calf stretches, insertional tendinopathy is worth considering.

The peroneal tendons run along the outer ankle. They stabilize the foot during weight-bearing and can become inflamed (tendinitis), degenerate over time, or sublux out of their groove behind the outer ankle bone. Peroneal tendon problems often coexist with lateral ankle ligament damage. In one reported case, a patient presented with peroneal tendinitis, subluxation of the peroneal longus tendon, and a torn anterior talofibular ligament all at once.6PubMed Central. Management of peroneal tendon subluxation with concominant anterior talofibular ligament tear: A case report and literature review The pain tends to be on the outer side of the ankle and may include a snapping sensation if the tendon is slipping in and out of position.

The posterior tibial tendon runs along the inner ankle and is the main support for the foot’s arch. When it degenerates, the arch gradually collapses, which changes how forces travel through the ankle with every step. This is the most common cause of adult-acquired flatfoot.7PubMed Central. Posterior Tibial Tendon Dysfunction: An Overview As the tendon fails, increased load falls on the inner arch, accelerating the flattening process.8PubMed. A biomechanical analysis of posterior tibial tendon dysfunction, medial displacement calcaneal osteotomy and flexor digitorum longus transfer in adult acquired flat foot Pain from posterior tibial tendon dysfunction is felt on the inner ankle and may worsen with any foot movement that loads the arch, including dorsiflexion during walking or standing on tiptoe.

Cartilage Damage on the Talus

Osteochondral lesions of the talus are areas where the cartilage and underlying bone on the talus surface are damaged. They usually result from ankle sprains or other trauma, though sometimes they appear without a clear injury. The symptoms are frustratingly vague: pain, swelling, stiffness, and occasionally a catching or locking sensation when the ankle moves.9PubMed Central. Management of Osteochondral Lesions of the Talar Dome Because the damaged cartilage sits on the joint surface, it can produce pain with both dorsiflexion and plantarflexion, depending on where on the talus the lesion sits and which part of the joint is loaded in each position.

These lesions are easy to miss. The symptoms overlap heavily with chronic ankle sprains and impingement, and physical examination alone often can’t distinguish them. Many patients go months or years with a vague ache and intermittent swelling before the lesion is found on imaging. If you had an ankle sprain that healed in terms of stability but left behind a persistent deep ache that worsens with flexion, cartilage damage is worth investigating.

Nerve Entrapment at the Ankle

Nerves can get trapped as they pass through tight tunnels around the ankle, and the resulting pain and tingling can be confused with joint or tendon problems. Anterior tarsal tunnel syndrome involves the deep peroneal nerve getting compressed under the band of tissue (extensor retinaculum) at the front of the ankle. It’s uncommon, but when it happens, it produces pain and altered sensation on the top of the foot that worsens with dorsiflexion as the nerve gets squeezed.10PubMed. Anterior Tarsal Tunnel Syndrome: Entrapment of the Articular Branch of Deep Peroneal Nerve: A Case Report

In one documented case, a patient developed ankle pain with tingling and numbness a year after an ankle injury. The nerve and its articular branch were found encased in scar tissue during surgery, and decompression resolved the symptoms. The condition is rare enough that it’s frequently overlooked, but the hallmark clues are numbness or tingling accompanying the pain and a positive Tinel sign, where tapping over the front of the ankle reproduces the symptoms.

On the inner side of the ankle, the more widely known tarsal tunnel syndrome involves the tibial nerve. The classic version produces burning or tingling on the sole of the foot. These nerve entrapments are worth considering when ankle pain during flexion comes with sensory changes that tendon and joint problems wouldn’t explain.

Ligament Injuries and Chronic Instability

Ankle sprains are among the most common musculoskeletal injuries, and while most heal with time, a meaningful percentage leave behind chronic instability. The anterior talofibular ligament, the one most often torn in a standard inversion sprain, normally helps stabilize the ankle during plantarflexion. When it’s damaged and doesn’t heal properly, the ankle can feel loose and painful when moving through its range, especially under load. Most high ankle sprains, which involve the syndesmotic ligaments connecting the tibia and fibula, are treated without surgery using a phased rehabilitation program that starts with protecting the joint and controlling pain, then progressively builds motion, strength, and proprioception.

People with chronic ankle instability show altered movement patterns that persist long after the initial injury. During dynamic tasks like landing from a jump, those with unstable ankles use different strategies: they tend to move differently through the midfoot and ankle, altering dorsiflexion, inversion, and rotation patterns compared to people with healthy ankles.11PubMed Central. Biomechanical deficits in chronic ankle instability: a comparative study of landing strategies on a laterally inclined surface These compensations can themselves become sources of pain during flexion, even if the ligament damage alone wouldn’t cause it, because the ankle is moving in abnormal ways under load.

When the Pain Isn’t Coming From the Ankle

Referred pain from the lower back can mimic ankle problems convincingly. S1 radiculopathy, where the nerve root exiting the lowest lumbar segment is compressed (often by a disc herniation), classically produces pain running down the back of the leg into the lateral foot, weakness in the calf muscles, and a diminished Achilles tendon reflex.12PubMed Central. S1 Radiculopathy Initially Presenting With Sole Knee Flexion Weakness: A Case Report If your ankle pain during flexion is accompanied by back or buttock pain, or if the calf feels weak in a way that doesn’t match a local ankle problem, the source of the trouble may be several segments up the spine.

Inflammatory conditions like gout can also strike the ankle, though they’re better known for attacking the big toe. Gout produces sudden, intense pain with redness and swelling, and it can make any ankle movement excruciating during a flare. The ankle is a less typical location for a first gout attack, which can lead to misdiagnosis as a sprain or infection if the possibility isn’t considered.

How Clinicians Sort Through These Possibilities

A physical examination is the starting point, but honestly, ankle examination tests have limitations. A systematic review of common orthopedic tests for the ankle found that most are better at confirming a suspected diagnosis than discovering an unexpected one, and that no single test shows both high sensitivity and high specificity across the board.13PubMed Central. Reliability and validity of physical examination tests for the assessment of ankle instability Another review noted that most ankle special tests are confirmatory and work best when used at the end of a thorough physical exam, after the clinician has already narrowed down the likely cause.14PubMed Central. Diagnostic accuracy of physical examination tests of the ankle/foot complex: a systematic review This means that where the pain is, when it happens, and what makes it better or worse are often more diagnostically useful than any single provocative test.

Imaging helps when the physical exam doesn’t nail down a diagnosis. Standard X-rays are useful for spotting bony spurs associated with impingement, fractures, and loose bodies. For soft tissue problems, both ultrasound and MRI play important roles, but they have different strengths. Ultrasound is particularly good at detecting tendon abnormalities: one study found it had perfect sensitivity for peroneal tendinopathy, matching MRI, but was more sensitive than MRI for detecting peroneal tendon subluxation.15PubMed Central. Comparison of Ultrasound and MRI with Intraoperative Findings in the Diagnosis of Peroneal Tendinopathy, Tears, and Subluxation In a broader comparison, ultrasound achieved perfect accuracy for anterior talofibular ligament injuries and showed strong diagnostic performance for several other ligament and tendon problems, while MRI outperformed ultrasound for syndesmotic injuries.16PubMed Central. Diagnostic performance of ultrasound and magnetic resonance imaging in ankle injuries: a retrospective cohort study

MRI remains the gold standard for internal joint problems like osteochondral lesions and for providing the overall picture when multiple structures may be involved. Ultrasound has the advantage of being dynamic: a clinician can move your foot during the scan and watch tendons slip, impinge, or sublux in real time, which is something a static MRI can’t do. In a study specifically comparing the two for ankle tendon tears, ultrasound was more sensitive and accurate overall than MRI.17PubMed. Use of ultrasonography versus magnetic resonance imaging for tendon abnormalities around the ankle

Conservative Treatment Approaches

Most causes of ankle pain during flexion respond to conservative management, at least initially. The specifics depend on the diagnosis, but several principles apply broadly. Rehabilitation programs for ankle injuries generally move through phases: an early phase focused on protecting the joint, controlling swelling, and maintaining whatever pain-free motion exists; an intermediate phase that builds strength and retrains the ankle’s position sense (proprioception); and an advanced phase incorporating sport-specific or activity-specific movements.

For anterior impingement with bony spurs, the goal is to reduce inflammation and improve the available dorsiflexion range through manual therapy and targeted stretching, though aggressive stretching into a painful range is counterproductive. For insertional Achilles tendinopathy, the approach is almost the opposite: limiting dorsiflexion during loading exercises and avoiding calf stretches can reduce the compression that aggravates the tendon where it inserts on the heel.5PubMed Central. Effectiveness of reducing tendon compression in the rehabilitation of insertional Achilles tendinopathy: a randomised clinical trial This distinction matters: the same exercise that helps one condition can worsen another, which is why accurate diagnosis should precede a rehabilitation plan.

Footwear modifications can make a meaningful difference. A small heel lift reduces the dorsiflexion demand at the ankle during walking, which eases strain on both the Achilles tendon and the anterior joint line. Stiffer-soled shoes reduce the amount of toe-off force the tendons have to generate. For posterior tibial tendon dysfunction, an arch-supporting orthotic helps redistribute forces away from the failing tendon. These are simple interventions, but they can substantially reduce pain during daily activities while the underlying problem is being addressed through rehabilitation.

When Surgery Becomes the Conversation

Surgery is generally reserved for cases that don’t improve with several months of dedicated conservative treatment. For anterior impingement, arthroscopic surgery to remove bony spurs and inflamed soft tissue is a well-established option with good outcomes. Posterior impingement from an os trigonum is similarly treated arthroscopically, with removal of the extra bone and debridement of the inflamed flexor hallucis longus tendon sheath when needed.

For osteochondral lesions of the talus, surgical options range from simple arthroscopic debridement and microfracture (drilling tiny holes to stimulate cartilage repair) to more complex cartilage transplant procedures, depending on the size and location of the lesion. Peroneal tendon subluxation that doesn’t stabilize with bracing and rehab usually requires surgical repair of the retinaculum that holds the tendons in place. Nerve decompression surgery for anterior tarsal tunnel syndrome is a relatively minor procedure that can resolve symptoms when the nerve is clearly entrapped in scar tissue.10PubMed. Anterior Tarsal Tunnel Syndrome: Entrapment of the Articular Branch of Deep Peroneal Nerve: A Case Report

Newer treatments like platelet-rich plasma injections are being studied for conditions like ankle osteoarthritis, though the evidence is still evolving. Trials are underway comparing PRP injections to placebo for ankle osteoarthritis, with outcomes tracked over several years, but results are not yet definitive enough to recommend them routinely.

Patterns That Help You Narrow It Down

Before you see a clinician, paying attention to a few details can speed up the diagnostic process. Where exactly is the pain? Front-of-ankle pain during dorsiflexion points toward anterior impingement or anterior nerve entrapment. Back-of-ankle pain during plantarflexion suggests posterior impingement or flexor hallucis longus involvement. Inner ankle pain, especially if your arch seems lower than it used to be, raises suspicion for posterior tibial tendon dysfunction. Outer ankle pain with snapping or slipping sensations suggests peroneal tendon trouble.

What came before the pain? A history of ankle sprains makes ligament damage, chronic instability, and osteochondral lesions more likely. Gradual onset without injury is more typical of tendon degeneration, impingement from bony spurs, or nerve entrapment. Sudden severe pain with redness and swelling, especially if you’ve had similar episodes before, suggests gout or another inflammatory condition. Pain that travels from the back of the leg and comes with back symptoms or calf weakness could be referred from the lumbar spine.

Does the pain include numbness, tingling, or burning? These sensory changes are unusual for pure joint or tendon problems and point toward nerve involvement, whether from local entrapment at the ankle or referred from the spine. That distinction alone can redirect the entire workup and save weeks of misdirected treatment.