The ankle joint consists of the two lower leg bones and the ankle bone itself, which are surrounded and supported by ligaments, muscles and tendons. An injury to any of the bones, ligaments, muscles or tendons can cause ankle pain while walking.
A sprained ankle, caused by the ankle rolling over awkwardly while walking, or a break or fracture, caused by trauma, are the most common causes of sharp pain in the ankle joint.
The Achilles tendon may cause ankle pain if it becomes inflamed or irritated (Achilles tendinitis) or if it has been partially or completely torn (Achilles rupture).
Arthritis in the joints, such as osteoarthritis and rheumatoid arthritis, can cause sharp ankle pain when there's movement in the joint, such as while walking.
Gout is a condition caused by urate crystals accumulating around a joint due to higher than normal levels of uric acid in the body, which causes severe pain and discomfort. Pseudogout is like gout, except that the accumulation is not urate cyrstals but calcium deposits.
It is important to have a doctor examine the ankle and determine the cause of the ankle pain so that it can be treated. If there is an underlying issue, such as arthritis, medication and rehab can be prescribed.