Stomach pain: the likely causes, the tests that sort them, and when to get help

Where it hurts and how it behaves narrow the list fast. Then a handful of blood, urine and stool tests separate the causes that settle on their own from the ones that need a doctor today.

Written with AI, checked against its sourcesPublished December 3, 2026 · 11 min read
Ask AI about this pageChatGPTClaudePerplexity

Stomach pain (doctors say abdominal pain) is one of the most common reasons Americans go to an emergency department, and most of it turns out to be harmless. The useful work is sorting the short list of dangerous causes from the long list of everyday ones. Location narrows the list, the way the pain behaves narrows it further, and tests settle the rest. Only one blood test, lipase, has a fixed cutoff; every other result shifts the odds rather than giving a yes or no.

When to get help now

Check these first. Abdominal pain with any sign in the first list needs an emergency department now. Signs in the second list need a clinician within days.

Call 911 or your local emergency number
  • Sudden, severe pain, or pain that keeps getting worse over a few hours
  • A hard, rigid belly, or pain so sharp that walking, coughing or a bumpy car ride makes it worse
  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stool or a lot of blood in the stool
  • No stool or gas passing, with repeated vomiting and a swollen belly
  • One-sided lower belly pain, fainting or shoulder-tip pain in anyone who could be pregnant
  • Sudden pain in a testicle or the groin, with or without lower belly pain, in a boy or man (testicular torsion, a twisted testicle)
  • Upper belly pain with chest pressure, breathlessness, sweating or nausea, which can be a heart attack
  • Belly pain running into the back in someone over 60 or with a known aortic aneurysm
  • High fever with severe pain, or yellow eyes with fever and shaking chills
See a doctor soon, the same day if you can
  • Pain that lasts more than a few days or keeps returning
  • Pain that wakes you from sleep
  • Weight loss you did not try for
  • Trouble swallowing, or vomiting that keeps coming back
  • Pain with diarrhea for more than three days, or blood mixed into the stool
  • New, persistent belly symptoms after age 50
  • Burning or pain when you pee, with fever or pain in the side

LifeFrom can't examine you or assess a symptom. If something feels seriously wrong, trust that and get care rather than waiting on a test.

Where does it hurt? A map of the belly

Doctors split the abdomen into regions because each one sits over a different set of organs. Location is a starting clue that the other signs confirm or overturn. Pain from a hollow organ such as the bowel (visceral pain) is dull and hard to pin down, so early on it often sits in the middle of the belly. Pain can also be referred, meaning it is felt away from the organ causing it, such as gallbladder pain in the right shoulder blade or a heart attack felt in the upper stomach.

Where it hurtsCommon causesMust-not-miss causes
Upper right, under the ribsGallstones, pain after a fatty mealGallbladder infection, hepatitis
Upper middle (the pit of the stomach)Indigestion, reflux, gastritis, peptic ulcerPancreatitis, heart attack, perforated ulcer
Upper leftGastritis, trapped gasPancreatitis, spleen injury after a blow
Around the navelStomach bug, gas, IBS, umbilical herniaEarly appendicitis, bowel blockage
Lower rightConstipation, ovulation painAppendicitis, ectopic pregnancy, ovarian torsion (an ovary twisting on its blood supply), Crohn's disease, testicular torsion
Lower leftConstipation, IBSDiverticulitis, ectopic pregnancy, ovarian cyst, testicular torsion
Low middle, above the pubic boneBladder infection, period cramps, prostate infectionUrinary retention (a bladder that cannot empty), pelvic infection
GroinInguinal hernia, pulled muscleTrapped (strangulated) hernia, testicular torsion
Side or back (flank)Kidney stoneKidney infection, aortic aneurysm
All overStomach bug, IBS, gasBowel blockage, diabetic ketoacidosis (a diabetes emergency, explained below), peritonitis (infection of the belly lining)

How it behaves tells you as much as where

