Take an over-the-counter pain medicine, such as acetaminophen (Tylenol), ibuprofen (Advil, Motrin), or naproxen (Aleve). Read and follow all instructions on the label. If your doctor prescribes medicines for muscle cramps, take them exactly as prescribed. Call your doctor if you have any problems with your medicine.