Discover your unique microbiome profile with advanced testing

Learn More →
Gut Health

Stomach Pain After Eating: Causes by Location and Timing

Stomach pain after eating is usually indigestion, reflux, gas or a food intolerance. Where it hurts and how soon it starts narrow the cause. Plus red flags.

October 17, 2026 Lucas Summer 11 min read
Topics:
Last reviewed: October 17, 2026

Stomach pain after eating, whether a dull stomach ache after eating or sharp cramps, is most often indigestion (functional dyspepsia), acid reflux, trapped gas or a food intolerance[1]. Two clues narrow the cause fastest: where it hurts and how soon after the meal it starts. Gallstones, ulcers, pancreatitis and reduced blood flow to the gut are less common but need a clinician.

It is a common complaint. In a survey of 54,127 adults in 26 countries, 11% said at least half of their abdominal pain episodes were linked to meals[2]. This guide sorts the causes by location and by timing, explains the gut microbiome's part, and lists the signs that mean you should get checked.

Get medical help promptly if your stomach pain after eating comes with black or tarry stool, blood or "coffee grounds" in vomit, pain spreading to your chest, jaw or arm, or severe pain that lasts for hours or never fully goes away. These can signal bleeding, a blocked bile duct, pancreatitis or a heart problem, and need a clinician, not home care[1][3][4].

Why does my stomach hurt after I eat?

If your stomach hurts every time you eat, the usual answer is a sensitive or slow-to-adjust upper digestive system, not a disease you can see on a scan. NIDDK says most chronic indigestion is diagnosed as functional dyspepsia, a disorder of gut-brain interaction[1]. Suspected factors include a stomach that does not relax and expand normally with food, a small intestine that is overly sensitive to stomach acid, mild inflammation, anxiety or depression, and genes[1].

Functional dyspepsia affected 7.2% of adults in the Rome IV Global Epidemiology Study. Two-thirds (66.6%) had the meal-related subtype, called postprandial distress syndrome, which means fullness or early satiety after eating[5]. It was more common in women and in younger adults[5].

Frequent meal-related pain often overlaps with other gut-brain disorders such as irritable bowel syndrome (IBS). People who report it also have more psychological distress and visit doctors more often[2]. NIDDK even lists pain from the normal functions of the stomach as a possible factor in functional dyspepsia[1].

Where does it hurt? Causes by location

Location is the first sorting tool. MedlinePlus notes that pain spread over more than half the belly is more typical of a stomach virus, indigestion or gas, while pain in one spot points more toward a specific organ such as the gallbladder, appendix or stomach[6].

Where it hurts Common causes Clues that point to it
Upper middle (below the breastbone) Functional dyspepsia, gastritis, peptic ulcer, reflux Burning or dull pain, early fullness, bloating, belching[1][3]
Upper middle rising into the chest Acid reflux (GERD) Burning behind the breastbone, sour taste, regurgitation[7]
Upper right, under the ribs Gallbladder attack (biliary colic) Follows a heavy meal, often in the evening or at night, can last several hours[4]
Upper left or middle, into the back Acute pancreatitis Worse within minutes of eating, especially fatty food, then constant and severe[8]
Lower belly, either side IBS, lactose intolerance, gas Cramping, bloating, diarrhea or constipation, pain linked to bowel movements[9][10]

Upper middle stomach pain after eating

Pain in the upper middle belly, between the belly button and the breastbone, is the classic indigestion zone. It is also where a peptic ulcer hurts: NIDDK describes ulcer pain as dull or burning, sometimes easing briefly after food and sometimes made worse by it[3].

The two most common ulcer causes are Helicobacter pylori infection and NSAIDs such as aspirin, ibuprofen and naproxen[3]. Read more on peptic ulcers and on H. pylori gastritis.

If the burn climbs behind your breastbone toward your throat, reflux is more likely. NIDDK lists heartburn and regurgitation as the typical symptoms, though not everyone with reflux has heartburn[7]. Our GERD page covers the triggers and the microbiome research.

Upper right: the gallbladder

Pain under the right ribs after a heavy meal fits a gallbladder attack. It happens when a gallstone blocks a bile duct, and once you have had one attack, more are likely[4]. Gallstones affect 10% to 15% of US adults, but nearly 80% never cause symptoms[11]. Risk is higher with female sex, older age, obesity, type 2 diabetes and rapid weight loss[11].