Timing, triggers and the shape of the pain over an hour often point more clearly than location does. Pain that comes in waves (colicky pain) usually comes from a hollow organ squeezing against a blockage or gas; pain that is constant and builds suggests inflammation. These are the patterns clinicians ask about, in the words people use to describe them.

What the pain doesMost likely causeRead more
Burning or gnawing before meals or at night, eased by foodPeptic ulcer or gastritisPeptic ulcer
Burning behind the breastbone or in the upper stomach, worse lying down or after large mealsReflux (GERD)Ask your GP or pharmacist
Steady, severe ache under the right ribs 30 minutes or more after a fatty mealGallstone attackGallstones
Severe upper pain boring straight through to the back, worse lying flatPancreatitisPancreatitis
Waves of pain from the side down into the groin, cannot sit stillKidney stoneKidney stones
Cramps that ease after a bowel movement, with looser or harder stoolsIBSIBS
Cramps with vomiting and diarrhea a few hours after a mealFood poisoning or a stomach bugFood poisoning
Pain that returns with each period and worsens over yearsEndometriosisEndometriosis
Bloating, gas and cramps within a couple of hours of dairyLactose intoleranceLactose intolerance
Sore spot that hurts when you tense your belly, twist or cough, with no gut symptomsStrained muscle or herniaSee a GP if there is a bulge
Vague pain near the navel that settles in the lower right over 12 to 24 hoursAppendicitisEmergency assessment

The common causes of stomach pain, most likely first

