Epigastric pain is pain or discomfort in the upper middle of the abdomen, between the ribs and the belly button.1 It commonly comes from the stomach or upper digestive tract, such as gastritis, ulcers, or acid reflux. Sometimes it signals a gallbladder, pancreas, or heart problem, so persistent or severe pain deserves evaluation.1,2

Epigastric pain can be mild or severe and may radiate to or from other parts of the body.1 At Northeast Digestive, we help patients sort out epigastric abdominal pain, and the right next step depends on how it feels and what else you notice.

This guide covers where epigastric pain is felt, what causes it, which warning signs matter, and how it is diagnosed and treated.

Epigastric Pain at a Glance 

What is epigastric pain?
Epigastric pain is pain or discomfort in the upper middle abdomen, between the ribs and the belly button. It can be mild or severe, and it can spread to or from other parts of the body.

Where is epigastric pain located?
Epigastric pain is located in the upper middle of the abdomen, between the ribs and the belly button. This area lies near the stomach, gallbladder, and pancreas, so pain here can originate from any of them.

What are the causes of epigastric pain?
Common causes include acid reflux (GERD), indigestion, gastritis, and peptic ulcers. Gallbladder problems, pancreatitis, and heart conditions can also cause pain in this area.

When is epigastric pain serious?
Call 911 for chest pain or pressure, or for severe pain that spreads to the jaw or back. Get immediate care for sudden severe pain that quickly gets worse, vomiting blood, or blood in the stool, including black stool. Pain that lingers or keeps returning calls for a GI evaluation.

How is epigastric pain treated?
Treatment depends on the cause. It can include acid-reducing medications, antibiotics when H. pylori is present, adjusting NSAIDs under a doctor’s guidance, and treating gallbladder or pancreatic problems. A GI doctor can find the cause and recommend the right plan.

Where Is Epigastric Pain Located, and What Does It Feel Like?

Epigastric pain is located in the upper middle of the abdomen, between the bottom of your breastbone and your belly button.3 Heartburn is felt higher, in the center of the chest, while epigastric pain sits lower in the upper abdomen.3

People describe the feeling in different ways. It can be a burning sensation, a fullness that comes early in a meal or lingers afterward, or bloating that feels like swelling or tightness. The pain can range from mild to severe.3

You may also see this pain called epigastric distress or epigastric abdominal pain. Both terms describe discomfort in the same upper middle area.

Because the stomach, gallbladder, and pancreas sit close together, problems in any of them can cause pain here, and the pain can spread to or from other parts of the body.1,2 That overlap is why location alone cannot reveal the cause. For a broader look at where different kinds of stomach pain show up, see our guide to the different types of stomach pain.

What Causes Epigastric Pain?

The causes of epigastric pain range from everyday indigestion to conditions that need prompt treatment. They fall into three groups: the stomach and esophagus, the gallbladder and pancreas, and the heart.

In the stomach and esophagus, epigastric pain can be caused by GERD, in which stomach contents flow back into the esophagus;4 gastritis, inflammation of the stomach lining;5 and peptic ulcers, sores in the lining of the stomach or the first part of the small intestine.6 Indigestion can cause upper abdominal burning, bloating, and fullness.3 A hiatal hernia can also contribute. Most small ones cause no symptoms, but larger ones can cause heartburn, regurgitation, and chest or abdominal pain.9

Two nearby organs can also be the source. Gallstones can cause attacks of pain in the upper right abdomen that last several hours,7 and acute pancreatitis causes upper abdominal pain that can be mild or severe and sometimes spreads to the back.8 Learn more about gallstones and pancreatobiliary disease.

Heart problems, including a heart attack, can also show up as pain in this area. That is why chest pressure, shortness of breath, or pain that spreads to the jaw or back calls for emergency care, which we cover in the warning signs section below.1,2

The table below compares six causes side by side.

Common causes of epigastric pain at a glance
Cause How it often feels Helpful clue
GERD Burning behind the breastbone that can rise toward the throat4 A taste of food or stomach acid in the mouth, or trouble swallowing
Gastritis Upper abdominal pain or discomfort, nausea, or early fullness5 Many people have no symptoms at all
Peptic ulcer Dull or burning pain between the belly button and breastbone that comes and goes6 Pain may occur on an empty stomach or at night, and eating can ease it or make it worse
Indigestion (dyspepsia) Upper abdominal burning, bloating, or fullness3 Fullness that starts early in a meal or lingers afterward
Gallstones Pain in the upper right abdomen that can last several hours7 Attacks often follow heavy meals and usually occur in the evening or at night
Acute pancreatitis Upper abdominal pain that can be mild or severe8 May spread to the back, with nausea, vomiting, or fever

