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.
- 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
- 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 hurts | Common causes | Must-not-miss causes |
|---|---|---|
| Upper right, under the ribs | Gallstones, pain after a fatty meal | Gallbladder infection, hepatitis |
| Upper middle (the pit of the stomach) | Indigestion, reflux, gastritis, peptic ulcer | Pancreatitis, heart attack, perforated ulcer |
| Upper left | Gastritis, trapped gas | Pancreatitis, spleen injury after a blow |
| Around the navel | Stomach bug, gas, IBS, umbilical hernia | Early appendicitis, bowel blockage |
| Lower right | Constipation, ovulation pain | Appendicitis, ectopic pregnancy, ovarian torsion (an ovary twisting on its blood supply), Crohn's disease, testicular torsion |
| Lower left | Constipation, IBS | Diverticulitis, ectopic pregnancy, ovarian cyst, testicular torsion |
| Low middle, above the pubic bone | Bladder infection, period cramps, prostate infection | Urinary retention (a bladder that cannot empty), pelvic infection |
| Groin | Inguinal hernia, pulled muscle | Trapped (strangulated) hernia, testicular torsion |
| Side or back (flank) | Kidney stone | Kidney infection, aortic aneurysm |
| All over | Stomach bug, IBS, gas | Bowel 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 does | Most likely cause | Read more |
|---|---|---|
| Burning or gnawing before meals or at night, eased by food | Peptic ulcer or gastritis | Peptic ulcer |
| Burning behind the breastbone or in the upper stomach, worse lying down or after large meals | Reflux (GERD) | Ask your GP or pharmacist |
| Steady, severe ache under the right ribs 30 minutes or more after a fatty meal | Gallstone attack | Gallstones |
| Severe upper pain boring straight through to the back, worse lying flat | Pancreatitis | Pancreatitis |
| Waves of pain from the side down into the groin, cannot sit still | Kidney stone | Kidney stones |
| Cramps that ease after a bowel movement, with looser or harder stools | IBS | IBS |
| Cramps with vomiting and diarrhea a few hours after a meal | Food poisoning or a stomach bug | Food poisoning |
| Pain that returns with each period and worsens over years | Endometriosis | Endometriosis |
| Bloating, gas and cramps within a couple of hours of dairy | Lactose intolerance | Lactose intolerance |
| Sore spot that hurts when you tense your belly, twist or cough, with no gut symptoms | Strained muscle or hernia | See a GP if there is a bulge |
| Vague pain near the navel that settles in the lower right over 12 to 24 hours | Appendicitis | Emergency 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.
- 01Indigestion and functional dyspepsia
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.
- 02Trapped gas and constipation
Crampy pain that moves around, eases after passing gas or stool, and comes with hard or infrequent stools. See constipation and bloating.
- 03Stomach bug or food poisoning
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
- 04Medicines
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.
- 05Period pain
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
- 06Reflux (GERD)
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.
- 07Irritable bowel syndrome (IBS)
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
- 08Peptic ulcer and gastritis
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
- 09Gallstones
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
- 10Lactose intolerance and celiac disease
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
- 11Kidney stone or urinary infection
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
- 12Hernia or belly-wall strain
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.
- 13Appendicitis
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
- 14Diverticulitis
Constant lower left pain with fever and a change in bowel habit, mostly after 50.
- 15Pancreatitis
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
- 16Inflammatory bowel disease
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
- 17Ectopic pregnancy
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
- 18Testicular torsion
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.
- 19Diabetic ketoacidosis
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
- 20Heart attack
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.
| Test | What an abnormal result points to | What it cannot tell you |
|---|---|---|
| CBC, white blood cell count | High: infection or inflammation (appendicitis, diverticulitis). Low hemoglobin: bleeding or poor absorption | A normal count does not rule out appendicitis |
| CRP | High: active inflammation or infection | Normal makes appendicitis and IBD less likely, not impossible |
| Lipase | Three or more times the upper limit: pancreatitis. Preferred over amylase, which rises and falls faster | Mild rises happen with kidney disease and other gut problems |
| ALT, ALP, bilirubin | ALP and bilirubin up: bile duct blockage. ALT high: liver inflammation | Normal results do not exclude gallstones |
| Creatinine, electrolytes, glucose | Raised creatinine: dehydration or a blocked kidney. Very high glucose with ketones: diabetic ketoacidosis | Does not find the cause of the pain |
| Urinalysis | Blood: kidney stone. Leukocyte esterase or nitrite (signs of white cells and bacteria in urine): urinary infection. Ketones: ketoacidosis or fasting | Cannot locate a stone or show its size |
| Beta-hCG pregnancy test | Positive: pregnancy, which changes the whole workup | Cannot show where the pregnancy is; that needs an ultrasound |
| Fecal calprotectin | High: bowel inflammation (IBD) rather than IBS | Also rises with infections and regular NSAID use |
| tTG-IgA (the celiac antibody), with total IgA | High: celiac disease. Total IgA checks you make enough IgA for the test to work | False negative if you have cut out gluten |
| H. pylori stool antigen or breath test | Positive: active infection behind an ulcer or gastritis | Acid-reducing medicines can cause a false negative |
| FIT (stool blood) | Positive: bleeding somewhere in the bowel | Does 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
The first-line tests for new stomach pain
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.
Tests for pain that keeps returning

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
- PsylliumSoluble fiber recommended by the ACG 2021 guideline for overall IBS symptoms, including belly pain.
- GingerMay ease nausea in some people; it does not treat the cause of the pain. Ask a pharmacist first if you take a blood thinner.
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
- American College of Obstetricians and Gynecologists. Practice Bulletin No. 193: Tubal ectopic pregnancy. Obstet Gynecol 2018;131(3):e91-e103
- Banks PA et al. Classification of acute pancreatitis 2012: revision of the Atlanta classification and definitions by international consensus. Gut 2013;62:102-111
- 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
- Lacy BE et al. ACG Clinical Guideline: Management of irritable bowel syndrome. Am J Gastroenterol 2021;116:17-44
- Sperber AD et al. Worldwide prevalence and burden of functional gastrointestinal disorders: results of Rome Foundation Global Study. Gastroenterology 2021;160:99-114
- 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.






