A thorough medical history and physical exam by a physician is always necessary for the proper diagnosis of hammertoe and other foot conditions. Because the condition involves bony deformity, X-rays can help to confirm the diagnosis.