If a woman is experiencing menstrual cramps, Beth W. Orenstein for Everyday Health recommends treating the pain by applying a heat pack, avoiding caffeine and getting a massage with therapeutic essential oils. To treat muscle cramps elsewhere in the body, WebMD recommends bathing in Epsom salts or applying ice.
According to Orenstein, engaging in light exercise and taking nonsteroidal anti-inflammatory drugs such as ibuprofen and naproxen can also help to get rid of menstrual cramps. WebMD recommends massaging muscle cramps in areas such as the legs and back, or stretching the affected area if the pain is caused by a muscle spasm. Future muscle cramps can be diminished by keeping the body hydrated with water and getting enough magnesium and calcium in the diet.