Menstrual pain, also known as dysmenorrhea, can often be managed with over-the-counter pain relievers, such as ibuprofen or naproxen. Other methods include applying heat, regular exercise, and practicing relaxation techniques. If over-the-counter methods are not effective, your gynecologist may prescribe medications or recommend other treatments.