Upper left or pain that goes into the back

Acute pancreatitis causes pain in the upper left or middle abdomen that may spread to the back or below the left shoulder blade[8]. At first it may flare within minutes of eating or drinking, then becomes constant and severe for days, often with fever, nausea and vomiting[8]. Gallstones are the most common cause, and alcohol accounts for 17% to 25% of US cases[8].

Lower stomach pain after eating

Lower stomach pain after eating, with bad cramps and a change in bowel habits, usually involves the intestines. In IBS, pain is often related to bowel movements, and some people feel pain from a normal amount of gas or stool[9]. In one study of 330 people with IBS, 63% linked their symptoms to meals, most often after carbohydrate-rich or fatty foods, coffee, alcohol and spicy dishes[12]. If you have IBS-type symptoms with diarrhea, the ACG suggests testing for celiac disease and checking fecal calprotectin to rule out inflammatory bowel disease[13].

Sharp stomach pain after eating can also come from trapped gas; see trapped gas pain. Colicky pain that comes in waves and starts and stops suddenly is more typical of gallstones[6].

How soon after eating does the pain start?

Timing is the second clue, because each cause has its own clock. Use the table as a guide to what to discuss with a clinician, not as a diagnosis.

When it starts Likely causes What else you may notice
During the meal or right after Functional dyspepsia, gastritis, reflux Full too soon, burning, bloating, belching[1][14]
Within minutes, then constant Acute pancreatitis Severe pain into the back, vomiting, fever[8]
10 to 30 minutes, lasting 1 to 2 hours Chronic mesenteric ischemia Fear of eating, smaller portions, weight loss[15]
30 minutes to 8 hours Staph food poisoning Nausea, vomiting, cramps, diarrhea[16]
Within a few hours of dairy Lactose intolerance Gas, bloating, diarrhea, rumbling[10]
Evening or night after a heavy meal Gallbladder attack Upper-right pain lasting several hours[4]
Long after eating, still full Gastroparesis Nausea, vomiting, early fullness[17]
6 hours to several days Salmonella, norovirus, other infections Diarrhea, vomiting, fever[16]

Food poisoning rarely causes pain within minutes. CDC lists the shortest onset, for Staphylococcus aureus toxin, at 30 minutes to 8 hours, and norovirus at 12 to 48 hours[16]. If the whole household got sick after the same meal, compare the symptoms in our guide to stomach flu vs. food poisoning.

Which causes need a doctor rather than home care?

Some causes of post-meal pain will not settle with diet changes and need testing.

  • Peptic ulcer. Ulcers are less common than two decades ago, as H. pylori rates have fallen and acid-suppressing drugs are widely used[18]. They still need diagnosis and treatment, and many cause no pain until they bleed[3].
  • Gallstones. Repeated attacks, or pain lasting hours with fever, jaundice, tea-colored urine or pale stools, need prompt care[4].
  • Chronic mesenteric ischemia. Narrowed gut arteries cannot meet the 30% to 150% rise in blood flow digestion demands[15]. Pain typically starts 10 to 30 minutes after eating and lasts 1 to 2 hours, and 90% of patients start eating smaller portions to avoid it[15]. European guidelines advise considering it in anyone with unexplained post-meal pain plus weight loss of more than 5% or a changed eating pattern[15].
  • Gastroparesis. Food stays in the stomach too long without a blockage[19]. Diabetes is the most common known cause[17].
  • Celiac disease. Gluten triggers an immune reaction that can cause abdominal pain, bloating, diarrhea or constipation; symptoms usually improve on a gluten-free diet once diagnosed[20].

Can medicines cause stomach pain after eating?

Yes. NIDDK lists NSAIDs, certain antibiotics, iron supplements, osteoporosis drugs, corticosteroids and GLP-1 receptor agonists (used for diabetes and weight loss) as causes of indigestion[1]. Opioid pain medicines and some antidepressants can slow stomach emptying and mimic gastroparesis[17]. Calcium channel blockers, benzodiazepines and tricyclic antidepressants can worsen reflux[7].

If a new prescription lines up with new pain after meals, tell the prescriber. Do not stop or change a prescribed medicine on your own.

What does the gut microbiome have to do with it?

