sofidexFor patientsAre you a clinician? Clinical site

Health Library  ›  Questions  ›  What causes stomach cramps?

Question · Abdominal pain

What causes stomach cramps?

Stomach cramps are commonly caused by trapped gas, indigestion, constipation, a stomach or bowel infection, irritable bowel syndrome, or menstrual cramps. Less commonly, they may come from another abdominal organ, a muscle strain, or a condition needing urgent care.

QuestionReviewed 2026-11-22sofidex editorial standards

Common digestive causes
Gas, indigestion, constipation, or infection
Recurring cramps
May be linked to irritable bowel syndrome
Lower abdominal cramps
Menstrual cramps are a common cause
Pain may come from
Organs, muscles, nerves, chest, back, or pelvis

Common causes of cramps

A stomach or bowel infection, sometimes called gastroenteritis, often causes cramps with diarrhoea, nausea, or vomiting. Irritable bowel syndrome can cause recurring pain with constipation, diarrhoea, or both.

Muscle strain may cause pain after lifting, exercise, or prolonged coughing. Stress can worsen indigestion or irritable bowel symptoms, but new or persistent pain should not automatically be blamed on stress.

Other possible causes

Less common causes include stomach ulcers, gallstones, kidney stones, urinary infections, coeliac disease, inflammatory bowel disease, hernias, endometriosis, and ovarian cysts.

Urgent causes include appendicitis, inflammation of the gallbladder or pancreas, a blocked or perforated bowel, internal bleeding, pregnancy-related problems, and sudden testicular or ovarian pain. The pain’s location and strength cannot reliably show how serious the cause is.

What to do for mild cramps

For mild pain without warning signs, rest, drink small and frequent amounts of fluid, eat smaller meals if you feel able, and use gentle warmth. Note any links with food, bowel movements, urination, or menstrual periods.

A pharmacist can advise whether a suitable treatment may help. Do not start laxatives for severe, unexplained pain, especially if you are vomiting or cannot pass gas.

When to get help. Get emergency help for severe or sudden pain, fainting, confusion, breathing trouble, chest pressure, vomiting blood, black or bloody stool, a rigid or very swollen abdomen, or swelling with vomiting and inability to pass stool or gas. Seek prompt medical advice if pain worsens, persists or keeps returning, or occurs with fever, repeated vomiting, dehydration, yellow skin or eyes, blood in urine or stool, difficulty urinating, unexplained weight loss, lasting bowel changes, or concerning symptoms during pregnancy.

Sources

  1. 1National Health Service. Stomach ache and abdominal pain . NHS Health A to Z
  2. 2National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Indigestion
  3. 3National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Irritable Bowel Syndrome
  4. 4MedlinePlus, US National Library of Medicine. Abdominal Pain
  5. 5American College of Radiology. ACR Appropriateness Criteria: Acute Nonlocalized Abdominal Pain . 2023
  6. 6Cartwright SL, Knudson MP. “Evaluation of Acute Abdominal Pain in Adults.” American Family Physician . 2008;77(7):971–978
  7. 7American College of Obstetricians and Gynecologists. Ectopic Pregnancy patient guidance

Health information, not medical advice. Nothing here replaces talking to your own doctor about your own situation.