Most stomach pain comes from the first few rows. The rarer causes are listed because they are the ones that cannot wait.

  1. 01
    Indigestion and functional dyspepsiaEverydaycommon

    Upper stomach fullness, burning or discomfort after eating, with normal tests. Functional dyspepsia (recurring indigestion with no structural cause) affects about 7% of adults worldwide 5.

  2. 02
    Trapped gas and constipationEverydaycommon

    Crampy pain that moves around, eases after passing gas or stool, and comes with hard or infrequent stools. See constipation and bloating.

  3. 03
    Stomach bug or food poisoningEverydaycommon

    Cramps with vomiting, diarrhea and sometimes a low fever, often shared with others who ate the same food; most cases clear in one to three days. See also diarrhea.

    Can be linked with Food poisoning

    White blood cell count
    high: points to infection or inflammation, common in severe gastroenteritis
  4. 04
    MedicinesEverydaycommon

    NSAIDs irritate the stomach lining; metformin, GLP-1 drugs such as semaglutide, iron tablets and some antibiotics commonly cause cramps, nausea or diarrhea. Do not stop a prescribed medicine without talking to the prescriber.

  5. 05
    Period painEverydaycommon

    Cramping low in the middle of the belly in the day before and the first days of a period. Pain that gets worse year on year, or pain during sex, points toward endometriosis.

    Can be linked with Endometriosis

  6. 06
    Reflux (GERD)Medicalcommon

    Burning behind the breastbone or in the upper stomach, sour taste, worse lying down or after large meals. Reflux that is new after 50, or comes with trouble swallowing or weight loss, needs a doctor.

  7. 07
    Irritable bowel syndrome (IBS)Medicalcommon

    Recurring belly pain tied to bowel movements and changes in stool form or frequency, over months, with normal basic tests.

    Can be linked with IBS

    Fecal calprotectin
    normal: supports IBS over inflammatory bowel disease
  8. 08
    Peptic ulcer and gastritisMedicalcommon

    Burning upper pain, often at night or on an empty stomach. Ulcers usually trace back to H. pylori infection or regular NSAID use (ibuprofen, naproxen, aspirin).

    Can be linked with Peptic ulcer

    H. pylori stool antigen
    positive: active H. pylori infection
    Hemoglobin
    low: points to slow bleeding from an ulcer
  9. 09
    GallstonesMedicalcommon

    Steady pain under the right ribs or in the pit of the stomach after fatty meals, lasting 30 minutes to several hours and sometimes reaching the right shoulder blade. Pale stool with dark urine suggests a stone blocking bile flow; see pale stool.

    Can be linked with Gallstones

    Alkaline phosphatase
    high: points to a blocked bile duct
    Total bilirubin
    high: points to a stone blocking bile flow
  10. 10
    Lactose intolerance and celiac diseaseMedicalcommon

    Bloating, cramps and loose stools linked to dairy (lactose) or to wheat, barley and rye (celiac disease, which also causes low iron and weight loss). If celiac tests are negative but wheat still causes symptoms, see gluten sensitivity.

    Can be linked with Celiac disease

    tTG-IgA
    high: points to celiac disease
  11. 11
    Kidney stone or urinary infectionMedicalcommon

    A stone causes waves of severe pain from the side into the groin; a bladder infection causes low middle pain with burning and frequent urination.

    Can be linked with Kidney stones

    Urine blood
    positive: supports a kidney stone
    Urine leukocyte esterase
    positive: points to a urinary infection
  12. 12
    Hernia or belly-wall strainEverydaycommon

    A bulge in the groin or near the navel that grows when you cough or stand, or a sore spot after exercise that hurts when you tense the belly. A hernia that turns hard, tender and will not push back in is an emergency.

  13. 13
    AppendicitisMedicalless common

    Pain that starts near the navel and moves to the lower right over hours, with loss of appetite, nausea and pain on walking. This is an emergency.

    White blood cell count
    high: supports appendicitis, though a normal count does not rule it out
    C-reactive protein
    high: supports an inflammatory cause
  14. 14
    DiverticulitisMedicalless common

    Constant lower left pain with fever and a change in bowel habit, mostly after 50.

  15. 15
    PancreatitisMedicalless common

    Severe, steady upper pain spreading to the back, with vomiting, often after heavy drinking or a gallstone attack.

    Can be linked with Pancreatitis

    Lipase
    three or more times the upper limit: points to pancreatitis
  16. 16
    Inflammatory bowel diseaseMedicalless common

    Months of pain with diarrhea, blood or mucus in the stool, weight loss or night symptoms.

    Can be linked with Inflammatory bowel disease

    Fecal calprotectin
    high: points to bowel inflammation such as Crohn's disease or ulcerative colitis
  17. 17
    Ectopic pregnancyMedicalrare

    One-sided lower pain, spotting, dizziness or shoulder-tip pain in someone who could be pregnant, even with a recent period. This is an emergency.

    Beta-hCG
    positive: pregnancy, which with one-sided pain needs urgent scanning
  18. 18
    Testicular torsionMedicalrare

    A twisted testicle, most often in teenagers and young men. It can be felt as lower belly or groin pain with nausea, and the testicle can be lost within hours. This is an emergency.

  19. 19
    Diabetic ketoacidosisMedicalrare

    Belly pain with vomiting, heavy thirst, fast breathing and high blood sugar, mostly in type 1 diabetes. People taking SGLT2 inhibitors (such as empagliflozin or dapagliflozin) can develop it with near-normal blood sugar, so tell the clinician about these medicines. This is an emergency.

    Can be linked with Diabetic ketoacidosis

    Urine ketones
    high, usually with high blood sugar: points to ketoacidosis
  20. 20
    Heart attackMedicalrare

    Upper stomach pain or pressure with breathlessness, sweating or nausea, especially in older adults, women and people with diabetes. Call 911.

    Can be linked with Heart attack

Most belly pain that brings people to an emergency department settles without a serious cause being found. The red flags above are what separate the few who need more.

Which blood, urine and stool tests sort the causes

No single test explains stomach pain. Each test answers one narrow question, and the value comes from matching the test to the pattern. A doctor seeing upper right pain checks liver enzymes and orders an ultrasound; a doctor seeing lower right pain checks a white count, CRP and, where relevant, a pregnancy test.

