The best way to relieve midcycle pain is to take a non-prescription non-steroidal anti-inflammatory medication (NSAIDs), for example, Ibuprofen (Advil), naproxen (Aleve, Naprosyn), and ketoprofen (Orudis), moreover; these medicaitons are effective at blocking the effects of prostaglandins.Pain medications can be continued as long as needed. If one type does not relieve the pain, try another because these medications vary among individuals in their effectiveness.Anti-inflammatory medicine can be harsh on the stomach. If there is a history of kidney or stomach problems (such as ulcers or reflux), consult with your doctor before taking this type of medication.Taking the pain medication pills with meals may help prevent upset stomach.If anti-inflammatory medicine is not an option or if additional relief is needed, a heating pad applied to the pelvic area may relieve pain.