Anti-inflammatory painkillers called NSAIDs are the most effective medications for period cramps. They work by blocking the hormone-like chemicals (prostaglandins) that cause your uterus to contract painfully during menstruation. Ibuprofen and naproxen are the most common options, both available over the counter, and they outperform other painkillers like acetaminophen by a wide margin.
Why NSAIDs Work Best for Cramps
Period cramps happen because your uterus releases prostaglandins to help shed its lining. Higher levels of these chemicals mean stronger, more painful contractions. NSAIDs don’t just mask the pain. They actually reduce prostaglandin production, which means fewer and weaker contractions in the first place. That’s why they’re the first-line treatment for menstrual pain.
The key detail most people miss: NSAIDs work best when you take them on a regular schedule throughout your period, not just when the pain gets bad. Taking them “as needed” isn’t adequate for most people. Ideally, start taking them just before your period begins or at the very first sign of bleeding. Therapy doesn’t need to continue past the end of your flow, which typically means two to three days of consistent dosing.
Ibuprofen vs. Naproxen
Both are effective, but they differ in how long they last and how often you need to take them.
Ibuprofen (Advil, Motrin) is the faster, shorter-acting option. A typical dose is 200 to 400 mg every four to six hours, with a daily maximum of 1,200 mg for over-the-counter use. It kicks in quickly, but you’ll need to stay on top of redosing throughout the day.
Naproxen (Aleve) lasts significantly longer. You take 220 mg every 8 to 12 hours, up to 660 mg per day. Because it stays active longer, you take fewer doses and may get more consistent relief overnight or during a busy day when you might forget a dose. If you find yourself chasing pain with ibuprofen every few hours, naproxen is worth trying.
Where Acetaminophen Falls Short
Acetaminophen (Tylenol) is a reasonable backup if you can’t take NSAIDs, but the difference in performance is significant. In a head-to-head comparison, ibuprofen provided complete pain relief in about 59% of participants, while acetaminophen achieved only moderate relief in 38%. Ibuprofen also worked faster, with over half of users reaching peak relief within 30 minutes compared to 60 minutes for acetaminophen. Pain relief lasted 4 to 8 hours with ibuprofen versus just 1 to 4 hours with acetaminophen.
Perhaps most telling: 62% of ibuprofen users reported significant improvement in their ability to go about their day, compared to only 9% of acetaminophen users. Acetaminophen reduces pain signals but does nothing to lower prostaglandin levels, so it never addresses the root cause of the cramping. Use it if NSAIDs aren’t an option for you, but don’t expect it to perform the same way.
Prescription Options for Severe Cramps
If over-the-counter NSAIDs aren’t cutting it, a doctor can prescribe stronger versions. Mefenamic acid is a prescription NSAID specifically used for menstrual cramps. The typical regimen is a 500 mg starting dose followed by 250 mg every six hours for two to three days. It targets prostaglandins more aggressively than standard OTC doses of ibuprofen and can also help reduce heavy menstrual flow.
Hormonal birth control is another common prescription approach. The pill, hormonal IUDs, patches, and rings all thin the uterine lining, which means less prostaglandin production and lighter, less painful periods. For people who also want contraception or have very heavy periods, this can be a practical two-for-one solution.
Anti-Spasmodic Medications
A different class of medication targets the muscle spasm itself rather than the prostaglandins causing it. Hyoscine butylbromide (sold as Buscopan in many countries) blocks the signals that tell smooth muscle to contract, directly relaxing the uterus. A combination tablet pairing it with acetaminophen showed noticeable pain relief within 30 minutes, with about 91% of users classified as responders within four hours. Pain scores dropped by roughly 66% over that window.
Anti-spasmodics are especially useful as an add-on when a single painkiller isn’t enough. Combining an anti-spasmodic with an NSAID or analgesic is recommended for cramps that don’t respond to one medication alone. Availability varies by country, so this may or may not be an over-the-counter option where you live.
Who Should Avoid NSAIDs
NSAIDs aren’t safe for everyone. You should not take them if you’ve ever had an asthma attack, hives, or allergic reaction triggered by aspirin or another NSAID. They’re also off-limits after 30 weeks of pregnancy and for anyone recovering from heart bypass surgery. People with a history of stomach ulcers or gastrointestinal bleeding should use caution, as NSAIDs can irritate the stomach lining, especially with repeated use.
If NSAIDs are ruled out for you, acetaminophen, anti-spasmodics, or hormonal methods become your primary options.
Magnesium and Other Supplements
Magnesium has shown modest benefits for period cramps in small studies, likely because it helps regulate muscle contractions. Cleveland Clinic suggests aiming for 150 to 300 mg per day. Starting at the lower end (around 150 mg) minimizes the chance of digestive side effects, which are the main downside of magnesium supplements. Some research found better results when 250 mg of magnesium was paired with 40 mg of vitamin B6.
Supplements won’t replace NSAIDs for moderate to severe cramps, but they can be a helpful addition to your routine, particularly if you’re looking to reduce how much medication you take each cycle.
When Pain Doesn’t Respond to Medication
If you’re taking NSAIDs correctly, on schedule, at full doses, and your cramps still prevent you from working, going to school, or getting through normal activities, that’s not just bad luck. Severe pelvic pain with periods is not normal, and pain that disrupts your daily life warrants evaluation by a gynecologist. It can signal conditions like endometriosis, fibroids, or adenomyosis, all of which cause cramps that don’t respond well to standard painkillers because the underlying problem goes beyond normal prostaglandin levels.
Pain that gets worse over time, pain during sex, or pain between periods (not just during them) are additional signals that something beyond typical cramps may be going on.

