SymptomDigestive system

Abdominal Cramping

Abdominal cramping is a squeezing, gripping or twisting pain in the belly that often comes in waves. It usually comes from the muscles of the gut or womb tightening, and is most often caused by gas, a stomach bug, constipation, irritable bowel syndrome or period pain. Most cramps settle within hours to a few days. Severe or constant pain, a rigid belly, vomiting that will not stop, blood in the stool, or cramps in pregnancy need prompt medical care.

Also called: Stomach cramps, belly cramps, abdominal cramps, gut cramping, colicky abdominal pain

At a glance

What it is
Wave-like, squeezing pain in the abdomen from muscle contractions of the bowel, womb or other hollow organs.
Common causes
Gas, stomach bugs, food poisoning, constipation, IBS, lactose intolerance, period pain.
Serious causes
Bowel obstruction, appendicitis, ectopic pregnancy, diverticulitis, colitis.
Typical duration
Hours to 2 to 3 days for most infections and gas.
Treatment
Fluids, heat, rest, and treating the cause.

When to get help

Call 911 or go to the ER

  • Severe pain with a hard, rigid belly that hurts more when you move or cough
  • Cramps with vomiting and being unable to pass stool or gas (possible bowel obstruction)
  • Cramping in early pregnancy, or a possible pregnancy, with one-sided pain, bleeding, dizziness or shoulder-tip pain
  • Vomiting blood or passing black or large amounts of red blood

See a doctor within a day or two

  • Pain that moves to the lower right abdomen and gets steadily worse
  • Cramps with fever above 38.5 °C (101.3 °F), or bloody diarrhea
  • Signs of dehydration: very little urine, dizziness on standing, a very dry mouth
  • Cramps lasting more than 2 days without improving, or in someone over 65
  • Regular, tightening cramps in later pregnancy

Book a routine appointment

  • Cramps that keep coming back over weeks with changes in bowel habit
  • Cramps linked to particular foods such as milk or wheat
  • Period cramps severe enough to miss work or school, or getting worse with age

Usually safe to manage at home

  • Short-lived cramps with gas or bloating that ease after passing wind or a bowel movement
  • Mild cramps with diarrhea for a day or two, while you can keep fluids down
  • Usual period cramps that respond to pain relief and heat

What abdominal cramps feel like

Cramping pain builds to a peak, eases, then builds again. It is caused by smooth muscle in a hollow organ, such as the intestine, contracting strongly or against a blockage. Doctors call this pattern colicky pain. It differs from the steady, constant pain of inflammation, such as appendicitis or pancreatitis, though some conditions begin with cramps and become constant.

Where the cramp is felt gives a rough guide:

LocationCommon causes
Around the belly buttonGastroenteritis, early appendicitis, small bowel problems
Lower abdomen, both sidesPeriod pain, IBS, constipation, colitis
Lower leftConstipation, diverticulitis
Lower rightAppendicitis, ovarian problems
Upper abdomenIndigestion, gallbladder colic, stomach bug
All over, shiftingGas, IBS

Common causes of stomach cramps

Stomach bugs and food poisoning

Gastroenteritis from viruses such as norovirus causes sudden cramps with diarrhea, nausea and vomiting, usually lasting 1 to 3 days. Food poisoning produces similar symptoms, often within hours of eating contaminated food. Bloody diarrhea, high fever or symptoms lasting more than a few days suggest bacterial infection.

Gas and bloating

Swallowed air, fizzy drinks, beans, onions, cabbage and sugar alcohols (sorbitol, xylitol) cause gas that stretches the bowel and produces sharp, moving cramps. They ease after passing wind or a bowel movement.

Constipation

Hard, infrequent stools cause lower abdominal cramps, bloating and straining. Low fiber intake, not drinking enough, inactivity and medicines such as opioids and iron are common triggers.

Irritable bowel syndrome

Irritable bowel syndrome (IBS) causes recurring cramps linked to bowel movements, with diarrhea, constipation or both, and bloating. Pain often improves after a bowel movement. Symptoms flare with stress and certain foods but do not cause weight loss or bleeding.

Food intolerances

Lactose intolerance causes cramps, gas and diarrhea 30 minutes to 2 hours after dairy. Celiac disease, triggered by gluten, causes cramps, bloating, diarrhea and sometimes weight loss and anemia.

Period pain