What Makes Epigastric Pain Worse?

Several everyday factors can set off or worsen epigastric distress, which helps explain why epigastric pain after eating can show up when you least expect it.

  • NSAIDs: pain relievers such as aspirin, ibuprofen, and naproxen are a main cause of peptic ulcers, and taking high doses or two or more at once raises the risk.10
  • Alcohol: it can irritate and erode the lining of the stomach10 and is a known cause of gastritis.5
  • H. pylori: this stomach infection is the other main cause of peptic ulcers10 and causes one form of gastritis.5
  • Smoking: it may raise ulcer risk in people infected with H. pylori10 and can aggravate reflux.11
  • Meals: large meals, late-night eating, and fatty or fried foods can aggravate reflux. Heartburn usually occurs after eating and may be worse at night or when lying down.11
  • Stress: The Mayo Clinic notes that stress can worsen ulcer symptoms but does not cause peptic ulcers on its own.10 For more, see our post on how stress affects your stomach.

When to See a Doctor: Emergency and Warning Signs

Knowing when to see a doctor for epigastric pain starts with a few clear warning signs.

Call 911 if upper abdominal pain comes with possible heart attack symptoms. A heart attack can cause discomfort in the upper part of the stomach and can feel like heartburn or indigestion.12 Watch for:

  • Chest pain or pressure that lasts more than a few minutes
  • Pain or discomfort in the arms, back, shoulders, neck, or jaw
  • Shortness of breath
  • A cold sweat, nausea, or lightheadedness

MedlinePlus advises calling 911 even if you are not sure it is a heart attack.12

Go to the emergency room for sudden severe pain that quickly gets worse, vomiting blood, or blood in the stool, including black, tarry stool.1,3 Our guide to black stool explains what that sign can mean.

Call your doctor the same day if you have:

  • Severe or constant belly pain3
  • Repeated vomiting3
  • Trouble swallowing3
  • Unintended weight loss or loss of appetite3
  • Yellowing of the skin or eyes3
  • Fever or jaundice after a gallbladder attack7

Even without these signs, indigestion or upper abdominal discomfort lasting more than two weeks should be evaluated.3 If you are unsure, our guide to when to see a gastroenterologist: 10 signs you shouldn’t ignore can help.

How Does a GI Doctor Diagnose Epigastric Pain?

The diagnosis of epigastric pain usually starts with a conversation. Your provider will ask where it hurts, how it feels, and when it started; review your medical history and medications, such as NSAIDs; and examine your abdomen.2,13

From there, the tests depend on what your doctor suspects:

  • H. pylori testing. A breath test, stool test, or blood test can check for the infection that is a leading cause of ulcers.13
  • Blood tests. These can show signs of infection or inflammation in the gallbladder, pancreas, or liver,14 and high levels of the pancreatic enzymes amylase and lipase point toward pancreatitis.15
  • Imaging. Ultrasound is the best imaging test for finding gallstones,14 and a CT scan can show pancreatitis.15
  • Upper endoscopy. An upper endoscopy uses a thin, flexible tube with a camera to view the esophagus, stomach, and duodenum, which is the first part of the small intestine. It can confirm an ulcer, help find its cause, and allow your doctor to take tissue samples.13
  • Heart testing. An electrocardiogram (ECG) may be done when a heart problem is possible.2

Because the same upper abdominal pain can come from the stomach, gallbladder, pancreas, or heart, your doctor may combine several of these steps before naming a cause.

How Is Epigastric Pain Treated?

Epigastric pain treatment depends on its cause, which is why a diagnosis comes first.

Acid-related causes. For GERD, treatment can include lifestyle changes, over-the-counter antacids for mild heartburn, H2 blockers, and proton pump inhibitors (PPIs), which are more effective for GERD symptoms than H2 blockers.17 For peptic ulcers, doctors recommend PPIs, H2 blockers, and other medicines to help the ulcer heal.16

H. pylori. When this infection is present, treatment combines two or more antibiotics with a PPI and sometimes bismuth subsalicylate.16

NSAIDs. If NSAIDs contributed, your doctor may suggest stopping them, switching to a different one, lowering the dose, or using a different pain medicine.16 Do not change prescribed medicines on your own.

Gallbladder and pancreas. Gallstones that are not causing symptoms usually need no treatment, and the usual treatment for symptomatic gallstones is surgery to remove the gallbladder.18 Acute pancreatitis may require a hospital stay with IV fluids, pain medicine, and nutrition support, and cases caused by gallstones may call for gallbladder surgery.19

