How to Treat Stomach Cramps: Heat, Meds, and More

Most stomach cramps resolve on their own within a few hours, but you can speed things along with a combination of heat, simple dietary changes, over-the-counter remedies, and gentle movement. The right approach depends on what’s causing the cramping, whether that’s gas, something you ate, acid irritation, or menstrual pain radiating into your abdomen.

Apply Heat First

A heating pad or hot water bottle placed on your abdomen is one of the fastest ways to ease cramping. Heat relaxes the smooth muscle in your gut, which is the same muscle that contracts and causes that squeezing, wave-like pain. The goal is to raise your tissue temperature by about 9 to 12 degrees Fahrenheit, which most standard heating pads accomplish on a medium setting. Keep the temperature below 113°F to avoid discomfort, and well below 122°F to prevent burns. Twenty minutes on, then a short break, works well for most people.

If you don’t have a heating pad, a warm bath achieves the same effect. Even a towel soaked in warm water and wrung out can help in a pinch.

Over-the-Counter Options by Type of Pain

Cramping and Spasms

Peppermint oil capsules are the only over-the-counter antispasmodic available in the U.S. They work directly on the muscles in your digestive tract, relaxing them by blocking calcium uptake into the muscle cells. For occasional cramping or bloating, they’re a reasonable first choice. Look for enteric-coated capsules, which dissolve in your intestine rather than your stomach, reducing the chance of heartburn.

Acid-Related Pain

If your cramps feel more like burning or gnawing in the upper abdomen, the issue may be excess stomach acid. Liquid antacids neutralize acid quickly and provide the fastest relief. H2 blockers like famotidine take about an hour to kick in but last significantly longer. If you need immediate comfort with staying power, taking both together covers the gap.

Menstrual Cramps

Period-related stomach cramps respond best to anti-inflammatory painkillers like ibuprofen or naproxen. These work by reducing prostaglandins, the hormone-like chemicals your body releases during menstruation that cause your uterus and surrounding muscles to contract. Clinical evidence shows these are significantly more effective for period pain than acetaminophen (Tylenol), which doesn’t target the inflammation driving the cramps. Taking ibuprofen at the first sign of cramping, rather than waiting for the pain to build, gives it time to lower prostaglandin levels before they peak.

What to Eat (and What to Skip)

When your stomach is actively cramping, bland, easy-to-digest foods put the least demand on your gut. The classic BRAT approach (bananas, rice, applesauce, toast) works as a starting point, but you don’t need to limit yourself to just those four foods. Brothy soups, oatmeal, boiled potatoes, crackers, and plain dry cereal are all gentle options. The goal is to avoid anything that forces your digestive system to work hard while it’s irritated.

Once the cramping eases, typically within a day or two, start adding more nutritious foods back in: cooked squash, carrots, sweet potatoes without the skin, avocado, plain chicken or fish, and eggs. Avoid fried, spicy, or high-fat foods until you feel fully settled, since these stimulate more digestive contractions.

Stay hydrated throughout. Small, frequent sips of water or an electrolyte drink are easier to tolerate than large gulps, especially if nausea accompanies the cramping.

Ginger for Nausea and Cramping

Ginger contains compounds called gingerols and shogaols that reduce nausea and calm digestive irritation. You can use it as fresh ginger steeped in hot water, ginger chews, or capsules. Effective doses in studies range from 0.5 to 3 grams daily. For context, a one-inch piece of fresh ginger root weighs roughly 5 to 6 grams before steeping, so a strong cup of ginger tea falls within that range. It won’t eliminate severe cramps, but it’s particularly useful when cramping comes with queasiness or bloating.

Gentle Stretches That Relieve Gas Pain

Trapped gas is one of the most common causes of sharp, localized stomach cramps. Certain positions use gravity and gentle pressure on your abdomen to help gas move through and out of your system.

  • Child’s pose: Kneel on the floor, sit back onto your heels, and stretch your arms forward with your palms flat on the ground. Let your forehead rest on the floor so your torso presses gently against your thighs. Breathe deeply and hold until the pressure eases.
  • Knees to chest: Lie on your back, bend both knees, and pull them toward your chest with your hands on your shins or the fronts of your thighs. Tuck your chin slightly. This compresses the abdomen and encourages gas to pass.
  • Happy baby: Lie on your back, lift your knees to the sides of your body, and point the soles of your feet toward the ceiling. Grab the outsides of your feet and gently pull down. Rocking side to side can add extra relief.
  • Seated forward bend: Sit with your legs straight in front of you and fold forward from the hips, reaching toward your toes. Even a partial fold creates abdominal compression.

You can also try a simple abdominal self-massage, moving your hands in a clockwise direction (right to left) across your belly. This follows the natural path of your colon and can help move gas and stool along.

Probiotics for Recurring Cramps

If stomach cramps are a regular problem rather than a one-time event, probiotics may help reduce their intensity over time. A meta-analysis of people with irritable bowel syndrome and functional abdominal pain found that probiotics were 50% more likely to produce treatment success compared to a placebo and decreased abdominal pain intensity. The strain with the strongest evidence for abdominal pain specifically is Lactobacillus rhamnosus GG, which is widely available in supplement form and some yogurts. Probiotics aren’t a quick fix for cramps happening right now, but taken consistently, they can shift the balance for people who deal with cramping frequently.

When Stomach Cramps Signal Something Serious

Most stomach cramps are harmless, but certain patterns warrant urgent attention. Get to an emergency room if the pain is so severe it prevents you from functioning normally, if you’re vomiting repeatedly and can’t keep any liquids down, or if you’re unable to have a bowel movement and the pain is worsening.

Pay close attention to pain that starts near the belly button and migrates to the lower right side of your abdomen, especially if it worsens when you move, cough, or take deep breaths. This pattern suggests appendicitis, particularly when accompanied by loss of appetite, fever, or abdominal swelling. Pain in the upper abdomen that starts mild and gets worse after eating, combined with nausea, fever, or a rapid pulse, can indicate pancreatitis.

Also take note if your cramps feel different from anything you’ve experienced before, either more severe, in an unusual location, or paired with symptoms you don’t typically get. That change in pattern is itself a reason to seek evaluation rather than treating at home.