What Medicine Should You Take for Period Cramps?

Ibuprofen is the most effective over-the-counter medicine for period cramps. It works by reducing the chemicals in your uterine lining that actually cause the pain, making it more targeted than general painkillers like acetaminophen. But ibuprofen isn’t your only option, and the best choice depends on your body, your pain level, and how you respond to different medications.

Why Period Cramps Happen

Your uterus produces hormone-like chemicals called prostaglandins to help shed its lining each month. These prostaglandins trigger muscle contractions in the uterus, and higher levels mean stronger, more painful cramps. Research published in The American Journal of Medicine confirmed that primary dysmenorrhea (the medical term for typical period cramps) is directly tied to high prostaglandin levels during menstruation. This is important because it explains why certain medicines work better than others: the most effective ones don’t just block pain signals, they reduce prostaglandin production at the source.

Ibuprofen: The First Choice

Ibuprofen belongs to a class of drugs called NSAIDs (nonsteroidal anti-inflammatory drugs), which lower prostaglandin levels in the uterus. In a randomized, double-blind clinical trial comparing ibuprofen, acetaminophen, and placebo, ibuprofen cut prostaglandin levels by more than half, from 36.2 micrograms with placebo down to 14.8 micrograms. That translates to noticeably less cramping.

For the best results, take ibuprofen before cramps get bad. Start as soon as your period begins, or even the day before if you can predict it. The recommended approach is 400 to 600 mg as your first dose (two or three 200 mg tablets, depending on your weight), then 400 mg every six to eight hours for two to three days. Take it with food to protect your stomach. Waiting until pain is already intense means prostaglandins have had time to build up, and you’ll be playing catch-up.

Naproxen Sodium: Longer-Lasting Relief

Naproxen sodium (sold as Aleve) is another NSAID that works the same way as ibuprofen but stays active in your body longer. You only need to take it every 8 to 12 hours instead of every 6 to 8. A typical starting dose is 440 mg (two tablets), followed by 220 mg every 8 hours for two to three days, also taken with food.

Naproxen is a good alternative if you find yourself needing to redose ibuprofen frequently or if you prefer fewer pills throughout the day. Both drugs are similarly effective at reducing prostaglandins, so the choice often comes down to convenience and personal preference.

Acetaminophen: A Backup Option

Acetaminophen (Tylenol) does help with period cramps, and clinical trials show it’s significantly better than placebo. But it’s not as strong as ibuprofen. In the same head-to-head study, participants preferred ibuprofen, and the prostaglandin reduction with acetaminophen was more modest (dropping to 21.4 micrograms compared to ibuprofen’s 14.8).

That said, acetaminophen is the right choice if you can’t take NSAIDs. People with stomach ulcers, a history of allergic reactions to aspirin or ibuprofen, or certain heart conditions should avoid NSAIDs entirely. If acetaminophen alone isn’t cutting it and NSAIDs are off the table, talk to a doctor about prescription alternatives.

Prescription Options for Severe Cramps

When over-the-counter medicines aren’t enough, doctors have two main tools: stronger NSAIDs and hormonal treatments.

Mefenamic acid is a prescription-strength NSAID specifically used for menstrual pain. It works through the same prostaglandin-lowering mechanism but at a higher potency than what’s available over the counter.

Hormonal birth control is the other common prescription approach, and it works differently. Instead of blocking prostaglandins after they’re produced, hormonal contraceptives prevent the uterine lining from building up as much in the first place, which means fewer prostaglandins and lighter, less painful periods. A Cochrane review found that women using combined oral contraceptives had a 37% to 60% chance of meaningful pain improvement, compared to 28% with placebo. Many people on hormonal birth control find their cramps become mild or disappear altogether over several months.

Supplements That May Help

Magnesium has shown promise for reducing period pain in small studies. The effective range in research is 150 to 300 mg per day, and one study found that combining 250 mg of magnesium with 40 mg of vitamin B6 worked better than magnesium alone. Starting at the lower end (around 150 mg) minimizes the chance of digestive side effects, which are the most common complaint with magnesium supplements.

These aren’t replacements for NSAIDs during acute pain, but taking magnesium regularly throughout the month may reduce how severe your cramps get in the first place.

Who Should Avoid NSAIDs

NSAIDs are safe for most people when used for a few days per cycle, but they’re not appropriate for everyone. According to FDA labeling, you should not take ibuprofen or naproxen if you:

  • Have had an asthma attack, hives, or allergic reaction after taking aspirin or another NSAID
  • Have active stomach ulcers or a history of gastrointestinal bleeding
  • Have heart disease or are at high risk for heart attack or stroke
  • Are past 30 weeks of pregnancy

Your risk of stomach irritation also goes up if you smoke, drink alcohol regularly, take corticosteroids or blood thinners, or use NSAIDs for extended periods beyond a few days. Taking them with food and sticking to the lowest effective dose for the shortest time helps minimize these risks.

When Cramps Signal Something Else

Typical period cramps start within a day or two of your period, follow a predictable pattern each month, and respond to NSAIDs. Pain that doesn’t fit this pattern may point to an underlying condition. Warning signs include cramps that get progressively worse over time rather than staying consistent, pain during sex, unusually heavy or prolonged bleeding, bleeding between periods, or fever and unusual vaginal discharge.

Several conditions can cause painful periods beyond normal cramping. Endometriosis often involves pain during bowel movements or urination alongside cramps. Fibroids tend to cause heavy, prolonged bleeding and are more common as you get older. Pelvic inflammatory disease typically comes with fever, discharge, and abdominal tenderness. If your cramps have changed character, started suddenly after years of pain-free periods, or simply don’t respond to standard treatment, those are all reasons to get evaluated.