There are different reasons you may have pain on the top of your foot. The area of the pain and when it occurs will help to determine what caused the pain. Stress fractures, arthritis, and tendon problems could all be the cause for the pain. Treatment options will vary depending on the problem. It is best to speak to your doctor and discuss where and when the pain happens.