Symptom guide
Upper abdominal pain after eating: causes, red flags and when to get it checked
Pain in the upper middle or upper right abdomen that comes on within minutes to a couple of hours of eating is usually from the stomach, gullet or gallbladder. Indigestion and ulcers are the most common causes, with gallstones the one to remember when pain follows fatty meals. Weight loss, vomiting or black stools change the picture.
Last checked: 2026-10-03
Key facts
At a glance.
-
Timing helps
Pain soon after eating suggests the stomach or gullet; pain 30 minutes to a few hours after fatty food suggests the gallbladder.
-
Common causes
Functional dyspepsia, acid reflux, gastritis, peptic ulcer and gallstones.
-
Red flags
Weight loss, repeated vomiting, difficulty swallowing, black stools or anaemia need urgent assessment.
-
Age matters
New persistent indigestion in someone over 55 is investigated rather than treated blindly.
-
Who to see
GP; gastroenterology for endoscopy; surgery if gallstones cause repeated attacks.
What this symptom usually means
The upper abdomen contains the stomach, duodenum, gallbladder, pancreas and the lower gullet. Eating stimulates acid, bile and enzyme release, and moves food through, which can unmask a problem in any of these. The exact spot, timing after eating and food triggers help narrow it down.
Possible causes, from most to least common
-
Functional dyspepsia: recurring upper abdominal discomfort, early fullness or bloating with no structural cause found on testing.
-
Gastro-oesophageal reflux: burning behind the breastbone, a sour taste, worse lying down or bending.
-
Gastritis from alcohol, NSAIDs such as ibuprofen or aspirin, or Helicobacter pylori infection.
-
Peptic ulcer: gnawing pain that may ease or worsen with food, sometimes waking you at night.
-
Gallstones and biliary colic: severe, steady pain under the right ribs or in the centre, lasting up to several hours after a fatty meal, sometimes spreading to the right shoulder blade.
-
Pancreatitis: severe pain that bores through to the back, with vomiting, often linked to gallstones or alcohol.
-
Coeliac disease, food intolerances and gastroparesis (slow stomach emptying).
-
Stomach or oesophageal cancer, and a mesenteric artery problem causing pain after meals with weight loss, which are less common.
Features that point to something more serious
Unplanned weight loss, persistent vomiting, difficulty or pain swallowing, black or tarry stools, vomiting blood, iron deficiency anaemia, a lump in the upper abdomen, jaundice, severe constant pain or fever, and new symptoms over the age of 55 all call for urgent assessment.
Red flags: when to seek help
-
Call 999 or go to A&E: severe constant abdominal pain, vomiting blood, passing black tarry stools with dizziness, or pain with chest pressure and sweating.
-
Same-day GP or NHS 111: pain with fever and yellowing of skin or eyes, or pain that is severe and does not settle.
-
Urgent GP referral: weight loss, difficulty swallowing, anaemia or persistent indigestion with any red flag.
-
Routine GP: recurrent mild post-meal discomfort without red flags.
What a doctor will ask and examine
The doctor asks when pain starts after meals, how long it lasts, where it spreads, relation to fatty food, alcohol, painkiller use, weight change, vomiting, stool colour, smoking and family history. They examine the abdomen for tenderness, a gallbladder sign, masses, liver size and check for anaemia and jaundice.
Tests that are commonly used and why
-
Blood tests: full blood count, liver tests, amylase or lipase, coeliac screen and inflammatory markers.
-
Helicobacter pylori breath or stool test: to look for infection.
-
Abdominal ultrasound: the main test for gallstones.
-
Gastroscopy: to look for ulcers, inflammation or tumours, with biopsies where needed.
-
CT scan: if pancreatitis, a mass or vascular cause is suspected.
Self-care and the usual route
Eat smaller meals, avoid late heavy meals, reduce alcohol, fatty and spicy foods, and stop smoking. Avoid NSAIDs unless prescribed and necessary. Antacids can help occasional symptoms, but persistent pain needs assessment rather than long-term self-treatment.
The NHS route is a GP, with tests or an endoscopy referral, and a surgical referral for symptomatic gallstones. Private gastroenterology offers direct access to gastroscopy and ultrasound.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Why does my stomach hurt after eating?
Common reasons include indigestion, reflux, gastritis, ulcers and gallstones. The timing and the type of food that triggers the pain help distinguish them.
-
How do I tell gallstone pain from indigestion?
Gallstone pain is typically severe, steady, under the right ribs or centre, lasts up to hours and follows fatty meals, whereas indigestion is a burning or discomfort that varies.
-
Could it be an ulcer?
Possibly, especially with gnawing pain, NSAID use or night waking. A breath test for H. pylori and sometimes a gastroscopy assess this.
-
What is functional dyspepsia?
Persistent upper abdominal discomfort or fullness with no structural cause found on investigation, which is very common.
-
Do I need a gastroscopy?
If you have red flags, are over 55 with persistent symptoms, or have not responded to treatment, a gastroscopy is usually advised.
-
Is pain after eating a sign of cancer?
Rarely. Cancer is more likely when pain comes with weight loss, vomiting, swallowing difficulty or anaemia.
-
Can stress cause it?
Stress can worsen functional dyspepsia and reflux, but other causes should be considered if symptoms persist.
-
Which painkillers should I avoid?
NSAIDs such as ibuprofen, naproxen and aspirin can irritate the stomach lining. Check with a pharmacist or GP before use.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-03, next review 2027-10-03.
-
NHS: Indigestion (nhs.uk/conditions/indigestion/)
-
NHS: Stomach ulcer (nhs.uk/conditions/stomach-ulcer/)
-
NICE guideline CG184: Gastro-oesophageal reflux disease and dyspepsia in adults