Most stomach cramps ease within a few minutes to a couple of hours with simple at-home measures: applying heat, adjusting your position, sipping warm fluids, or taking an over-the-counter pain reliever. The right approach depends on what’s causing the cramp, whether that’s trapped gas, a muscle spasm, menstrual pain, or something you ate.
Apply Heat First
A heating pad or hot water bottle placed directly over the cramping area is one of the fastest ways to ease abdominal muscle tension. Heat increases blood flow and relaxes smooth muscle in the intestinal wall, which is the tissue responsible for most stomach cramps. Keep the temperature comfortable (not scalding) and leave it on for 15 to 20 minutes. A warm bath works the same way if you don’t have a heating pad handy.
Stretch to Move Trapped Gas
Gas expanding inside the intestines is one of the most common causes of sharp, sudden stomach cramps. Certain body positions create gentle pressure on the abdomen that helps gas move through and out of the digestive tract.
Knee-to-chest: Lie on your back, bend both knees, and pull them toward your chest with your hands. Tuck your chin down. Hold for 30 seconds to a minute. This compresses the abdomen and shortens the path gas needs to travel.
Child’s pose: Kneel on the floor, then sit back onto your heels while stretching your arms out in front of you, palms flat. Let your forehead rest on the floor so your torso presses gently against your thighs. The mild compression against your belly encourages gas to shift.
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 your feet and gently pull down to create light tension. This opens the hips and relaxes the lower abdominal muscles.
Try holding each position for 30 to 60 seconds and repeating a few times. Even a slow walk around the room can help if getting on the floor isn’t practical.
What to Drink (and Avoid)
Warm water or chamomile tea can have a mild calming effect on intestinal spasms. Chamomile acts as a gentle, natural antispasmodic. Peppermint tea is another option, though for some people it worsens acid reflux, so skip it if heartburn is part of the picture.
Dehydration and electrolyte imbalances are an underappreciated cause of abdominal cramping. Sodium, potassium, and magnesium all play direct roles in muscle contraction and relaxation. If you’ve been sweating heavily, vomiting, or had diarrhea, your electrolyte levels may be off. An oral rehydration drink or even a pinch of salt in water with a squeeze of citrus can help restore balance faster than plain water alone.
Avoid carbonated drinks, alcohol, and caffeine while you’re cramping. All three can increase intestinal gas or stimulate the gut in ways that make cramps worse.
Over-the-Counter Options
Peppermint oil capsules are the only over-the-counter antispasmodic available in the U.S. They work by relaxing smooth muscle in the intestinal wall. Enteric-coated capsules are preferable because they dissolve in the intestine rather than the stomach, reducing the chance of heartburn.
For menstrual cramps specifically, ibuprofen is highly effective because it targets the root cause. During your period, the uterus releases chemicals called prostaglandins that trigger intense contractions. Ibuprofen blocks the production of those chemicals, and studies have shown it can reduce prostaglandin levels in menstrual fluid by three to four times, providing significant pain relief. Taking it at the first sign of cramping (rather than waiting until pain peaks) gives it time to lower prostaglandin levels before contractions intensify.
Simethicone (sold as Gas-X) breaks up gas bubbles in the gut and can relieve cramps caused by bloating. It won’t help with muscle spasms or menstrual pain, but if your cramp comes with a feeling of fullness or pressure, it’s worth trying.
What to Eat While Recovering
You may have heard of the BRAT diet (bananas, rice, applesauce, toast) for an upset stomach. It’s no longer recommended as a strict protocol because it lacks protein, calcium, vitamin B12, and fiber. Following it for more than a day or two can actually slow recovery, especially in children, where the American Academy of Pediatrics considers it too restrictive.
The underlying principle is still useful, though: eat soft, bland foods while your gut is irritated. Just expand beyond those four items. Scrambled eggs, skinless chicken or turkey, and cooked vegetables are gentle on the stomach while providing the nutrients your body needs to recover. As soon as you feel well enough to eat more, do so.
Foods That Make Cramps Worse
Certain carbohydrates are poorly absorbed in the small intestine and ferment rapidly once they reach the large intestine, producing gas that stretches the intestinal wall and triggers cramps. These are sometimes grouped under the acronym FODMAPs. Common culprits include onions, garlic, beans, wheat, apples, pears, dairy (for those with lactose intolerance), and artificial sweeteners like sorbitol and mannitol.
If you notice a pattern of cramping after meals, keeping a simple food diary for a week or two can help you spot which foods are triggering it. You don’t need to eliminate entire food groups permanently. Identifying the one or two biggest offenders often makes a noticeable difference.
Cramps That Need Medical Attention
Most stomach cramps are harmless and pass on their own. Some patterns, however, signal something more serious. Seek immediate care if you experience:
- Sudden, severe pain that feels unlike anything you’ve had before, especially if it comes on abruptly
- Pain that migrates from around the belly button to the lower right side of your abdomen (a classic sign of appendicitis)
- Fever with abdominal pain, particularly if the abdomen feels rigid or tender to the touch
- Pain that worsens when you cough, tap your heel on the ground, or release pressure after pressing on the abdomen (these suggest inflammation of the abdominal lining)
- Vomiting blood or passing black, tarry stools
- No bowel sounds at all combined with bloating and inability to pass gas, which can indicate a bowel obstruction
Right lower quadrant pain is one of the strongest individual indicators of appendicitis. Pain in the upper right abdomen that gets sharply worse when you breathe in while someone presses on that area points toward gallbladder inflammation. Both require prompt evaluation.
Cramps that keep coming back over weeks or months, even if they’re not severe, are also worth investigating. Recurring pain can point to conditions like irritable bowel syndrome, food intolerances, or inflammatory bowel disease, all of which respond well to treatment once identified.

