Upper abdominal pain can feel like burning beneath the breastbone, pressure after eating, an ache under the ribs, or a sharp pain that travels into the back. Sometimes the cause is relatively minor, such as gas or indigestion. Other times, upper stomach pain can involve the gallbladder, pancreas, an ulcer, or even a problem outside the digestive system.
The location and timing of the pain can provide useful clues, but they cannot confirm a diagnosis. Several organs sit close together in the upper abdomen, and pain can spread or be felt away from its actual source.
This guide explains common causes of upper abdominal pain, what different locations may suggest, how meals can affect the pattern, and which symptoms need prompt medical attention.
Where Is the Upper Abdomen?
The upper abdomen is the area between the bottom of the breastbone and the belly button. It is often divided into three general regions:
- Upper middle: The epigastric area, directly below the breastbone
- Upper right: The area beneath the right ribs
- Upper left: The area beneath the left ribs
Several organs can produce discomfort in this region, including the stomach, first part of the small intestine, gallbladder, liver, pancreas, spleen, and sections of the colon.
The lower esophagus, abdominal muscles, ribs, lungs, and heart may also produce symptoms that feel like upper stomach pain.
If pain occurs alongside heartburn, burping, nausea, indigestion, or uncomfortable fullness, our guide to upper digestive symptoms explains how these symptoms may overlap.
What Is Epigastric Pain?
Epigastric pain is discomfort in the upper middle abdomen, beneath the breastbone and above the belly button. It may feel burning, aching, gnawing, sharp, or like uncomfortable pressure.
Common conditions associated with epigastric discomfort include:
- Indigestion or functional dyspepsia
- Gastritis or gastropathy
- Peptic ulcer disease
- Acid reflux
- Pancreatitis
- Gallbladder disease
The word “epigastric” describes the location—not the cause. Symptoms, timing, medical history, examination, and sometimes testing are needed to identify what is happening.
What the Location of Upper Abdominal Pain May Suggest
Upper middle abdominal pain
Pain in the center below the breastbone often points toward the stomach or upper digestive tract. Indigestion, gastritis, an ulcer, and reflux can all cause discomfort here.
Pancreatic pain may also begin in the upper middle abdomen, particularly when it is severe, persistent, or spreads into the back.
Upper right abdominal pain
The gallbladder and liver sit in the upper right abdomen. Gallbladder pain commonly occurs beneath the right ribs or in the upper middle abdomen. It may spread toward the back or right shoulder area.
A gallbladder attack may follow a heavy meal and can last for several hours. Nausea or vomiting may occur with the pain.
Fever, chills, jaundice, dark urine, pale stools, or pain lasting several hours may indicate a blocked bile duct, inflammation, or infection and should be assessed promptly.
Upper left abdominal pain
The stomach, pancreas, spleen, and part of the colon occupy the upper left region. Gas trapped in the colon can cause pressure or sharp discomfort, but persistent left-sided pain has other possible causes.
Pain following an injury, pain with dizziness or fainting, or significant tenderness beneath the left ribs needs urgent medical assessment because the spleen may be involved.
Pain that spreads into the back
Upper abdominal pain can occasionally radiate into the back. Gallbladder and pancreatic conditions are among the digestive causes, but muscle, spine, kidney, and cardiovascular problems can also create combined abdominal and back pain.
Our guide to bloating and back pain explains when gas may contribute and when the combination deserves medical attention.
Common Digestive Causes of Upper Abdominal Pain
1. Indigestion and functional dyspepsia
Indigestion, also called dyspepsia, can cause pain, burning, or discomfort in the upper abdomen. It may occur with early fullness, uncomfortable fullness after eating, bloating, nausea, or belching.
When these symptoms keep returning but testing does not reveal a structural disease that fully explains them, a clinician may diagnose functional dyspepsia. This is a disorder of gut-brain interaction, meaning it involves how the stomach, nerves, and brain communicate.
Possible contributing factors include increased sensitivity to normal digestive activity, difficulty with the stomach relaxing to hold a meal, altered stomach emptying, and certain food triggers.
Functional does not mean imaginary. The symptoms are real even when routine tests do not show an ulcer or another visible abnormality.
2. Gastritis and gastropathy
Gastritis involves inflammation of the stomach lining. Gastropathy describes damage to the lining with little or no inflammation. Either condition may cause upper abdominal pain, nausea, vomiting, reduced appetite, or feeling full sooner than expected.
However, many people with gastritis or gastropathy have no symptoms at all. Upper stomach pain alone cannot confirm inflammation.
Possible causes include:
- Helicobacter pylori, commonly called H. pylori
- Regular use of nonsteroidal anti-inflammatory drugs, or NSAIDs
- Alcohol
- Bile reflux
- Autoimmune gastritis
- Severe illness or physical stress on the body
NSAIDs include medications such as ibuprofen, naproxen, and aspirin. Do not stop prescribed aspirin or another prescribed medication without consulting the clinician who recommended it.
3. Peptic ulcer disease
A peptic ulcer is an open sore in the lining of the stomach or duodenum. The most common causes are H. pylori infection and NSAID use.
Ulcer pain may feel dull, burning, or gnawing in the upper abdomen. It may come and go. For some people, pain occurs when the stomach is empty or during the night and briefly improves after eating. For others, eating makes it worse.
These patterns are not reliable enough to diagnose an ulcer at home. Some ulcers produce few symptoms until bleeding or another complication develops.
4. Acid reflux and GERD
Acid reflux more commonly causes burning behind the breastbone, regurgitation, or a sour taste. However, some people describe the discomfort as upper stomach burning or pressure.
Reflux may worsen after a large meal, when bending over, or when lying down too soon after eating. Heartburn and indigestion can occur together, but they are not the same condition.
If burning is the main symptom after meals, our article on heartburn after eating provides more specific guidance.
5. Gas and bloating
Gas can stretch parts of the stomach or colon and create pressure, cramping, or brief sharp pains. The discomfort may move and may improve after burping, passing gas, or having a bowel movement.
Gas-related pain is more likely when discomfort comes with obvious bloating and changes location. Severe, fixed, or steadily worsening pain should not automatically be blamed on gas.
6. Gallstones and gallbladder inflammation
Gallstones may cause no symptoms until one blocks a bile duct. A blockage can trigger a gallbladder attack, producing steady pain in the upper right or upper middle abdomen.
The pain often begins after a heavy meal and may occur in the evening or during the night. It can last for several hours and may occur with nausea or vomiting.
Pain with fever, chills, jaundice, dark urine, or pale stools may signal inflammation, infection, or a persistent blockage. These symptoms require prompt medical care.
7. Pancreatitis
Pancreatitis is inflammation of the pancreas. Acute pancreatitis can begin gradually or suddenly with upper abdominal pain that may spread to the back. It may be severe and can occur with vomiting, fever, a fast heartbeat, or a swollen and tender abdomen.
People with acute pancreatitis often feel seriously unwell. Suspected pancreatitis requires urgent medical assessment rather than home treatment.
Chronic pancreatitis can cause recurring or constant upper abdominal pain, sometimes worsening after meals. Other possible symptoms include weight loss, diarrhea, and greasy or foul-smelling stools.
8. Stomach infection or foodborne illness
Gastroenteritis and foodborne illness may cause upper or generalized abdominal cramps along with nausea, vomiting, diarrhea, or fever.
The symptoms may begin within hours or days of exposure, depending on the organism involved. Frequent vomiting, bloody diarrhea, significant dehydration, or severe pain warrants medical attention.
9. Constipation
Although constipation often causes lower abdominal discomfort, backed-up stool and gas can produce pressure higher in the abdomen. Clues include fewer bowel movements, hard stools, straining, or a feeling of incomplete emptying.
Constipation does not explain every episode of upper abdominal pain, particularly when pain is severe, localized, or accompanied by vomiting or marked swelling.
10. Medication-related irritation or delayed digestion
Several medications can contribute to upper digestive symptoms. Examples include NSAIDs, iron supplements, certain antibiotics, corticosteroids, and some medications used for diabetes or weight management.
GLP-1 receptor agonists can cause nausea, fullness, vomiting, constipation, diarrhea, or indigestion in some people. If upper abdominal pain begins after starting a medication or changing the dose, contact the prescriber.
Do not stop or alter a prescribed medicine on your own unless urgent medical instructions tell you to do so.
Upper Abdominal Pain After Eating
The relationship between food and pain can help narrow the possibilities, although it still cannot confirm a cause.
Pain immediately after eating
Discomfort that begins during or soon after a meal may occur with functional dyspepsia, gastritis, an ulcer, reflux, or difficulty accommodating food in the stomach.
Early fullness, bloating, nausea, and belching make an upper digestive cause more likely. Our guide to feeling full too fast explains why persistent early satiety should not be ignored.
Pain after a rich or high-fat meal
A large meal may worsen reflux or indigestion. Persistent upper right pain after a fatty or heavy meal can also fit a gallbladder pattern, particularly if it lasts for hours or spreads toward the back or right shoulder.
Pain with nausea or vomiting
Nausea can accompany gastritis, dyspepsia, an ulcer, gallbladder disease, pancreatitis, infection, or medication side effects.
Repeated vomiting, inability to keep fluids down, severe pain, or abdominal swelling requires prompt care. For milder recurring symptoms, see our guide to nausea after eating.
Cramping after meals
Cramping may result from gas, food intolerance, infection, constipation, or altered movement through the digestive tract. The location, stool pattern, and other symptoms help distinguish these possibilities.
Our article on stomach cramps after eating explores these meal-related patterns in greater detail.
Can Stress Cause Upper Stomach Pain?
Stress can influence how the brain and digestive tract communicate. It may change stomach sensitivity, muscle tension, eating patterns, and how strongly discomfort is perceived.
This can contribute to symptoms associated with functional dyspepsia or other disorders of gut-brain interaction. Stress may also worsen an existing digestive problem.
However, stress should not be used to dismiss new, severe, or persistent pain. A healthcare professional may need to rule out physical causes before concluding that stress is a major contributor.
What the Type of Pain May Suggest
Burning or gnawing pain
Burning in the upper middle abdomen may occur with dyspepsia, gastritis, an ulcer, or reflux. The exact feeling cannot distinguish among them reliably.
Pressure or uncomfortable fullness
Pressure after eating may accompany functional dyspepsia, reflux, gas, delayed stomach emptying, or simply a very large meal.
Cramping or pain that comes in waves
Cramping can occur when a hollow organ contracts. Gas and intestinal illness may cause intermittent cramps. Biliary pain can also intensify and remain steady during an attack rather than behaving like a brief gas pain.
Sharp, sudden, or constant pain
Sudden severe pain or pain that does not ease is more concerning. Possible causes include ulcer perforation, acute pancreatitis, gallbladder complications, intestinal problems, or a non-digestive emergency.
Pain that worsens with movement or pressing
Muscle strain, rib irritation, or abdominal wall pain may worsen with twisting, coughing, lifting, or tensing the abdominal muscles.
Significant tenderness can also occur with inflammation inside the abdomen, so this pattern is not a reason to rule out an internal cause.
Upper Abdominal Pain May Not Be Digestive
Not every pain felt in the upper abdomen begins in the stomach or intestines.
Other possibilities include:
- Heart-related pain
- Pneumonia or irritation around the lungs
- Abdominal muscle strain
- Rib or cartilage inflammation
- Shingles, sometimes before the rash appears
- Kidney problems
- Spleen injury or enlargement
A heart problem can sometimes feel like pressure, burning, nausea, or indigestion rather than obvious chest pain. Seek emergency help for unfamiliar upper abdominal or chest pressure accompanied by shortness of breath, sweating, faintness, weakness, or pain spreading to the arm, shoulder, jaw, neck, or back.
Red Flags: When Upper Abdominal Pain Needs Urgent Care
Urgent warning signs include:
- Sudden, sharp, severe, or steadily worsening pain
- A rigid, markedly swollen, or extremely tender abdomen
- Chest pressure, breathing difficulty, sweating, or faintness
- Pain spreading to the chest, back, shoulder, arm, neck, or jaw
- Vomiting blood or material resembling coffee grounds
- Black, tarry stool or visible blood in stool
- Repeated vomiting or inability to keep fluids down
- Fever or chills with significant abdominal pain
- Yellow skin or eyes
- Dark urine together with pale stools
- Confusion, fainting, a rapid pulse, or severe weakness
- Severe pain following an injury
Prompt medical evaluation is also appropriate for recurring pain, unexplained weight loss, reduced appetite, difficulty swallowing, anemia, ongoing diarrhea, greasy stools, pain that repeatedly wakes you, or symptoms that continue to worsen.
What You Can Do for Mild, Short-Lived Discomfort
If the pain is mild, familiar, improving, and no red flags are present, a few conservative steps may help while you monitor it.
Keep meals modest
Avoid forcing a large meal when you already feel uncomfortable. Smaller, simple meals may place less pressure on the upper digestive tract.
Stay hydrated
Take comfortable sips of water, particularly if mild nausea or diarrhea is present. Seek help if vomiting prevents you from keeping fluids down.
Avoid alcohol until the cause is clearer
Alcohol can irritate the stomach lining and may worsen reflux, gastritis, ulcers, or pancreatic symptoms.
Review recent medication use
Note whether symptoms began after using ibuprofen, naproxen, aspirin, iron, an antibiotic, a GLP-1 medication, or another new medicine.
Do not discontinue a prescribed medication without speaking with the prescriber. A pharmacist or clinician can help determine whether the medication could be contributing.
Record the pattern
Write down the location, timing, duration, severity, meals, bowel movements, medication use, and accompanying symptoms. This can help a clinician evaluate recurring pain.
How Doctors Evaluate Upper Abdominal Pain
A healthcare professional will usually begin by asking:
- Where the pain is located
- When it started and how long it lasts
- Whether it spreads elsewhere
- Whether meals improve or worsen it
- Which medications and supplements you use
- Whether you have vomiting, stool changes, fever, jaundice, weight loss, or swallowing difficulty
- Whether alcohol, an injury, travel, pregnancy, or previous digestive conditions may be relevant
Testing depends on the pattern. It may include blood tests, an H. pylori breath or stool test, ultrasound, upper endoscopy, or other imaging. Not everyone needs every test.
An ultrasound may be useful when gallstones are suspected. Upper endoscopy can examine the esophagus, stomach, and duodenum when an ulcer, bleeding, inflammation, or another upper digestive problem is a concern.
Frequently Asked Questions
What is the most common cause of upper abdominal pain?
Indigestion, gas, reflux, and functional dyspepsia are common possibilities, but there is no single cause that applies to everyone. The location, duration, severity, associated symptoms, and medical history all matter.
What causes upper middle stomach pain?
Upper middle or epigastric pain may occur with functional dyspepsia, gastritis, an ulcer, reflux, gallbladder disease, or pancreatitis. Persistent or severe pain requires medical assessment.
Why does my upper stomach hurt after eating?
Meal-related pain may be connected to indigestion, stomach sensitivity, gastritis, an ulcer, reflux, gallbladder disease, delayed stomach emptying, or pancreatic disease. Meal timing alone cannot identify the cause.
Can gas cause pain under the ribs?
Yes. Gas in the stomach or bends of the colon can create pressure beneath either side of the ribs. Gas discomfort often changes location or improves after burping, passing gas, or having a bowel movement. Persistent or severe pain needs a different level of attention.
What does gallbladder pain feel like?
Gallbladder pain is commonly felt in the upper right or upper middle abdomen and may spread to the back or right shoulder area. It may follow a heavy meal and last for several hours. Fever, jaundice, vomiting, or prolonged pain requires prompt care.
Can gastritis cause upper abdominal pain?
Yes. Gastritis or gastropathy may cause upper abdominal pain or discomfort, nausea, reduced appetite, vomiting, or early fullness. Many people with these conditions have no symptoms, so testing may be needed to confirm the cause.
When should I worry about epigastric pain?
Seek urgent care when epigastric pain is severe, sudden, worsening, or accompanied by bleeding, black stool, repeated vomiting, fever, jaundice, fainting, breathing difficulty, or chest symptoms. Arrange a medical appointment for recurring pain, weight loss, reduced appetite, anemia, or swallowing difficulty.
The Bottom Line
Upper abdominal pain can come from several closely positioned organs. The location, relationship to meals, type of pain, and accompanying symptoms can provide clues, but they cannot safely diagnose the cause on their own.
Mild, brief discomfort may be related to indigestion, reflux, or gas. Recurring pain deserves medical review, while severe pain or symptoms such as bleeding, jaundice, fever, repeated vomiting, fainting, breathing difficulty, or chest pressure require prompt care.
Sources
- National Institute of Diabetes and Digestive and Kidney Diseases: Symptoms and Causes of Indigestion
- National Institute of Diabetes and Digestive and Kidney Diseases: Symptoms and Causes of Gastritis and Gastropathy
- National Institute of Diabetes and Digestive and Kidney Diseases: Symptoms and Causes of Peptic Ulcers
- National Institute of Diabetes and Digestive and Kidney Diseases: Symptoms and Causes of Gallstones
- National Institute of Diabetes and Digestive and Kidney Diseases: Symptoms and Causes of Pancreatitis
This article is for general educational purposes and is not a substitute for personalized medical advice, diagnosis, or treatment.