Overview
The upper middle belly (epigastric area) sits just below where the ribs meet. The stomach, part of the small intestine, the pancreas, and the lower esophagus are here, and the heart is just above.
A burning or gnawing pain that's better or worse with eating is often from an ulcer, gastritis, or reflux. Pain that starts after a fatty meal and spreads to the right side may be the gallbladder. Severe pain that bores straight through to the back, often with vomiting, can be pancreatitis. Heart attack pain can feel like indigestion, especially in women, older adults, and people with diabetes.
When to get medical care
Causes
Common causes include indigestion, acid reflux (GERD), gastritis, stomach or duodenal ulcers (often from NSAIDs or H. pylori infection), and gallstones. Other causes include pancreatitis, heart attack or angina, hiatal hernia, food poisoning, overeating, alcohol, and, less often, stomach or pancreatic cancer.
OwieClear has pages on 6 conditions that can cause upper middle belly pain (below the breastbone). Each shows how soon to get care.
Common causes
- Acid reflux (GERD)See a doctor if it doesn't get better
Stomach acid flowing back into the esophagus, causing heartburn or a sour taste.
- Gastritis or stomach ulcerSee a doctor if it doesn't get better
Irritation of the stomach lining, or an open sore in the stomach or upper small intestine.
- PancreatitisOften needs care today
Inflammation of the pancreas, often caused by gallstones or heavy alcohol use.
Less likely causes
- Chronic pancreatitisSee a doctor if it doesn't get better
Long-lasting inflammation and scarring of the pancreas, often from heavy drinking, smoking, or repeated pancreatitis.
- Ménétrier diseaseSee a doctor if it doesn't get better
A rare stomach condition with very thick stomach folds that leak protein.
- Stomach MALT lymphomaSee a doctor if it doesn't get better
A slow-growing lymphoma of the stomach lining, usually caused by long-term H.
What you can do at home
- Eat smaller meals and avoid foods that trigger pain, like spicy, fatty, or acidic foods.
- Don't lie down for 2 to 3 hours after eating, and raise the head of your bed.
- Limit alcohol, caffeine, and smoking.
- Avoid NSAIDs like ibuprofen, naproxen, and aspirin, which can cause ulcers. Use acetaminophen instead if you need a pain reliever.
- Keep track of what brings the pain on and when it happens.
Medicines
Antacids, H2 blockers like famotidine (Pepcid), or proton pump inhibitors like omeprazole (Prilosec) can help reflux and ulcers. H. pylori is treated with antibiotics. Gallstones and pancreatitis may need hospital care or surgery. Don't treat possible heart pain with antacids.
At the doctor
The provider will find out whether the pain is from the stomach, gallbladder, pancreas, or heart.
Questions you may be asked
- What the pain feels like and whether it spreads
- How it relates to meals
- Nausea, vomiting, or black stools
- Shortness of breath, sweating, or chest pain
- Alcohol use, and NSAID or aspirin use
- Heart risk factors
The exam
A physical exam of the belly and heart.
Tests
- An ECG and heart blood tests if heart pain is possible
- Blood tests for the pancreas and liver
- A test for H. pylori
- An ultrasound of the gallbladder
- An upper endoscopy
- A CT scan
Prevention
You can lower your risk.
- Limit NSAIDs and alcohol
- Don't smoke
- Eat smaller meals and avoid lying down after eating
- Keep a healthy weight
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.