Nonsteroidal anti-inflammatory drugs, commonly called NSAIDs, are the most effective over-the-counter pain relievers for menstrual cramps. Ibuprofen and naproxen sodium consistently outperform both acetaminophen and aspirin in head-to-head research, because they target the specific chemical process that causes the pain in the first place. The difference between a good choice and a mediocre one is larger than most people realize, and the reasoning behind it is straightforward once you understand what is actually happening in your uterus during a painful period.
Why NSAIDs Work Better Than Other Pain Relievers
Menstrual cramps are driven by prostaglandins, hormone-like chemicals produced in the lining of your uterus. Women with painful periods have significantly higher prostaglandin levels than women who menstruate without much discomfort. Research measuring endometrial tissue found that prostaglandin concentrations on the first day of bleeding were roughly four times higher in women with painful cramps compared to those without them.1American Journal of Obstetrics and Gynecology. Endogenous levels of prostaglandin F2α and its main metabolites in plasma and endometrium of normal and dysmenorrheic women Those prostaglandins cause the uterine muscle to contract forcefully and erratically, squeezing blood vessels and cutting off oxygen supply to the tissue. That oxygen deprivation is what you feel as cramping pain.2PubMed. Dysmenorrhoea and prostaglandins: pharmacological and therapeutic considerations
NSAIDs block the enzyme responsible for making prostaglandins in the first place. So instead of just masking the pain signal the way a pure analgesic would, they reduce the amount of the chemical causing the contractions. A crossover trial measuring prostaglandin levels in menstrual fluid confirmed this directly: ibuprofen cut prostaglandin concentrations by more than half compared to placebo.3American Journal of Obstetrics and Gynecology. Clinical efficacy and differential inhibition of menstrual fluid prostaglandin F2α in a randomized, double-blind, crossover treatment with placebo, acetaminophen, and ibuprofen in primary dysmenorrhea That is why NSAIDs don’t just take the edge off cramps; they go after the root cause.
A large Cochrane systematic review pooling data from 35 randomized trials found that women taking NSAIDs were roughly three to five times more likely to achieve meaningful pain relief than women taking placebo. In practical terms, where about 18% of women on placebo reported moderate or excellent relief, somewhere between 45% and 53% of women on NSAIDs did.4PubMed Central. Nonsteroidal anti-inflammatory drugs for dysmenorrhoea
How the Common NSAIDs Stack Up Against Each Other
Ibuprofen and naproxen are the two NSAIDs you will find most easily without a prescription, and both perform well. But they are not identical, and neither are the other options.
A network meta-analysis comparing over-the-counter analgesics ranked diclofenac and ibuprofen at the top for efficacy, with naproxen and ketoprofen in the middle tier. Aspirin landed far behind, less effective than ibuprofen and diclofenac by a wide margin.5PubMed Central. Efficacy and safety of over-the-counter analgesics for primary dysmenorrhea: A network meta-analysis A separate network meta-analysis looking at both prescription and over-the-counter NSAIDs reached a similar conclusion: aspirin needed more rescue medication than nearly every other NSAID tested, while drugs like flurbiprofen, ibuprofen, and naproxen performed consistently better.6PubMed Central. Comparison of the efficacy and safety of non-steroidal anti-inflammatory drugs for patients with primary dysmenorrhea: A network meta-analysis
The practical difference between ibuprofen and naproxen for most people comes down to convenience. Ibuprofen acts quickly but wears off in four to six hours, so you need to redose more often. Naproxen lasts longer, covering eight to twelve hours per dose, which can mean fewer pills and more consistent relief overnight. Both are well-supported choices. Diclofenac, which some of the analyses ranked highest, is available without a prescription in some countries as a topical gel, though oral diclofenac still requires a prescription in many places.
The big takeaway here is to avoid aspirin for cramps if you have other options. It is meaningfully weaker than ibuprofen or naproxen, and it is more likely to leave you reaching for a second dose or a different drug.
Where Acetaminophen Falls Short
Acetaminophen (sold as Tylenol or paracetamol in much of the world) is a reasonable pain reliever for many things, but it is a second-choice option for period cramps. The reason ties back to the prostaglandin mechanism. While acetaminophen does seem to have some effect on prostaglandin production, it is weaker at it than NSAIDs. A crossover study testing ibuprofen, acetaminophen, and placebo found that both drugs beat placebo, but ibuprofen was more potent at suppressing prostaglandins and relieving pain.3American Journal of Obstetrics and Gynecology. Clinical efficacy and differential inhibition of menstrual fluid prostaglandin F2α in a randomized, double-blind, crossover treatment with placebo, acetaminophen, and ibuprofen in primary dysmenorrhea
A head-to-head crossover trial comparing naproxen sodium with acetaminophen made the gap clearer. Naproxen provided significantly more total pain relief over 12 hours, and after the six-hour mark the advantage grew even larger. About 71% of participants rated naproxen as good-to-excellent versus 63% for acetaminophen.7PubMed. Significant, long-lasting pain relief in primary dysmenorrhea with low-dose naproxen sodium compared with acetaminophen: a double-blind, randomized, single-dose, crossover study That said, if you cannot take NSAIDs because of stomach problems, kidney concerns, or an allergy, acetaminophen is still better than nothing and does meaningfully reduce pain compared to no treatment.
Some combination products pair ibuprofen with paracetamol in a single tablet. A randomized crossover trial found that the combination provided better overall effectiveness than placebo, with the higher dose reaching significance for pain relief within 90 minutes.8Taylor & Francis Online (Current Medical Research and Opinion). A double-blind, randomised, crossover study of two doses of a single-tablet combination of ibuprofen/paracetamol and placebo for primary dysmenorrhoea Combining the two might offer a small incremental benefit, but the bulk of the work is still being done by the NSAID component.
Timing Matters More Than Most People Realize
Many women take a pain reliever only after cramps have already become intense. This is a common mistake. Because NSAIDs work by blocking the production of prostaglandins, they are most effective when you take them before the prostaglandin surge has peaked. Waiting until you are already doubled over means there is already a pool of prostaglandins doing damage, and the drug is playing catch-up instead of prevention.
A trial examining preventive dosing of ibuprofen found that starting the drug before pain became severe led to a progressive decrease in pain intensity over the treatment period. Women who took ibuprofen prophylactically reported significantly lower initial pain intensity compared to the untreated control cycle.9PubMed. Preventive treatment of primary dysmenorrhea with ibuprofen Standard guidance is to begin taking your NSAID at the first sign of bleeding or cramping, whichever comes first, and continue dosing at regular intervals for the first one to two days. For ibuprofen, that typically means every six hours; for naproxen sodium, every eight to twelve hours.
The short-term nature of this use is worth emphasizing. Most menstrual cramp pain peaks during the first 48 to 72 hours of bleeding. Using NSAIDs for two or three days per cycle is a different safety picture than taking them daily for chronic conditions like arthritis.
Safety at Typical Menstrual-Cramp Doses
The side effects people worry about most with NSAIDs, stomach ulcers and cardiovascular risk, are tied to higher doses taken over longer periods. At the low doses and brief durations typical for period pain, ibuprofen has a strong safety record. A review of the drug’s journey from prescription to over-the-counter status concluded that adverse reactions are dose and duration dependent, and that the safety concerns associated with higher-dose long-term NSAID use do not apply to the way most people use ibuprofen for common pain. Among NSAIDs, ibuprofen carries the lowest risk of gastrointestinal complications.10PubMed. Ibuprofen: a journey from prescription to over-the-counter use
Naproxen has a slightly higher gastrointestinal risk profile than ibuprofen, but it is still considered safe for short-course use in people without preexisting stomach or kidney issues. Taking either drug with food or a glass of water can help reduce stomach irritation, though it is not strictly necessary for most people at standard doses.
Among the network analyses on safety, mefenamic acid and tiaprofenic acid were flagged as having low side-effect risk, while indomethacin stood out for higher risk than the other options.6PubMed Central. Comparison of the efficacy and safety of non-steroidal anti-inflammatory drugs for patients with primary dysmenorrhea: A network meta-analysis Indomethacin is a potent anti-inflammatory but is rarely recommended as a first-line cramp reliever precisely because of this trade-off.
NSAIDs and Heavy Menstrual Bleeding
If your periods are both painful and heavy, NSAIDs offer a secondary benefit that acetaminophen does not: they reduce menstrual blood loss. A Cochrane review found that NSAIDs were more effective than placebo at reducing heavy menstrual bleeding, though they were less effective than some other treatments used specifically for heavy flow, such as tranexamic acid or the levonorgestrel-releasing intrauterine system.11PubMed Central. Non-steroidal anti-inflammatory drugs for heavy menstrual bleeding Among specific NSAIDs, mefenamic acid was associated with roughly a 29% reduction in flow, naproxen with about 26%, and ibuprofen with about 16%.12PubMed Central. Heavy Menstrual Flow: Current and Future Trends in Management
This makes NSAIDs a particularly efficient choice for people dealing with both symptoms simultaneously. Acetaminophen handles pain but does nothing meaningful for bleeding volume.
Heat Therapy as a Genuine Alternative
If you have ever pressed a hot water bottle against your abdomen during cramps, you were onto something backed by real evidence. Heat relaxes the contracted uterine muscle, improves blood flow to the area, and reduces the nerve compression caused by swelling.13PubMed Central. Heat therapy for primary dysmenorrhea: A systematic review and meta-analysis of its effects on pain relief and quality of life A randomized trial found that a continuous low-level heat patch had pain-relieving effects comparable to ibuprofen.14PubMed Central. Comparing the analgesic effect of heat patch containing iron chip and ibuprofen for primary dysmenorrhea: a randomized controlled trial
Heat is especially useful when layered on top of an NSAID rather than as a complete replacement. A systematic review noted that while heat therapy showed evidence of pain reduction, the quality of trials was mixed, and the authors stopped short of a conclusive recommendation on its own.15PubMed. TENS and heat therapy for pain relief and quality of life improvement in individuals with primary dysmenorrhea: A systematic review Still, it is free, has no side effects beyond skin irritation from patches if you leave them on too long, and adds relief that operates through a different pathway than medication.
TENS Devices, Ginger, and Exercise
TENS (transcutaneous electrical nerve stimulation) units are small, portable devices that send mild electrical pulses through electrode pads stuck to your skin. A Cochrane review found that high-frequency TENS reduced menstrual pain compared to placebo treatment, though the evidence was rated low-certainty due to the small size of most trials.16PubMed Central. Transcutaneous electrical nerve stimulation for primary dysmenorrhoea A more recent Cochrane update found both high-frequency and low-frequency TENS may reduce pain, with low-frequency showing a slightly larger point estimate of effect, though certainty remained low.17Cochrane Database of Systematic Reviews. Transcutaneous electrical nerve stimulation (TENS) for primary dysmenorrhoea TENS is appealing because it is drug-free and can be worn discreetly under clothing, though it is not a guaranteed solution for everyone.
Ginger has attracted research attention as well. A meta-analysis of five placebo-controlled trials found that ginger significantly reduced menstrual pain compared to placebo. When two trials compared ginger directly with an NSAID, the two were similarly effective, with no significant difference in pain severity.18PubMed Central. Efficacy of Ginger in the Treatment of Primary Dysmenorrhea: A Systematic Review and Meta-analysis A separate placebo-controlled trial found that women taking ginger reported about 11 fewer hours of pain and meaningfully lower severity scores over a cycle.19PubMed Central. Effect of Zingiber officinale R. rhizomes (ginger) on pain relief in primary dysmenorrhea: a placebo randomized trial One small trial directly comparing ginger, mefenamic acid, and ibuprofen found no differences between the three groups in pain severity or satisfaction.20PubMed. Comparison of effects of ginger, mefenamic acid, and ibuprofen on pain in women with primary dysmenorrhea The evidence is promising, though the studies are small and the Cochrane review on supplements categorized the ginger data as “very limited.”21Cochrane Database of Systematic Reviews. Dietary supplements for dysmenorrhoea
Exercise also shows a real effect. A systematic review found that moderate to high-intensity exercise may reduce cramp pain by increasing anti-inflammatory compounds in the body and reducing the overall amount of menstrual flow, which in turn lowers prostaglandin release. Lower-intensity exercise like yoga works through a different route, reducing cortisol levels, which can dampen prostaglandin production.22PubMed Central. The effectiveness of self-care and lifestyle interventions in primary dysmenorrhea: a systematic review and meta-analysis The irony is that exercising during cramps is the last thing most people want to do, but even a walk or gentle stretching session can help, particularly when done regularly rather than only on the day of worst pain.
When Pain Relievers Aren’t Enough
Everything above applies to primary dysmenorrhea, which is cramping caused by normal prostaglandin activity in a structurally healthy uterus. But some people have secondary dysmenorrhea, where the pain is driven by an underlying condition like endometriosis, fibroids, or adenomyosis. The distinction matters because NSAIDs don’t always work the same way in those situations.
A Cochrane review specifically looking at NSAIDs for endometriosis-related pain found no clear evidence that naproxen provided better relief than placebo in that population.23Cochrane Library. Non‐steroidal anti‐inflammatory drugs for pain in women with endometriosis That finding surprises a lot of people who assume that the same cramp means the same treatment. In endometriosis, the pain involves inflammation and nerve irritation from tissue growing outside the uterus, and prostaglandin suppression alone may not address it adequately. Hormonal treatments, particularly combined oral contraceptives or progestin-based options, are typically more effective for these conditions, and some people require surgical management.
If you have tried NSAIDs at appropriate doses with proper timing and still find that your cramps are severe, or if your pain has been getting worse over time, lasts well beyond the first couple of days of bleeding, or is accompanied by pain during sex or bowel movements, those are signals to have a conversation with a healthcare provider rather than just switching to a different brand of ibuprofen.
Prescription NSAIDs and COX-2 Inhibitors
Beyond what you can buy at the pharmacy without a prescription, there are prescription-strength NSAIDs and a class of drugs called COX-2 selective inhibitors that some providers prescribe for severe cramps. Mefenamic acid (Ponstel), for example, is a prescription NSAID that performed well in both efficacy and safety rankings in comparative analyses.6PubMed Central. Comparison of the efficacy and safety of non-steroidal anti-inflammatory drugs for patients with primary dysmenorrhea: A network meta-analysis It has the added appeal of reducing menstrual blood loss more than ibuprofen does, as noted earlier.
Celecoxib, a COX-2 inhibitor, was tested in two crossover studies and provided significantly better pain relief than placebo. However, naproxen sodium slightly outperformed celecoxib on some pain measures in both studies.24PubMed. Celecoxib in the treatment of primary dysmenorrhea: results from two randomized, double-blind, active- and placebo-controlled, crossover studies COX-2 inhibitors were designed to spare the stomach lining while still blocking inflammation, but their cardiovascular safety concerns have limited their use. For the short-duration use typical with menstrual cramps, the cardiovascular risk is considered minimal, but many providers prefer to stick with over-the-counter NSAIDs as a first step since they work just as well or better.
The prescription route is worth exploring if over-the-counter options at standard doses are not cutting it, or if you have a specific reason to avoid one class of drug. A provider can also rule out secondary causes of pain and, when appropriate, discuss hormonal contraceptives, which reduce cramps by thinning the uterine lining and lowering prostaglandin production overall.1American Journal of Obstetrics and Gynecology. Endogenous levels of prostaglandin F2α and its main metabolites in plasma and endometrium of normal and dysmenorrheic women