The best way to treat a stress fracture is to refrain from using the injured bone at all. Give the bone a few days to heal since any further amount of stress can cause the crack to spread and become larger, leading to further pain and inflammation. Using an ice pack will help reduce swelling and inflammation in the area, and will also help with the pain. You’ll need to also keep the area elevated as long as possible as you allow the area to heal. See your doctor immediately after experiencing something as painful as a stress fracture it is the best way to decrease further pain or injury.