TestWhat an abnormal result points toWhat it cannot tell you
CBC, white blood cell countHigh: infection or inflammation (appendicitis, diverticulitis). Low hemoglobin: bleeding or poor absorptionA normal count does not rule out appendicitis
CRPHigh: active inflammation or infectionNormal makes appendicitis and IBD less likely, not impossible
LipaseThree or more times the upper limit: pancreatitis. Preferred over amylase, which rises and falls fasterMild rises happen with kidney disease and other gut problems
ALT, ALP, bilirubinALP and bilirubin up: bile duct blockage. ALT high: liver inflammationNormal results do not exclude gallstones
Creatinine, electrolytes, glucoseRaised creatinine: dehydration or a blocked kidney. Very high glucose with ketones: diabetic ketoacidosisDoes not find the cause of the pain
UrinalysisBlood: kidney stone. Leukocyte esterase or nitrite (signs of white cells and bacteria in urine): urinary infection. Ketones: ketoacidosis or fastingCannot locate a stone or show its size
Beta-hCG pregnancy testPositive: pregnancy, which changes the whole workupCannot show where the pregnancy is; that needs an ultrasound
Fecal calprotectinHigh: bowel inflammation (IBD) rather than IBSAlso rises with infections and regular NSAID use
tTG-IgA (the celiac antibody), with total IgAHigh: celiac disease. Total IgA checks you make enough IgA for the test to workFalse negative if you have cut out gluten
H. pylori stool antigen or breath testPositive: active infection behind an ulcer or gastritisAcid-reducing medicines can cause a false negative
FIT (stool blood)Positive: bleeding somewhere in the bowelDoes not say where the bleeding comes from

Pancreatitis is the one place where a number decides. Under the revised Atlanta classification, doctors diagnose acute pancreatitis when two of three things are true: the typical upper pain, often into the back; a lipase or amylase at least three times the lab's upper limit; and a scan showing an inflamed pancreas 2. That makes lipase the one stomach-pain test read as a multiple of your lab's upper limit. The lipase page covers what else raises it.

Example lipase result against the pancreatitis cutoffx upper limit of normal

1.8mildly raised · for example, 108 U/L where the lab's upper limit is 60 U/L
Normal0–1Raised, many causes1–3Meets the pancreatitis cutoff3–6
A lipase under three times the upper limit does not meet the pancreatitis criterion on its own; with severe upper pain into the back, the doctor still weighs a scan. Ask whether to repeat lipase and liver tests, and whether an ultrasound is needed to look for gallstones.
Cutoff of three times the upper limit of normal from the revised Atlanta classification of acute pancreatitis (Banks et al., Gut 2013).

Imaging finds what blood tests cannot. Ultrasound is the first scan for upper right pain because it shows gallstones well without radiation 3. CT is the usual scan for lower belly pain in adults who are not pregnant. If you have an abdominal CT report with terms like "fat stranding" (hazy fat around an inflamed organ), the CT reader explains each line. The CBC guide, liver enzymes guide, urinalysis guide and CRP vs ESR cover the individual tests, and the urine test reader reads a urine report line by line.

If the pain won't go away or keeps coming back

Stomach pain that won't go away, or keeps returning over weeks, is a different problem from one bad night. Keep a two-week log of when it hurts, what you ate, your stools, your period and any medicines. That log is often more useful to a GP than any single result, because IBS, lactose intolerance and period-linked pain all show their pattern there.

Doctors diagnose IBS from the symptom pattern plus a few normal tests. Under the Rome IV criteria (the international definition doctors use), IBS means belly pain at least one day a week on average over the last three months, linked to two or more of: bowel movements, a change in how often you go, or a change in how the stool looks, with symptoms starting at least six months earlier 4. About 4% of adults worldwide meet that definition 5. When diarrhea is part of it, the American College of Gastroenterology recommends a celiac blood test (tTG-IgA) and suggests CRP and fecal calprotectin, because normal results make inflammatory bowel disease unlikely 4. Many doctors add a CBC. Your doctor decides whether more is needed.

Two test details trip people up. Celiac testing (tTG-IgA, with total IgA) works only while you are still eating gluten; going gluten-free first can make it read falsely normal 6. H. pylori is best tested with a stool antigen or a breath test, because the blood antibody test can stay positive after the infection has gone and cannot show whether it is still active. The stool test guide explains what each stool result means.

