What Is the Best Medicine for Menstrual Cramps?

Ibuprofen is the most effective over-the-counter medicine for menstrual cramps. It works by blocking the chemicals that cause your uterus to contract painfully during your period, and a large meta-analysis of OTC painkillers ranked it at the top for pain relief, with odds of effectiveness roughly 10 times higher than placebo.

That said, the “best” option depends on your body, your symptoms, and how you respond to different treatments. Here’s what works, how well it works, and how to get the most out of each option.

Why Periods Hurt in the First Place

Menstrual cramps happen because your uterus releases chemicals called prostaglandins as its lining sheds each month. These prostaglandins trigger strong muscle contractions and constrict blood vessels in the uterus, cutting off oxygen to the tissue. That oxygen deprivation produces waste products that sensitize pain nerves, creating the deep, aching pelvic pain you feel during your period. The more prostaglandins your body produces, the worse the cramps. This is why the most effective treatments all share one goal: reducing prostaglandin levels.

Ibuprofen: The Top-Ranked OTC Option

Ibuprofen (sold as Advil and Motrin) is a nonsteroidal anti-inflammatory drug, or NSAID. It directly blocks the enzyme your body uses to make prostaglandins, tackling the root cause of the pain rather than just masking it. In a network meta-analysis comparing five OTC painkillers, ibuprofen ranked highest for efficacy with a score of 83.7%, and it was roughly 10 times more likely than placebo to achieve at least a 50% reduction in pain.

The standard OTC dose is one to two 200 mg tablets every four to six hours, up to a maximum of 1,200 mg per day. The key to getting the best results is timing. Start taking ibuprofen at the very first sign of cramps, or even just before you expect your period to begin if your cycle is predictable. Waiting until pain is severe means prostaglandins have already built up, and you’ll be playing catch-up.

Naproxen: Longer-Lasting Relief

Naproxen sodium (sold as Aleve) is another NSAID that works through the same mechanism as ibuprofen. It didn’t rank quite as high in the meta-analysis, with a score of 48.3%, but it has one practical advantage: each dose lasts 8 to 12 hours compared to ibuprofen’s 4 to 6 hours. That means fewer pills throughout the day and less chance of waking up in pain overnight.

The OTC dose is one to two 220 mg tablets every 8 to 12 hours, with a daily maximum of 660 mg. If ibuprofen works well for you during the day but your cramps return at night, naproxen before bed can be a useful strategy. Some people also respond better to one NSAID than another for reasons that aren’t entirely clear, so if ibuprofen hasn’t worked, naproxen is worth trying before you assume NSAIDs aren’t for you.

What About Acetaminophen?

Acetaminophen (Tylenol) is a pain reliever, but it doesn’t reduce inflammation or block prostaglandin production in the uterus. This makes it a weaker choice for menstrual cramps specifically. The meta-analysis of OTC painkillers for period pain didn’t even include it alongside the NSAIDs because it works through a different pathway. If you can’t take NSAIDs due to stomach problems, kidney issues, or other health reasons, acetaminophen can take the edge off. But for most people, an NSAID will provide noticeably better relief.

Who Should Avoid NSAIDs

NSAIDs aren’t safe for everyone. Their main risk is gastrointestinal: they can irritate the stomach lining and, with regular use, contribute to ulcers, bleeding, or other digestive complications. If you have a history of stomach ulcers, gastrointestinal bleeding, or inflammatory bowel disease, NSAIDs may not be appropriate for you. The same applies if you have kidney disease, since NSAIDs can reduce blood flow to the kidneys, or if you take blood thinners like warfarin.

Taking NSAIDs with food or milk can reduce stomach irritation. Staying within the recommended dose and using them only during the few days you actually have cramps (rather than daily, long-term use) also minimizes risk.

Heat Therapy Rivals Medication

If you prefer to avoid medication or want something to use alongside it, heat applied to the lower abdomen is surprisingly effective. A systematic review of 22 trials covering nearly 2,000 women found that heat therapy provided comparable pain relief to NSAIDs, with only about a 4% difference in effectiveness. Within the first 24 hours of treatment, heat performed similarly as well.

The real advantage of heat is safety. The same review found it reduced the risk of side effects by about 70% compared to NSAIDs. A heating pad, hot water bottle, or adhesive heat patch worn under clothing all work. The target temperature in studies is around 40 degrees Celsius (104°F), which is what most commercial heat patches deliver. Combining heat with an NSAID can be especially effective on your worst days.

Hormonal Birth Control for Severe Cramps

For cramps that don’t respond well enough to OTC painkillers, hormonal contraceptives are the main prescription option. They work by suppressing ovulation and thinning the uterine lining, which dramatically reduces prostaglandin production at the source. The results can be striking: in a large clinical trial of over 100,000 women, 65% of those with painful periods reported relief after starting oral contraceptives. Another trial found that 63% of women had cramps before treatment, but after 12 months on the pill, only 12% still did.

Hormonal options include the combination pill, the progestin-only pill, the hormonal patch, and the hormonal ring. These require a prescription and come with their own side effects and considerations, but for people whose cramps regularly interfere with work, school, or daily life, they can be transformative.

Supplements That May Help

Two supplements have reasonable evidence behind them for menstrual cramps. Magnesium, taken at 300 to 600 mg daily, may reduce cramping by relaxing smooth muscle tissue, including in the uterus. It works best as a daily supplement rather than something you take only when cramps hit.

Vitamin B1 (thiamine) showed benefit in a clinical study at a dose of 100 mg daily, but only after at least 30 days of consistent use. Neither supplement is likely to replace an NSAID on a heavy-cramp day, but they may reduce overall severity when taken regularly over one to three months.

When Cramps Signal Something Else

Normal menstrual cramps are uncomfortable but manageable. They shouldn’t force you to miss work or school, and they should respond at least partially to OTC painkillers. If your cramps are severe enough to regularly disrupt your life, if they’ve gotten progressively worse over time, or if NSAIDs barely make a dent, the pain may not be “just cramps.”

Conditions like endometriosis, uterine fibroids, and adenomyosis cause pain that mimics or overlaps with period cramps but stems from a different underlying problem. Endometriosis alone affects roughly 1 in 10 women of reproductive age. Pelvic pain that extends well beyond your period, pain during sex, or unusually heavy bleeding are signs that something beyond normal prostaglandin activity is going on. These conditions often require hormonal treatment or, in some cases, surgery to manage effectively, and getting a diagnosis is the first step toward the right treatment.