Gut microbes play a part in several of these causes, especially lower-belly pain with gas, bloating or diarrhea.

  • Fermentation. Carbohydrates your small intestine does not fully absorb reach the colon, where bacteria break them down and make gas[21]. In lactose intolerance, undigested milk sugar is fermented this way, producing the fluid and gas behind cramps and diarrhea[10].
  • Overgrowth in the wrong place. SIBO, an increase or change in bacteria in the small intestine, can produce extra gas and may cause diarrhea and weight loss[21].
  • Infection of the stomach lining. Helicobacter pylori causes gastritis and ulcers[14]. The ACG/CAG guideline recommends that people under 60 with ongoing dyspepsia get a non-invasive H. pylori test, and treatment if positive[22].
  • The upper small intestine. A 2025 review proposes that food interacting with altered duodenal bacteria may switch on low-grade immune activation in functional dyspepsia and IBS, which could explain why symptoms start early after meals[23]. This is a hypothesis still being tested.

Diet changes aimed at fermentation have the strongest evidence in IBS. A network meta-analysis of 13 trials (944 patients) ranked a low-FODMAP diet first for global symptoms, abdominal pain and bloating[24]. The ACG recommends a limited trial of the diet for IBS[13].

How do you stop stomach pain after eating?

For a mild upset stomach after eating, with no red flags, these steps are reasonable while you work out the pattern:

  1. Sip water or clear fluids and skip solid food for a few hours if the pain is acute[6].
  2. Try an antacid for upper pain after meals, especially with heartburn; MedlinePlus says antacids may help in that situation[6].
  3. Eat smaller, more frequent meals and limit gas-producing foods[6].
  4. Limit common triggers while symptoms are active: citrus, tomato products, fried or high-fat foods, caffeine, alcohol and fizzy drinks[6].
  5. Slow down. Eating or drinking quickly, chewing gum and carbonated drinks add swallowed air[21].
  6. Keep a food and symptom log. Triggers differ between people; NIDDK lists fizzy drinks, wheat products, caffeine, fruit juices and fatty foods as common ones in functional dyspepsia[25].

Peppermint oil or caraway oil are sometimes recommended for indigestion, but NIDDK advises talking with your doctor before taking supplements[25]. If over-the-counter remedies do not help, NIDDK advises seeing a doctor[7]. The ACG notes that proton pump inhibitors work for reflux but long-term overuse is a concern[26].

When to see a doctor

Constant or severe pain is not something to wait out. Get medical help right away, or call emergency services, if stomach pain after eating comes with any of these[6][1]:

  • vomiting blood or vomit that looks like coffee grounds, or black, tarry or bloody stool;
  • pain in the chest, neck, jaw, shoulder or arm, or shortness of breath;
  • sudden, sharp pain, or a belly that is rigid and very tender;
  • yellowing of the skin or eyes;
  • pregnancy, or possible pregnancy.

Book an appointment if you have discomfort that lasts a week or longer, pain that is not better in 24 to 48 hours, weight loss without trying, or difficulty swallowing[6][1]. See a doctor for food-poisoning symptoms with bloody diarrhea, diarrhea beyond 3 days or a fever over 102°F[16]. The ACG/CAG guideline suggests that people aged 60 or older with indigestion have an upper endoscopy[22].

This article is for general educational purposes and is not medical advice. Pain location and timing can suggest a cause but cannot diagnose one, and this guide does not replace an examination or testing. Talk to a qualified healthcare professional about persistent or severe stomach pain, particularly if you are pregnant, immunocompromised, taking prescription medication, or managing a diagnosed condition.

Frequently Asked Questions

What is gastritis stomach pain like?

Most people with gastritis have no symptoms at all, according to NIDDK. When it does cause symptoms, they look like indigestion: pain or discomfort in the upper abdomen, nausea or vomiting, feeling full too soon during a meal or too full afterward, and loss of appetite. Common causes are H. pylori infection and irritation from NSAIDs, alcohol or bile reflux. Black stool or vomit that looks like coffee grounds can signal bleeding and needs care right away.

What are the symptoms of stomach ulcers?

NIDDK describes ulcer pain as a dull or burning pain in the upper abdomen, anywhere between the belly button and the breastbone, that can come and go. For some people it is worse on an empty stomach or at night and eases for a while after eating. For others, eating makes it worse, so meal timing alone cannot confirm an ulcer. Many people with ulcers have no pain until a complication such as bleeding appears.

