For most stomach cramps, over-the-counter options like antacids, anti-gas tablets, or a heating pad can bring relief within minutes to an hour. The right choice depends on what’s causing the cramping, whether that’s trapped gas, excess stomach acid, menstrual pain, or a stomach bug. Here’s what works for each type and how to use it effectively.
Identify the Type of Cramp First
Stomach cramps aren’t one-size-fits-all, and grabbing the wrong remedy can make things worse. A sharp, bloated feeling after eating points to gas. A burning sensation in your upper abdomen suggests excess acid. Cramping that arrives with your period is driven by a completely different mechanism than cramping from food poisoning. Matching the remedy to the cause is the fastest path to relief.
Gas and Bloating Cramps
If your cramps come with a tight, distended feeling and the urge to pass gas, the problem is likely pockets of gas stretching your intestinal walls. Simethicone (sold as Gas-X or Mylicon) works by breaking large gas bubbles into smaller ones, making them easier for your body to pass. The typical adult dose is 40 to 125 mg taken up to four times a day, after meals and at bedtime, with a maximum of 500 mg in 24 hours. It acts quickly because it works physically in your gut rather than being absorbed into your bloodstream.
Peppermint tea is another option. Peppermint relaxes the smooth muscle lining your digestive tract, which can ease the spasms that make gas cramps painful. If you deal with acid reflux, though, skip it. That same muscle relaxation can loosen the valve at the top of your stomach and make reflux worse.
Acid-Related Stomach Pain
Cramps that feel more like burning or gnawing, especially in the upper abdomen, often come from too much stomach acid irritating your stomach lining. You have two main over-the-counter routes here, and they work on different timelines.
Antacids like calcium carbonate (Tums, Rolaids) neutralize acid that’s already in your stomach. They kick in fast, often within minutes, but the relief doesn’t last long. They’re best for occasional flare-ups rather than ongoing problems.
H2 blockers like famotidine (Pepcid) take a different approach: they reduce how much acid your stomach produces in the first place. They take about an hour to start working, but the effects last four to ten hours. If your cramps tend to come back after antacids wear off, an H2 blocker provides more sustained relief.
A Heating Pad Works Better Than You’d Expect
Placing a heating pad or hot water bottle on your abdomen is one of the simplest and most effective remedies for stomach cramps of almost any cause. Research from University College London found the molecular reason this works: heat above 40°C (104°F) activates heat receptors in the skin that block pain signals from inside the body, providing relief for up to an hour. This isn’t just a comfort trick. The heat genuinely interrupts the chemical messengers responsible for internal pain.
Use a heating pad on a low-to-medium setting for 15 to 20 minutes at a time. Place a cloth between the pad and your skin to avoid burns. This pairs well with any oral remedy since it targets pain through a completely separate pathway.
Menstrual Cramps
Period cramps are caused by your uterus contracting to shed its lining, driven by hormone-like compounds called prostaglandins. Anti-inflammatory pain relievers are the most effective option here because they reduce prostaglandin production at the source.
Ibuprofen (Advil, Motrin) is the most common choice. Taking it at the first sign of cramping, rather than waiting until the pain peaks, makes a noticeable difference because it’s easier to prevent prostaglandin buildup than to reverse it. For cramps that don’t respond well to ibuprofen, doctors sometimes prescribe mefenamic acid, a stronger anti-inflammatory taken as 500 mg initially, then 250 mg every six hours for two to three days.
A heating pad on the lower abdomen works particularly well for menstrual cramps and can be used alongside pain relievers for added relief.
Why You Should Avoid NSAIDs for Gut-Related Cramps
Here’s an important distinction: while ibuprofen and other anti-inflammatory pain relievers are excellent for menstrual cramps, they can actually make stomach and intestinal cramps worse. These medications are known to irritate the stomach lining, and even short-term use can cause stomach pain, heartburn, and nausea.
If your cramps are coming from your digestive system rather than your uterus, acetaminophen (Tylenol) is the safer pain reliever. It eases pain without the stomach irritation that anti-inflammatory drugs cause. It won’t address the underlying cause of digestive cramps the way an antacid or anti-gas remedy would, but it can take the edge off while other treatments work.
What to Eat (and What to Skip)
If your cramps are tied to a stomach bug, food poisoning, or general digestive upset, what you eat matters. The old advice to stick strictly to bananas, rice, applesauce, and toast (the BRAT diet) is no longer recommended because it lacks essential nutrients like protein, calcium, vitamin B12, and fiber. For children, the American Academy of Pediatrics says this restrictive approach may actually slow recovery.
The better approach: eat small, bland meals as tolerated. Bananas and toast are still fine choices, but you can also include scrambled eggs, skinless chicken or turkey, and cooked vegetables as soon as your stomach can handle them. Smaller portions are easier on your system than full meals. Your body needs nutrients to recover, so expanding beyond the bare minimum as quickly as you’re able helps you bounce back faster. For adults, limiting yourself to very bland foods for more than a day or two does more harm than good.
While you’re recovering, avoid caffeine, alcohol, spicy food, fatty or fried food, and dairy (which can be harder to digest when your gut is inflamed). Stay hydrated, especially if cramping has come with vomiting or diarrhea.
Warning Signs That Need Medical Attention
Most stomach cramps resolve on their own or with the remedies above. But certain symptoms alongside cramping signal something more serious. Get emergency care if your cramps come with any of the following:
- Vomiting blood or having black or bloody stool
- Blood in your urine
- A swollen, rigid, or extremely tender abdomen
- High fever
- Persistent vomiting that won’t stop
- Chest pain, shortness of breath, or dizziness alongside the abdominal pain
- Pain following an accident or injury
Cramping that lasts more than a few days, keeps coming back in the same pattern, or steadily worsens also warrants a visit to your doctor, even without the red flags above. Recurring cramps can point to conditions like irritable bowel syndrome, food intolerances, or inflammatory bowel disease that benefit from a proper diagnosis rather than ongoing self-treatment.