Pain in your upper stomach, the area just below your ribs and above your belly button, usually signals a problem with one of the organs packed into that small space: your stomach, the first stretch of your small intestine, your gallbladder, or your pancreas. Most of the time the cause is something manageable like acid reflux, gastritis, or indigestion. But because the upper abdomen also sits close to your heart and lungs, certain types of pain in this area deserve prompt attention.
Acid Reflux and Heartburn
The most common reason for a burning sensation in the upper stomach is acid reflux. A ring of muscle at the bottom of your esophagus normally keeps stomach acid where it belongs. When that muscle weakens or relaxes at the wrong time, acid creeps upward and irritates the lining of your esophagus. The result is a painful burning feeling that starts near the top of your stomach and rises toward your throat. Being overweight, pregnant, or a smoker all increase the odds of this happening.
Occasional reflux after a big or spicy meal is normal. When it happens more than twice a week, it’s typically classified as GERD (gastroesophageal reflux disease). Lying down or bending over shortly after eating tends to make it worse. Eating smaller meals, avoiding food within two to three hours of bedtime, and sleeping with your head slightly elevated can reduce episodes. Over-the-counter antacids neutralize acid quickly for short-term relief, while acid-reducing medications like famotidine or omeprazole lower acid production over a longer period.
Gastritis vs. Ulcers
Gastritis is inflammation of the stomach lining. It causes a burning or gnawing feeling in the stomach, often between meals or at night. Ulcers are actual open sores that form in the stomach lining or the upper part of the small intestine. While they share symptoms, an ulcer tends to produce more intense, localized pain. One classic sign of an ulcer is feeling very hungry one to three hours after eating, a pattern that can seem confusing since you just had a meal.
A bacterium called H. pylori is behind many cases of both gastritis and ulcers. In the United States, roughly 20% of people under 30 carry this infection, and that number climbs to about 50% in people over 60. Rates are higher in Hispanic and Black Americans. The other major contributor is regular use of anti-inflammatory painkillers like ibuprofen or aspirin, which wear down the stomach’s protective lining over time. Both causes are treatable: H. pylori with a course of antibiotics, and painkiller-related damage by switching medications and using acid reducers to let the lining heal.
Gallbladder Pain
Your gallbladder sits under your right ribcage, and when a gallstone gets stuck in one of the ducts leading out of it, the pain is hard to ignore. Gallbladder attacks come on suddenly and build to a peak rather than pulsing in waves. Most people describe the sensation as intense, sharp, cramping, or squeezing. The pain centers under the right side of the ribcage but can radiate into your right shoulder or back.
Fatty meals are a common trigger. When you eat fat, your small intestine signals the gallbladder to contract and release bile to help with digestion. If a stone is blocking the way, that contraction causes pain. Episodes often start shortly after a large or greasy meal, last anywhere from 30 minutes to several hours, then gradually fade. If your attacks are becoming more frequent or more severe, you’ll likely be evaluated for gallbladder removal, one of the most common surgeries performed in the U.S.
Pancreatitis
The pancreas sits behind your stomach, and when it becomes inflamed the pain tends to be constant, centered in the upper belly, and often radiates straight through to your back or shoulders. Eating usually makes it worse. Heavy alcohol use and gallstones are the two leading causes.
Pancreatitis pain is often severe enough that you can’t sit still or find a comfortable position. If that describes what you’re feeling, especially if you also have nausea, vomiting, or a fever, this is a situation that needs emergency care. Mild cases may resolve in a few days with rest and fluids, but severe cases require hospitalization.
Indigestion and Functional Dyspepsia
Sometimes upper stomach pain has no structural cause at all. Functional dyspepsia, essentially chronic indigestion without an identifiable disease, affects a large portion of people who visit a doctor for upper abdominal symptoms. You feel full too quickly, bloated, or nauseated after eating, and tests come back normal. Stress, irregular eating patterns, and certain foods (coffee, alcohol, very spicy dishes) tend to make it worse. Treatment focuses on dietary adjustments, stress management, and sometimes a short course of acid-reducing medication to see if symptoms improve.
When Upper Stomach Pain Is Actually Your Heart
This is the one that catches people off guard. A heart attack doesn’t always feel like crushing chest pain. Up to 30% of people experiencing a cardiac event don’t have classic chest pain at all. Instead, they may feel what seems like indigestion, burning, or a dull ache in the upper stomach. The pain can also show up in the upper back.
These less typical presentations are more common in women. Research published in the Journal of the American Heart Association found that indigestion-like symptoms during a cardiac event occurred in about 30% of women compared to 18% of men. This discrepancy contributes to delayed diagnosis and worse outcomes for women. If your upper stomach pain comes with shortness of breath, a squeezing sensation in your chest, lightheadedness, or pain radiating into your jaw or arm, treat it as a cardiac emergency.
Clues to Narrow Down the Cause
Paying attention to the pattern of your pain provides useful information, both for you and for a doctor if you end up being evaluated.
- Burning that rises toward your throat: likely acid reflux
- Gnawing pain between meals or at night: gastritis or an ulcer
- Sharp pain under the right ribs after fatty food: gallbladder
- Constant severe pain radiating to your back: possible pancreatitis
- Vague fullness and nausea after normal-sized meals: functional dyspepsia
- Upper stomach discomfort with shortness of breath or chest tightness: possible cardiac issue
Simple Steps for Mild Upper Stomach Pain
If the pain is mild and you suspect it’s related to what or how you ate, a few changes often help. Eat smaller meals rather than large ones. Avoid lying down for at least two hours after eating. Cut back on alcohol, caffeine, and very fatty or spicy food for a few days to see if symptoms ease. Over-the-counter antacids can provide quick relief for acid-related discomfort, while medications that reduce acid production work better for ongoing symptoms.
If you’ve been relying on anti-inflammatory painkillers regularly, consider whether they might be irritating your stomach lining. Switching to acetaminophen, which doesn’t affect the stomach the same way, can make a noticeable difference.
Pain that keeps coming back over several weeks, worsens over time, or is accompanied by unintended weight loss, vomiting blood, or dark tarry stools points to something that needs a proper workup. Most causes of upper stomach pain are very treatable once identified, but identifying them does require getting past the guessing stage.