What are the four types of stomach pain?

MedlinePlus describes four patterns. Generalized pain covers more than half the belly and is typical of a stomach virus, indigestion or gas. Localized pain sits in one spot and points more toward an organ such as the appendix, gallbladder or stomach. Cramp-like pain is usually gas and bloating, often followed by diarrhea. Colicky pain comes in waves, starts and stops suddenly, and is often caused by gallstones or kidney stones.

What virus gives you stomach pain?

Norovirus is the classic one. CDC lists diarrhea, vomiting, nausea and stomach pain starting 12 to 48 hours after exposure, sometimes with fever, headache and body aches. Bacteria cause food poisoning too, on different clocks: Staphylococcus aureus toxin can cause cramps and vomiting within 30 minutes to 8 hours, and Salmonella within 6 hours to 6 days. Pain that starts minutes after a meal is less likely to be an infection from that meal.

What could be causing me to feel hot and unwell after eating?

Feeling feverish, achy and sick with stomach cramps points toward an infection such as food poisoning or a stomach virus rather than simple indigestion, especially if diarrhea or vomiting follows. CDC advises seeing a doctor for a fever over 102°F, bloody diarrhea, diarrhea lasting more than 3 days, or vomiting so frequent you cannot keep liquids down. Fever with upper-right pain after a heavy meal can signal a gallbladder problem and also needs prompt care.

What are common causes of abdominal pain in kids?

Infections and food intolerances are among the causes that apply to children as well as adults. NIDDK notes that digestive symptoms of celiac disease are more common in children than in adults, and that lactose intolerance from lactase nonpersistence often starts in later childhood or the teen years. MedlinePlus advises contacting a provider when a child has a fever of 100.4°F (38°C) or higher along with belly pain, or pain that does not improve in 24 to 48 hours.

Why do I get stomach pain and diarrhea after eating?

Pain with diarrhea after meals usually points lower in the gut. In IBS, NIDDK says pain is often tied to bowel movements, and in one study 63% of people with IBS linked their symptoms to meals. Lactose intolerance causes cramps, gas and diarrhea within a few hours of dairy. Food poisoning causes cramps and diarrhea hours to days after a contaminated meal. MedlinePlus advises contacting a provider for diarrhea lasting more than 5 days or unexplained weight loss.

What stomach pains should you never ignore?

Do not ignore pain that is sudden, sharp or severe and does not go away, or a belly that is rigid and tender. Get help right away if pain comes with vomiting blood or coffee-ground material, black or bloody stool, chest, jaw or shoulder pain, trouble breathing, yellow skin or eyes, or pregnancy. These red flags apply to upper abdominal pain too, as do unexplained weight loss and trouble swallowing, according to MedlinePlus and NIDDK.