Why guessing can delay answers. Over-the-counter remedies can ease mild symptoms, but the NIDDK advises seeing a doctor if symptoms do not go away with them.17 Temporary relief does not identify the cause, and the same upper abdominal pain can come from the stomach, gallbladder, pancreas, or heart.

Home Relief and Prevention

Simple habits can help with epigastric pain relief at home when reflux or indigestion is the cause:

  • Skip large meals and late-night eating, which can aggravate reflux.11
  • Finish meals at least 3 hours before you lie down or go to bed.20,21
  • Notice your trigger foods and drinks. Common ones include alcohol, chocolate, caffeine, high-fat foods, spicy foods, and acidic foods such as citrus and tomatoes.20
  • Quit smoking. It can aggravate reflux and weaken the valve between the esophagus and stomach.11,21
  • Ask your doctor about weight. If you are overweight, losing weight can reduce GERD symptoms.17,20

These steps can ease symptoms, but they do not replace an evaluation. If the pain lingers, keeps coming back, or is accompanied by any of the warning signs above, see a doctor. For more everyday tips, read our guide to how diet and lifestyle affect digestive health.

See a GI Specialist at Northeast Digestive Health Center

At Northeast Digestive, we evaluate upper abdominal pain at three North Carolina locations: two in Concord (Vinehaven and Poplar Tent) and one in Salisbury. Our gastroenterologists will listen to your symptoms, order the right tests, and, when needed, perform an upper endoscopy to find the cause.

If you are searching for a GI doctor in Concord, NC, or a gastroenterologist near you, you can meet our providers, find your nearest location, or request an appointment online or by calling (704) 783-1840.

Epigastric Pain FAQs

Why does epigastric pain happen after eating?
Eating can trigger or worsen pain due to several causes. Heartburn usually happens after eating,11 eating may make ulcer pain worse,6 and gallbladder attacks often follow heavy meals.7

Why does epigastric pain get worse at night or when lying down?
Heartburn can be worse at night or while lying down,11 and ulcer pain may occur at night, when the stomach is empty.6 Finishing meals at least 3 hours before bed may improve symptoms.20

Can stress or anxiety cause epigastric pain?
Mayo Clinic notes that stress can worsen ulcer symptoms but does not cause peptic ulcers on its own.10 If stress seems to trigger your pain, it still deserves a medical look for a physical cause.

Can I take ibuprofen for epigastric pain?
It is best to ask your doctor first. NSAIDs such as ibuprofen are a main cause of peptic ulcers, and your doctor may suggest a different pain medicine.10,16

Which foods should I avoid?
The usual suspects are the triggers listed above, such as alcohol, caffeine, and high-fat foods, though the NIDDK advises talking with your doctor about the foods that seem to raise your own symptoms.20 If gastritis is behind your pain, your doctor can guide you on what to limit.

Can epigastric pain mean cancer?
It can, though many other conditions cause similar symptoms. Stomach cancer can cause pain in the upper part of the belly, unintended weight loss, and trouble swallowing, and doctors often check for other causes first.22 Early stomach cancer does not always cause symptoms,22 so pain that lingers is worth evaluating.

Sources

  1. Drugs.com, Epigastric Pain care guide
  2. MedlinePlus, Abdominal pain
  3. Mayo Clinic, Indigestion: Symptoms and causes
  4. NIDDK, Acid Reflux (GER and GERD) in Adults: Symptoms and Causes
  5. NIDDK, Gastritis and Gastropathy: Symptoms and Causes
  6. NIDDK, Peptic Ulcers: Symptoms and Causes
  7. NIDDK, Gallstones: Symptoms and Causes
  8. NIDDK, Pancreatitis: Symptoms and Causes
  9. Mayo Clinic, Hiatal hernia: Symptoms and causes
  10. Mayo Clinic, Peptic ulcer: Symptoms and causes
  11. Mayo Clinic, GERD: Symptoms and causes
  12. MedlinePlus, Heart Attack
  13. NIDDK, Peptic Ulcers: Diagnosis
  14. NIDDK, Gallstones: Diagnosis
  15. NIDDK, Pancreatitis: Diagnosis
  16. NIDDK, Peptic Ulcers: Treatment
  17. NIDDK, Acid Reflux (GER and GERD) in Adults: Treatment
  18. NIDDK, Gallstones: Treatment
  19. NIDDK, Pancreatitis: Treatment
  20. NIDDK, Acid Reflux (GER and GERD) in Adults: Eating, Diet, and Nutrition
  21. Mayo Clinic, GERD: Diagnosis and treatment
  22. Mayo Clinic, Stomach cancer: Symptoms and causes