If the pain gets worse when you are active and seems to subside when you rest, a stress fracture may be the cause. Other symptoms may be swelling, a specific spot that is tender to the touch and pain that gets increasingly worse over time.
Excruciating pain when there is motion with the foot, but decreases when it's resting; pain from specific place when touched; Swelling and persistent pain.
It may start as a simple pain in foot over the top, accompanied by swelling at times. The pain gets severe after some activity like walking or bending of foot.
If your foot hurts less when you are not walking on it, you can see or feel something strange, such as swelling, and your foot has a decreased range of motion, you may have a fracture. Get an x-ray to be sure.