What to Take for Cramps: Period, Muscle, and Stomach

The best thing to take for cramps depends on what kind you’re dealing with, but for the most common type, menstrual cramps, an over-the-counter anti-inflammatory like ibuprofen or naproxen is the most effective option. These work by blocking the chemicals that cause your uterus to contract painfully. For muscle cramps and stomach cramps, the answers are different. Here’s what works for each type, and what doesn’t.

Menstrual Cramps: NSAIDs Are the Go-To

Period cramps happen because your uterus produces chemicals called prostaglandins that trigger contractions to shed its lining. The more prostaglandins you produce, the worse the cramping. Anti-inflammatory pain relievers like ibuprofen and naproxen work by blocking the enzyme that makes these chemicals, which is why they’re significantly more effective for period pain than regular acetaminophen (Tylenol). In a large Cochrane review of 35 trials, NSAIDs were about four times more effective than placebo for menstrual pain relief, and roughly twice as effective as acetaminophen.

Timing matters more than most people realize. The American Academy of Family Physicians recommends starting ibuprofen or naproxen one to two days before your period begins, then continuing on a regular schedule through the first two to three days of bleeding. This lines up with when prostaglandin levels peak. If you wait until the pain is already bad, you’re playing catch-up. Typical dosing is ibuprofen 400 to 800 mg every eight hours, or naproxen 250 to 500 mg every twelve hours.

No single NSAID has proven clearly superior to another for cramps, so if one doesn’t work well for you, it’s worth trying a different one.

Heat Therapy Works Too

If you prefer to avoid medication or want something to use alongside it, a heating pad on your lower abdomen is genuinely effective. A 2025 systematic review of 22 trials found that heat therapy provided pain relief comparable to, or slightly better than, NSAIDs after three months of use. Heat also carried about 70% fewer side effects. Electric heating pads, adhesive warmers, and far-infrared belts all fall into this category. Researchers haven’t pinpointed a single ideal temperature or duration, but the principle is simple: sustained, comfortable warmth applied directly to the lower abdomen.

Hormonal Options for Chronic Cramps

For people who get severe cramps every month and aren’t trying to get pregnant, hormonal birth control is considered a first-line treatment alongside NSAIDs. Combined oral contraceptives, hormonal IUDs, patches, vaginal rings, and implants all reduce menstrual cramping by thinning the uterine lining and lowering prostaglandin production. These can be used alone or combined with NSAIDs during particularly bad months.

Muscle Cramps: Hydration and Minerals

Muscle cramps, whether they strike during exercise or wake you up at night, have a different cause and need a different approach. They typically result from muscle fatigue, dehydration, or an imbalance in the minerals your muscles need to contract and relax properly.

Calcium and magnesium play opposing roles in your muscles. Calcium triggers muscle fibers to contract, while magnesium competes for the same binding sites and promotes relaxation. When magnesium is low relative to calcium, your muscles are more prone to involuntary contractions. This is why magnesium supplements are so widely recommended for cramps, though the evidence is mixed. A meta-analysis of four trials in pregnant women found that oral magnesium didn’t significantly reduce leg cramp frequency compared to placebo. For the general population, results are similarly inconsistent. It may help some people, particularly those who are genuinely deficient, but it’s not the reliable fix many assume.

Hydration is more straightforward. A general guideline from Mass General Brigham: multiply your body weight in pounds by 0.67 to get your daily water target in ounces, then add 12 ounces for every 30 minutes of exercise. If you’re exercising longer than 60 minutes, consuming carbohydrates during the activity also helps prevent the kind of fatigue that triggers cramping.

Pickle Juice and Other Quick Fixes

Pickle juice has a reputation as a fast-acting cramp remedy, and there’s a plausible explanation for it. The leading theory is that the strong, acidic taste triggers a reflex in the mouth and throat that sends a signal through the nervous system to calm the overexcited nerve firing that causes the cramp. This is different from the old “you just need electrolytes” explanation. The effect appears to be neurological, not nutritional, which is why such a small amount can work within seconds, long before any electrolytes could be absorbed.

What Not to Take for Leg Cramps

Quinine, once commonly prescribed for nighttime leg cramps, is no longer considered safe for this purpose. The FDA has stated it is not safe or effective for treating or preventing leg cramps, and it now carries a boxed warning. Quinine can cause a dangerous drop in blood platelets, life-threatening allergic reactions, and heart rhythm problems. Fatalities have been reported. It remains approved only for treating malaria.

Stomach and Intestinal Cramps

Abdominal cramps caused by digestive issues call for a completely different toolkit. NSAIDs can actually make stomach cramps worse by irritating the gut lining.

Peppermint oil in enteric-coated capsules is one of the best-studied options for intestinal cramping, particularly the kind associated with irritable bowel syndrome. The enteric coating is important because it prevents the capsule from dissolving in your stomach and instead releases the oil in your intestines, where it relaxes the smooth muscle that’s spasming. In clinical trials, about 79% of adults taking peppermint oil experienced reduced abdominal pain severity, compared to 43% on placebo. After two weeks, 76% reported less severe pain versus just 19% in the control group. The typical adult dose is 0.2 to 0.4 mL of oil three times daily in enteric-coated form.

For occasional stomach cramps from gas, bloating, or indigestion, simethicone (for gas), antacids, or a simple hot water bottle on the abdomen can help. If cramps are tied to diarrhea, an anti-diarrheal like loperamide addresses the underlying cause.

NSAIDs: Who Should Be Careful

While NSAIDs are the most effective option for menstrual cramps, they’re not ideal for everyone. They raise the risk of heart attack and stroke in both people with and without heart disease, though the risk is greater for those who already have cardiovascular problems. People with a history of stomach ulcers, kidney disease, or those taking blood thinners should also be cautious. For these groups, heat therapy or hormonal options for period cramps, and non-NSAID approaches for other cramp types, become especially important.