Stomach cramps happen when the muscles in your digestive tract contract forcefully, and the most common triggers are not serious: trapped gas, indigestion, or something you ate that didn’t agree with you. But cramps that keep coming back, show up in a specific spot, or arrive with other symptoms can point to something that needs attention. Where the pain is, when it started, and what makes it better or worse are the best clues to figuring out what’s going on.
The Most Common Culprits
Gas is the single most frequent cause of stomach cramps. When bacteria in your gut ferment undigested food, they produce gas that stretches the intestinal walls and triggers sharp, crampy pain that moves around your abdomen. It often comes in waves and improves after passing gas or having a bowel movement. Eating too fast, chewing gum, drinking carbonated beverages, and high-fiber foods like beans and cruciferous vegetables all increase gas production.
Indigestion is a close second. Eating large meals, eating too quickly, or eating rich and fatty foods can overwhelm your stomach’s capacity to break everything down efficiently. The result is a crampy, bloated feeling in your upper abdomen that sometimes comes with nausea or a burning sensation.
Constipation causes cramps when hardened stool stretches the walls of your colon. If you haven’t had a bowel movement in a few days and your lower abdomen feels tight and tender, this is a likely explanation. Dehydration, low fiber intake, and not moving enough during the day all contribute.
Food Poisoning vs. a Stomach Bug
If your cramps arrived suddenly along with nausea, vomiting, or diarrhea, either food poisoning or a viral stomach bug is probably responsible. The timing helps you tell them apart.
Food poisoning hits fast, typically two to six hours after eating contaminated food. It tends to be intense but short-lived, often resolving within a day. A stomach virus (viral gastroenteritis) has a longer incubation period of 24 to 48 hours and usually lasts about two days, sometimes longer. Both cause similar symptoms, but food poisoning usually comes on more abruptly and clears out sooner.
In either case, the main risk is dehydration from fluid loss. Small, frequent sips of water or an electrolyte drink are more important than trying to eat solid food right away.
Food Intolerances and Allergies
Cramps that follow a pattern, showing up after specific meals, often point to a food intolerance. Lactose intolerance is one of the most common: symptoms typically begin within a few hours of eating or drinking dairy products. Your body lacks enough of the enzyme needed to break down the sugar in milk, so it ferments in your gut and produces gas, bloating, cramps, and sometimes diarrhea.
Fructose (found in fruit, honey, and many processed foods) and gluten are other frequent triggers. The key difference between an intolerance and a true food allergy is severity. An intolerance causes digestive discomfort. A food allergy can cause hives, swelling, difficulty breathing, or a rapid drop in blood pressure, and it requires immediate medical attention.
If you suspect a food intolerance, tracking what you eat alongside your symptoms for two to three weeks can reveal patterns that are hard to spot otherwise.
Where the Pain Is Matters
The location of your cramps narrows down the list of possible causes considerably. Your abdomen contains many different organs, and each one tends to produce pain in a predictable area.
- Upper middle (just below the ribs): This region is associated with acid reflux, stomach inflammation, ulcers, and pancreas problems.
- Upper right (under the right rib cage): Gallbladder issues, including gallstones, are the classic cause of pain here. It often flares after fatty meals.
- Around the belly button: Early appendicitis sometimes starts here before moving to the lower right. Ulcers and small bowel problems can also cause pain in this area.
- Lower right: Appendicitis is the most important cause to rule out. The pain typically worsens over several hours and gets sharper with movement.
- Lower left: Diverticulitis, an inflammation of small pouches in the colon wall, is a common cause in adults over 40. Inflammatory bowel conditions like ulcerative colitis also tend to produce pain here.
- Low and central (below the belly button): Bladder infections, menstrual cramps, and in rare but serious cases, appendicitis or diverticulitis.
Pain that’s hard to pinpoint or that seems to move around is more typical of gas, a stomach virus, or a functional condition like irritable bowel syndrome.
Stress and the Gut-Brain Connection
If your cramps tend to flare during stressful periods, that’s not a coincidence. Your brain and gut are in constant two-way communication through a network of nerves and chemical signals. When you’re stressed or anxious, your brain releases a hormone called corticotropin-releasing hormone (CRH), which increases intestinal permeability and triggers inflammation in the gut lining. Stress also directly stimulates colonic contractions through pathways in the brainstem, which is why anxiety can send you running to the bathroom.
This isn’t “all in your head.” The physical cramping is real, driven by measurable changes in gut chemistry. People with irritable bowel syndrome are especially sensitive to this loop, where stress worsens gut symptoms, and gut symptoms increase anxiety.
When Cramps Keep Coming Back
Cramps that recur for months may point to irritable bowel syndrome (IBS), one of the most common chronic digestive conditions. The diagnostic pattern is abdominal pain at least one day per week for three months, linked to changes in how often you go, how your stool looks, or whether the pain improves after a bowel movement. Symptoms need to have been present for at least six months before a formal diagnosis is made.
IBS doesn’t damage the intestine, but it can significantly affect quality of life. Dietary changes, particularly reducing certain fermentable carbohydrates (often called FODMAPs), help many people. Stress management also plays a direct role in reducing flare-ups, given the gut-brain connection described above.
Inflammatory bowel disease, including Crohn’s disease and ulcerative colitis, is a less common but more serious cause of chronic cramps. Unlike IBS, these conditions involve visible inflammation and can cause bloody stool, weight loss, and fatigue.
Menstrual Cramps and Endometriosis
For people who menstruate, cramps in the lower abdomen are extremely common during periods. Up to 90% of women experience some degree of menstrual pain, with severe symptoms affecting roughly 30%. Mild discomfort is normal, but pain that keeps you home from work or school is not, and it’s worth evaluating.
Endometriosis is one condition that causes menstrual cramps far beyond the normal range. The pain is often debilitating, and it can also show up outside of periods as chronic pelvic pain. If your period cramps have been getting progressively worse over time, or if you have pain during sex or bowel movements, these are patterns worth bringing to a gynecologist.
Simple Remedies That Help
For cramps caused by gas, an over-the-counter anti-gas product containing simethicone works by breaking up gas bubbles in the digestive tract. The typical adult dose is 60 to 125 mg taken after meals and at bedtime, up to a maximum of 500 mg per day. It won’t fix the underlying cause, but it relieves the immediate pressure and discomfort.
A heating pad on your abdomen relaxes the smooth muscle in your gut and can ease cramps from gas, constipation, or menstrual pain. Peppermint tea has a similar antispasmodic effect. For constipation-related cramps, increasing water intake and adding fiber gradually (too much at once makes gas worse) usually resolves things within a few days.
Avoid lying flat right after eating, especially if your cramps tend to hit after meals. A short walk after dinner keeps food moving through your system and reduces the bloating and pressure that lead to cramps.
Signs You Need Emergency Care
Most stomach cramps resolve on their own, but certain patterns signal something that needs immediate evaluation. The American College of Emergency Physicians recommends seeking emergency care if your pain is sudden and severe, or if it doesn’t ease within 30 minutes. Continuous severe pain combined with persistent vomiting can indicate a serious or life-threatening condition.
Other red flags include a rigid or board-like abdomen that’s painful to touch, bloody stool or vomit, high fever alongside abdominal pain, severe pain in the lower right abdomen (possible appendicitis), or severe abdominal pain with vaginal bleeding (possible ectopic pregnancy). These situations don’t improve with home remedies and need professional assessment quickly.