Dysmenorrhea causes cramps in the lower abdomen that can spread to the back and thighs. Pain starts just before or with bleeding and lasts 1 to 3 days. Cramps that worsen over years, or come with pain during sex, may point to endometriosis.

Serious causes not to miss

  • Appendicitis: pain starts around the belly button and moves to the lower right, becoming constant, with loss of appetite and fever.
  • Bowel obstruction: severe waves of cramping with vomiting, a swollen belly and no passage of gas or stool. More likely after previous abdominal surgery or with a hernia.
  • Ectopic pregnancy: one-sided lower cramps with vaginal bleeding, 5 to 10 weeks after a missed period.
  • Diverticulitis: lower left pain, fever and a change in bowel habit, usually in people over 50.
  • Inflammatory bowel disease: cramps with bloody diarrhea, urgency and weight loss.
  • Gallbladder colic: severe upper right pain after fatty meals, lasting 30 minutes to several hours.
  • Kidney stones: intense waves of flank pain spreading to the groin.

Accompanying symptoms and what they suggest

Cramps plusPoints toward
Diarrhea and vomitingGastroenteritis, food poisoning
Bloating relieved by gasTrapped wind, IBS
Hard stools and strainingConstipation
Bloody diarrhea and feverBacterial infection, colitis
Vaginal bleedingPeriod, miscarriage, ectopic pregnancy
Vomiting and no gas passedBowel obstruction
Weight lossInflammatory bowel disease, celiac disease, cancer

How doctors find the cause

A doctor will ask where the pain is, how it started, what it feels like, how long it lasts, and about bowel habits, food, travel, periods and pregnancy. They will examine the abdomen for tenderness, swelling and guarding. Depending on findings, tests may include a pregnancy test, urine test, blood tests, stool tests for infection or inflammation (calprotectin), celiac blood test, and ultrasound or CT scans.

How to relieve abdominal cramps

  • Fluids: sip water or oral rehydration solution often, especially with diarrhea or vomiting.
  • Heat: a hot water bottle or heating pad on the belly relaxes muscle.
  • Eat lightly: small, bland meals once you are hungry again. Avoid fatty, spicy and very sugary foods for a day or two.
  • Gas relief: walking, simethicone, and avoiding fizzy drinks and gas-producing foods.
  • Constipation: increase fiber and fluids gradually, and try an over-the-counter laxative such as polyethylene glycol if needed.
  • Period cramps: an NSAID such as ibuprofen or naproxen started at the first sign of pain, at the label dose, works best. Avoid NSAIDs if you have stomach ulcers or kidney disease.
  • Antispasmodics: peppermint oil capsules or pharmacy antispasmodics help IBS cramps.

Avoid anti-diarrhea medicine such as loperamide if you have bloody diarrhea or a high fever. Do not give aspirin to children or teenagers.

Frequently asked questions

What causes sudden stomach cramps?

Sudden cramps are most often from a stomach bug, food poisoning, trapped gas or a food you do not tolerate. If they come with severe constant pain, a rigid belly, persistent vomiting or blood, they can signal appendicitis, bowel obstruction or another emergency.

Why do I have stomach cramps and diarrhea?

The most common cause is viral gastroenteritis or food poisoning, which usually clears in 1 to 3 days. Recurring cramps with diarrhea can be IBS, lactose intolerance, celiac disease or inflammatory bowel disease, especially if there is blood or weight loss.

How long do stomach cramps last?

Cramps from gas last minutes to hours. Cramps with a stomach bug last 1 to 3 days. Period cramps last 1 to 3 days per cycle. Cramps that last longer than 2 days, keep returning or worsen should be checked.

When are stomach cramps serious?

Get help urgently for severe or constant pain, a hard belly, vomiting with no gas passed, high fever, bloody stools, signs of dehydration, or cramps in pregnancy with bleeding or one-sided pain.

Can stress cause abdominal cramps?

Yes. Stress and anxiety affect the gut through the nerves linking brain and bowel, causing cramps, urgency and diarrhea. This is especially common in IBS. New or severe symptoms should still be checked for physical causes.

Sources

This guide was written from current patient and clinical guidance, including:

  • American College of Gastroenterology: Irritable bowel syndrome
  • NIDDK (National Institute of Diabetes and Digestive and Kidney Diseases): Viral gastroenteritis; Symptoms and causes of IBS
  • ACOG: Dysmenorrhea: Painful periods
  • NHS: Stomach ache
  • MedlinePlus: Abdominal pain