The right remedy for stomach cramps depends on what’s causing them. A cramping sensation from trapped gas calls for a completely different approach than cramps triggered by your period, acid irritation, or a food intolerance. Here’s a breakdown of the most effective options, organized by the type of cramping you’re dealing with.
For Gas and Bloating Cramps
If your cramps feel like pressure that shifts around your abdomen, especially after eating, trapped gas is the likely culprit. Simethicone (sold as Gas-X or Mylanta Gas) works by breaking up gas bubbles in your digestive tract so they’re easier to pass. The standard adult dose is 40 to 125 mg taken up to four times a day, after meals and at bedtime, with a ceiling of 500 mg in 24 hours. It’s one of the gentlest over-the-counter options because it isn’t absorbed into your bloodstream. It just works locally in your gut.
Enteric-coated peppermint oil capsules are another strong option, particularly if your cramps have a spasmodic, squeezing quality. Peppermint oil relaxes the smooth muscle in your intestinal wall, which calms those contractions. The NHS recommends one capsule three times a day, taken 30 to 60 minutes before eating. You can increase to two capsules three times a day if one isn’t enough. If you’re buying it without a prescription, don’t use it for more than two weeks without checking in with a doctor.
For Acid and Indigestion Cramps
Cramps that come with a burning sensation, sour stomach, or that worsen after spicy or rich food are often caused by excess stomach acid irritating your stomach lining. Antacids (like Tums or Rolaids) neutralize acid and work the fastest of any option here, often within minutes. The tradeoff is that relief doesn’t last long.
H2 blockers (like famotidine, sold as Pepcid) last longer because they reduce how much acid your stomach produces in the first place. They take about an hour to kick in after symptoms start. A useful trick from the Cleveland Clinic: if you know you’re about to eat something that tends to upset your stomach, take an H2 blocker 30 to 60 minutes beforehand. If you find yourself reaching for one of these daily for two weeks or more, that’s a sign something deeper is going on and worth investigating.
For Menstrual Cramps
Period cramps are driven by prostaglandins, hormone-like chemicals that trigger your uterus to contract. The more prostaglandins you produce, the more intense the cramping. NSAIDs like ibuprofen (Advil, Motrin) and naproxen (Aleve) work by blocking the enzyme that makes prostaglandins, which is why they’re significantly more effective for menstrual cramps than acetaminophen (Tylenol). A large Cochrane review of 35 trials found that NSAIDs were over four times more effective than placebo for menstrual pain relief, and roughly twice as effective as acetaminophen.
No single NSAID has proven clearly superior to another for period pain, so the best choice is whichever one you tolerate well. The key is timing: starting an NSAID at the first sign of cramping, or even just before your period begins, gives it a chance to lower prostaglandin levels before they peak. Waiting until the pain is severe means those chemicals have already done their work, and you’re playing catch-up.
For Dairy-Related Cramps
If your stomach cramps reliably follow milk, cheese, ice cream, or other dairy, you may be low on lactase, the enzyme that breaks down lactose. Lactase supplements (like Lactaid) supply what your body doesn’t make enough of. The effective dose ranges from 3,000 to 9,000 units taken with dairy-containing meals. If you’re still eating dairy 30 to 45 minutes later, you may need a second dose. These supplements only work when taken at the same time as the food, not after symptoms have already started.
Heat Therapy
A heating pad is surprisingly effective for nearly all types of stomach cramps, regardless of the cause. Heat increases blood flow to the area and relaxes the smooth muscle responsible for that clenching, spasmodic sensation. Place a heating pad on your abdomen for about 15 minutes. A hot bath works similarly, with a 15 to 20 minute soak at a comfortable temperature. This pairs well with any of the oral remedies above and has essentially no downside.
When NSAIDs Can Make Things Worse
NSAIDs are excellent for menstrual and musculoskeletal cramps, but they can be dangerous if your stomach pain is actually coming from an ulcer or irritation of your stomach lining. These drugs can erode the stomach lining further, potentially causing bleeding or, in rare cases, a perforation. This risk is higher if you have a history of ulcers, if you’re combining an NSAID with aspirin, or if you’re older. If your cramps are accompanied by a gnawing or burning pain that gets worse on an empty stomach, skip the ibuprofen and try an antacid or H2 blocker instead.
Signs That Need Emergency Attention
Most stomach cramps are uncomfortable but harmless. A few patterns, however, signal something that needs immediate medical evaluation:
- Sudden, severe pain that doesn’t ease within 30 minutes
- Continuous vomiting alongside severe abdominal pain
- Pain in the lower right abdomen with nausea, vomiting, loss of appetite, or fever (possible appendicitis)
- Black or tarry stools, or blood in your stool (possible internal bleeding)
- Severe abdominal pain with vaginal bleeding in someone who could be pregnant (possible ectopic pregnancy)
- A swollen, tender abdomen with fever and rapid pulse (possible pancreatitis)
These scenarios can deteriorate quickly. The American College of Emergency Physicians recommends seeking emergency care for any abdominal pain that is sudden, severe, or unrelenting.

