Pain in the upper stomach, the area just below your breastbone and above your belly button, can stem from dozens of causes ranging from a heavy meal to a serious medical emergency. The organs packed into this small region include the stomach, liver, pancreas, gallbladder, spleen, and parts of the small intestine, so pinpointing the source often comes down to the specific character of the pain, when it strikes, and what other symptoms come with it.
Gastritis and Peptic Ulcers
The most common reason for recurring upper stomach pain is irritation or damage to the stomach lining itself. Gastritis is inflammation of that lining, and it produces a gnawing or burning sensation in the center of your upper abdomen. It often flares after eating spicy or acidic food, drinking alcohol, or taking anti-inflammatory painkillers like ibuprofen for extended periods.
When that irritation deepens into an open sore, it becomes a peptic ulcer. Ulcer pain can behave in two distinct ways: some people feel it most between meals and at night, when the stomach is empty, while others notice it gets worse right after eating. A bacterial infection called H. pylori is the leading cause of peptic ulcers and can be detected with a simple breath or stool test. Left untreated, ulcers can bleed or perforate the stomach wall, so pain that keeps coming back on a predictable schedule is worth investigating.
Gallbladder Pain
Your gallbladder sits under your right ribcage, and when a gallstone temporarily blocks the duct that drains bile, you get what’s called biliary colic. This pain tends to be sudden and intense, centered in the upper right part of the abdomen, and it often radiates into your right shoulder or back. A typical episode lasts anywhere from 20 minutes to a few hours, then fades as the stone shifts out of the way. Attacks commonly hit after a fatty meal because fat triggers the gallbladder to squeeze.
If the pain doesn’t subside within a few hours, or if it comes with fever and chills, the duct may be fully obstructed and the gallbladder can become infected. That situation is more urgent and typically requires medical attention the same day.
Acid Reflux and Heartburn
Stomach acid flowing backward into the esophagus creates a burning sensation that’s often felt right at the top of the stomach or behind the breastbone. It tends to be worse after large meals, when lying down, or when bending over. Occasional heartburn is extremely common and responds well to over-the-counter antacids, which neutralize stomach acid on contact. If it happens more than twice a week for several weeks, it may point to gastroesophageal reflux disease (GERD), which can irritate the esophagus over time.
Functional Dyspepsia
Sometimes upper stomach pain becomes chronic and no test reveals a structural cause. This is called functional dyspepsia, and it’s one of the most common digestive diagnoses. The hallmark symptoms include a burning or aching pain in the upper abdomen, feeling uncomfortably full after eating a normal-sized meal, or feeling full too quickly after just a few bites. For a formal diagnosis, these symptoms need to have been present for at least six months with no abnormalities found on imaging or endoscopy.
Functional dyspepsia isn’t dangerous, but it can be genuinely disruptive. It appears to involve the nerves in the gut overreacting to normal digestive activity. Stress, irregular eating habits, and certain foods can all make it worse. Treatment usually focuses on managing symptoms through dietary changes and, when needed, medications that reduce acid production.
Pancreatitis
The pancreas sits behind the stomach, and when it becomes inflamed, the pain is typically severe, centered in the upper abdomen, and radiates straight through to the back. It often intensifies after eating and may come with nausea or vomiting. Acute pancreatitis is most commonly caused by gallstones or heavy alcohol use. The pain tends to be more constant and harder to ignore than typical stomach discomfort, and it usually sends people to the emergency room.
When Upper Stomach Pain Is Actually the Heart
This is the cause most people don’t consider. Up to 30% of people having a heart attack don’t experience classic chest pain. Instead, their symptoms can include burning or pressure in the upper stomach, sometimes described as severe indigestion. This is particularly common in women, older adults, and people with diabetes. If upper stomach pain comes on suddenly and is accompanied by shortness of breath, lightheadedness, jaw or arm pain, or a cold sweat, it needs emergency evaluation. Heart-related upper abdominal pain won’t respond to antacids, which is one informal clue, but the only reliable way to rule it out is medical testing.
Red Flags That Need Immediate Attention
Most upper stomach pain resolves on its own or with simple treatment, but certain accompanying symptoms change the picture entirely. Seek emergency care if the pain comes with:
- Blood in your vomit or stool (which can look bright red or dark and tarry)
- High fever
- Yellowing of your skin or eyes (jaundice), which can signal a bile duct obstruction or liver problem
- Dizziness or confusion
- Trouble breathing
- A rigid abdomen that’s painful to touch
A ruptured spleen, which can result from trauma or certain infections, is another life-threatening cause of upper abdominal pain that requires immediate surgical evaluation.
How Doctors Figure Out the Cause
Diagnosis starts with the location, timing, and character of your pain. Right upper quadrant pain, for instance, strongly suggests the gallbladder, and an ultrasound is the first imaging test doctors order for that area. For pain that’s more centralized, or if initial tests don’t explain the symptoms, a CT scan is the typical next step because it provides a broad view of all the organs in the region. An upper endoscopy, where a thin camera is passed down the throat into the stomach, is the go-to test when doctors suspect ulcers, gastritis, or damage to the esophagus. Blood work and stool tests can check for H. pylori infection, liver or pancreatic inflammation, and signs of internal bleeding.
Managing Upper Stomach Pain at Home
For mild, occasional pain, over-the-counter options can help while you sort out the underlying cause. Antacids work quickly for burning pain related to heartburn or acid reflux. Acid-reducing medications that lower the amount of acid your stomach produces are useful for more persistent symptoms. If bloating and gas are the main issue, enzyme supplements that help break down lactose or other hard-to-digest carbohydrates can make a noticeable difference.
One important caution: don’t reach for common painkillers like aspirin or ibuprofen to treat stomach pain. These drugs can damage the stomach lining and cause gastrointestinal bleeding with prolonged use, potentially making the original problem worse. If you need pain relief, acetaminophen is generally safer for the stomach, though it won’t address the underlying digestive issue.
Eating smaller, more frequent meals, avoiding alcohol and spicy foods, and staying upright for at least two hours after eating are simple changes that help across most of the common causes. If your pain persists beyond two weeks, keeps waking you up at night, or is gradually getting worse, those patterns suggest something that warrants a proper workup rather than continued self-management.