
Hammer toe is caused when the middle joint (PIP) bends down towards the floor (flexion). To compensate, the joints above and below (MTP, DIP) bend up (hyperextend). The result is that the middle part of the toe lifts up. Hammertoe is the most common deformity of the lesser toes (i.e. not the big toe). It tends to only affect one toe, most commonly the second.
Causes
Some causes of hammertoe are shoes that are too tight or short, shoes with high heels, injury, Diseases that affect the nerves and muscles, such as arthritis and diabetes. When shoes do not fit well, over time the pressure of the shoes pushes the toes into a bent position. After a while, the muscles become unable to straighten the toe, even when you are not wearing shoes. Similarly, when there is damage or disease of the nerves or muscles in the toes, the toe may rest in the bent position until the tendons become permanently shortened and the toe becomes a rigid hammertoe. The risk of developing a hammertoe increases with age. Women are much more likely to develop a hammertoe than men.

Symptoms may include pain in the affected toe or toes when you wear shoes, making it hard or painful to walk. A corn or callus on the top of the joint caused by rubbing against the shoe. Swelling and redness of the skin over the joint. Trouble finding comfortable shoes.
Diagnosis
Hammer toes may be easily detected through observation. The malformation of the person's toes begin as mild distortions, yet may worsen over time - especially if the factors causing the hammer toes are not eased or removed. If the condition is paid attention to early enough, the person's toes may not be permanently damaged and may be treated without having to receive surgical intervention. If the person's toes remain untreated for too long, however the muscles within the toes might stiffen even more and will require invasive procedures to correct the deformity.
Non Surgical Treatment
Treating hammertoe involves straightening the toe, making tendons in the toes flexible again, and preventing the problem from returning. Some simple treatments include Soaking your feet every day in warm water, then stretching your toes and ankles by pointing your toes. Using over-the-counter pads, cushions or straps to decrease discomfort. Splinting the toe to keep it straight and to stretch the tendons of the foot. Exercising the toes to relax the foot tendons (a session with a physical therapist may help you get started with foot exercises). One simple exercise is to place a small towel on the floor and then pick it up using only your toes. You also can grasp at carpet with your toes or curl your toes up and down repeatedly. Wearing shoes that fit properly and give toes plenty of room to stretch out.
Surgical Treatment
Ordinary hammertoe procedures often use exposed wires which extend outside the end of toes for 4-6 weeks. Common problems associated with wires include infection where the wires come out of the toe, breakage, pain hammertoe from hitting the wire, and lack of rotational stability causing the toe to look crooked. In addition, wires require a second in-office procedure to remove them, which can cause a lot of anxiety for many patients. Once inserted, implants remain within the bone, correcting the pain and deformity of hammertoes while eliminating many of the complications specific traditional treatments.

There are several things you can do to help prevent hammer toes from forming or progressing. Wear supportive shoes to help prevent deformities. Hammer toes are often related to faulty foot mechanics, especially foot flattening. Wear custom orthotics prescribed by your podiatrist. Orthotics may slow the progression or prevent the development of hammer toes. Avoid shoes with narrow or pointed toe boxes that can compress the toes.