References

  1. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Indigestion. NIDDK Health Information. 2025. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/symptoms-causes ↩
  2. Colomier E, Melchior C, Algera JP, et al.. Global prevalence and burden of meal-related abdominal pain. BMC Medicine. 2022;20(1):71. doi:10.1186/s12916-022-02259-7 ↩
  3. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Peptic Ulcers (Stomach or Duodenal Ulcers). NIDDK Health Information. 2022. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/symptoms-causes ↩
  4. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gallstones. NIDDK Health Information. 2017. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gallstones/symptoms-causes ↩
  5. Tack J, Palsson OS, Bangdiwala SI, et al.. Functional Dyspepsia and Its Subgroups: Prevalence and Impact in the Rome IV Global Epidemiology Study. Alimentary Pharmacology & Therapeutics. 2025;62(3):330-339. doi:10.1111/apt.70189 ↩
  6. MedlinePlus. Abdominal pain. MedlinePlus Medical Encyclopedia. 2025. Available at: https://medlineplus.gov/ency/article/003120.htm ↩
  7. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of GER & GERD. NIDDK Health Information. 2020. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/acid-reflux-ger-gerd-adults/symptoms-causes ↩
  8. MedlinePlus. Acute pancreatitis. MedlinePlus Medical Encyclopedia. 2025. Available at: https://medlineplus.gov/ency/article/000287.htm ↩
  9. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Irritable Bowel Syndrome. NIDDK Health Information. 2017. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/irritable-bowel-syndrome/symptoms-causes ↩
  10. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Lactose Intolerance. NIDDK Health Information. 2018. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/lactose-intolerance/symptoms-causes ↩
  11. Patel H, Jepsen J. Gallstone Disease: Common Questions and Answers. American Family Physician. 2024;109(6):518-524. Available at: https://pubmed.ncbi.nlm.nih.gov/38905549/ ↩
  12. Simrén M, Månsson A, Langkilde AM, et al.. Food-Related Gastrointestinal Symptoms in the Irritable Bowel Syndrome. Digestion. 2001;63(2):108-115. doi:10.1159/000051878 ↩
  13. Lacy BE, Pimentel M, Brenner DM, et al.. ACG Clinical Guideline: Management of Irritable Bowel Syndrome. American Journal of Gastroenterology. 2020;116(1):17-44. doi:10.14309/ajg.0000000000001036 ↩
  14. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gastritis & Gastropathy. NIDDK Health Information. 2019. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gastritis-gastropathy/symptoms-causes ↩
  15. Terlouw LG, Moelker A, Abrahamsen J, et al.. European guidelines on chronic mesenteric ischaemia – joint United European Gastroenterology, European Association for Gastroenterology, Endoscopy and Nutrition, European Society of Gastrointestinal and Abdominal Radiology, Netherlands Association of Hepatogastroenterologists, Hellenic Society of Gastroenterology, Cardiovascular and Interventional Radiological Society of Europe, and Dutch Mesenteric Ischemia Study group clinical guidelines on the diagnosis and treatment of patients with chronic mesenteric ischaemia. United European Gastroenterology Journal. 2020;8(4):371-395. doi:10.1177/2050640620916681 ↩
  16. Centers for Disease Control and Prevention. Food Poisoning Symptoms. CDC Food Safety. 2025. Available at: https://www.cdc.gov/food-safety/signs-symptoms/index.html ↩
  17. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gastroparesis. NIDDK Health Information. 2018. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gastroparesis/symptoms-causes ↩
  18. Lanas A, Chan FKL. Peptic ulcer disease. The Lancet. 2017;390(10094):613-624. doi:10.1016/S0140-6736(16)32404-7 ↩
  19. Camilleri M, Kuo B, Nguyen L, et al.. ACG Clinical Guideline: Gastroparesis. American Journal of Gastroenterology. 2022;117(8):1197-1220. doi:10.14309/ajg.0000000000001874 ↩
  20. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Celiac Disease. NIDDK Health Information. 2020. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/celiac-disease/symptoms-causes ↩
  21. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gas in the Digestive Tract. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/symptoms-causes ↩
  22. Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N. ACG and CAG Clinical Guideline: Management of Dyspepsia. American Journal of Gastroenterology. 2017;112(7):988-1013. doi:10.1038/ajg.2017.154 ↩
  23. Talley NJ, Duncanson K, Williams GM. Why are disorders of gut–brain interaction (DGBI) often food-related? Duodenal eosinophils and mast cells, small intestinal bacteria, food allergy and altered food intake in functional dyspepsia and the irritable bowel syndrome: a new paradigm. Journal of Gastroenterology. 2025;60(10):1211-1220. doi:10.1007/s00535-025-02268-2 ↩
  24. Black CJ, Staudacher HM, Ford AC. Efficacy of a low FODMAP diet in irritable bowel syndrome: systematic review and network meta-analysis. Gut. 2021;71(6):1117-1126. doi:10.1136/gutjnl-2021-325214 ↩
  25. National Institute of Diabetes and Digestive and Kidney Diseases. Eating, Diet, & Nutrition for Indigestion. NIDDK Health Information. 2025. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/eating-diet-nutrition ↩
  26. Katz PO, Dunbar KB, Schnoll-Sussman FH, Greer KB, Yadlapati R, Spechler SJ. ACG Clinical Guideline for the Diagnosis and Management of Gastroesophageal Reflux Disease. American Journal of Gastroenterology. 2021;117(1):27-56. doi:10.14309/ajg.0000000000001538 ↩
L

Lucas Summer

Independent Microbiome Researcher

Share:

FREE DOWNLOAD

You've read the research. Now get the protocol.

The complete Gut Restoration Protocol -- 14 pages, 16 peer-reviewed citations, specific strains and doses, and a phased action plan you can start this week.

16 citations 14 pages Phased protocol
Download Free Protocol

No spam. Unsubscribe anytime. Join 10,000+ readers.

Related Articles