Free, no accountRead your blood testAlready have bloods from the ER or your GP? Read every line of the report, free.Read my results

What may help while it settles

For mild pain without red flags, the measures with the best support are plain ones. With vomiting or diarrhea, small frequent sips of fluid or an oral rehydration solution matter more than food. With pain that could be appendicitis or a bowel blockage (see the red flags above), get seen promptly and avoid eating or drinking until a clinician has assessed you. For pain that keeps returning as IBS, the American College of Gastroenterology recommends soluble fiber such as psyllium, and suggests peppermint oil on weaker evidence, for overall symptoms including pain 4. See also diarrhea and pale stool if either comes with the pain.

What may help mild, recurring stomach pain

These ease mild pain without red flags. None of them replaces a check for pain that is severe, new after 50, or keeps getting worse.

Start with the everyday things
  • A heat pad or warm water bottle on the belly for cramps
  • Small, frequent meals instead of large, fatty ones if pain follows eating
  • Sips of water or an oral rehydration solution during vomiting or diarrhea
  • Avoiding regular NSAIDs (ibuprofen, naproxen, aspirin) when the upper stomach hurts; ask a pharmacist about gentler options
  • No laxatives for severe pain you cannot explain
  • A two-week symptom, food and stool log to bring to an appointment
Supplements people look at

Supplements support general wellness. They don't treat the causes above, and if a test finds one, treating that comes first. If you take medicines, are pregnant or have a health condition, check with your clinician before starting anything.

Who should take stomach pain more seriously

  • Adults over 65: serious causes often show with less pain, less fever and a normal white count, and aortic aneurysm and blocked gut arteries become possible.
  • Anyone who is or could be pregnant: a pregnancy test belongs in every workup, because ectopic pregnancy makes up about 2% of reported pregnancies and a ruptured one is the leading cause of pregnancy-related death from bleeding 1.
  • People with diabetes: belly pain can be the first sign of diabetic ketoacidosis or a heart attack with little chest pain.
  • People on steroids, chemotherapy or other immune-lowering drugs: infection can be severe with few signs.
  • Children whose pain wakes them, settles in the lower right, or comes with a swollen belly or green vomit, and boys with any sudden groin or testicle pain.

Related symptoms often travel with stomach pain: bloating, constipation, diarrhea and pale stool each have their own page.

Citations
  1. American College of Obstetricians and Gynecologists. Practice Bulletin No. 193: Tubal ectopic pregnancy. Obstet Gynecol 2018;131(3):e91-e103
  2. Banks PA et al. Classification of acute pancreatitis 2012: revision of the Atlanta classification and definitions by international consensus. Gut 2013;62:102-111
  3. European Association for the Study of the Liver. EASL Clinical Practice Guidelines on the prevention, diagnosis and treatment of gallstones. J Hepatol 2016;65:146-181
  4. Lacy BE et al. ACG Clinical Guideline: Management of irritable bowel syndrome. Am J Gastroenterol 2021;116:17-44
  5. Sperber AD et al. Worldwide prevalence and burden of functional gastrointestinal disorders: results of Rome Foundation Global Study. Gastroenterology 2021;160:99-114
  6. Rubio-Tapia A et al. ACG Guidelines Update: Diagnosis and management of celiac disease. Am J Gastroenterol 2023;118:59-76

Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.

An everyday protocol, built from your answers

A starting set of our supplements for your goal, checked against what you take and made to order each month, with an app to log how you feel and keep your results in one place. You choose every pill.

  1. 01Tell us your goalSleep, stress, energy, heart. A few taps, no account.
  2. 02Get your starting setOur supplements for your goal, checked against what you take. You confirm every pill; made to order each month.
  3. 03Keep it going in the appLog how you feel, keep your results in one place, and LifeFrom AI to help you along.
From $62a month, delivery included · cancel anytime