The best treatment is rest. Enforced rest from running or sport and doing low impact activity such as swimming or cycling will allow the stress fracture to heal. If you push through pain, then the fracture can enlarge and may never heal properly. Crutches or a walking boot may be needed for more severe cases.
Other treatments include regular ice and physiotherapy to treat any strength deficits. Generally, we advise against pain medications such as ibuprofen as evidence suggests that these medications prevent proper healing.
As the pain settles, we advise a return to normal activities such as walking followed by a gradual walk/run program.
In cases involving weakening of bones, hormone treatment and vitamin supplementation may be needed.