Severe pain in your upper stomach, the area just below your ribs and above your belly button, usually points to irritation or inflammation in one of the organs packed into that small space: your stomach lining, gallbladder, pancreas, or the lower part of your esophagus. The cause can range from something as common as acid irritation to something that needs immediate attention, like a gallbladder blockage or, in rare cases, a heart problem. Understanding where exactly the pain sits, what triggers it, and what other symptoms come with it helps narrow down what’s going on.
Gastritis and Stomach Ulcers
The most common reason for intense upper stomach pain is damage to the protective lining of your stomach or the first section of your small intestine. Your stomach normally produces a thick layer of mucus that shields the tissue underneath from its own acid. When that barrier breaks down, acid eats into the lining, causing either widespread inflammation (gastritis) or a localized sore (an ulcer).
Two things break down that barrier more than anything else: a bacterial infection called H. pylori and regular use of pain relievers like ibuprofen, aspirin, or naproxen. H. pylori is extremely common, affecting roughly half the world’s population, and many people carry it without symptoms for years before it causes trouble. NSAIDs, even over-the-counter ones, can erode the stomach lining when used frequently or on an empty stomach. Smoking also raises the risk of ulcers and slows their healing.
Gastritis pain tends to feel like a burning or gnawing ache in the center of your upper abdomen. It often gets worse on an empty stomach and may temporarily improve after eating. Ulcer pain can be more intense, sometimes waking you at night, and in some cases causes nausea or vomiting. If an ulcer bleeds, you might notice dark, tarry stools or vomit that looks like coffee grounds.
Acid Reflux and Hiatal Hernia
When stomach acid flows backward into the esophagus, it can produce a searing pain right at the top of your stomach or behind your breastbone. This is gastroesophageal reflux, and it’s often worse after large meals, when lying down, or after eating acidic or fatty foods.
A hiatal hernia can make reflux significantly worse. This happens when the upper part of your stomach pushes through the small opening in your diaphragm (the muscle separating your chest from your abdomen) and bulges into your chest cavity. A small hiatal hernia often causes no symptoms at all. A larger one allows acid and food to back up more easily, leading to heartburn, regurgitation, trouble swallowing, and a feeling of fullness after eating only a small amount. The pain can be sharp enough that people mistake it for a heart or lung problem.
Gallbladder Pain
Your gallbladder sits under your right rib cage, and when a gallstone gets stuck in one of its ducts, the pain is hard to ignore. This is called biliary colic, and it typically hits the right side of your upper abdomen, often radiating to your right shoulder blade or back. It usually starts within an hour of eating, especially after fatty meals, and can last anywhere from 20 minutes to several hours.
The pain tends to come in waves as the gallbladder contracts and relaxes around the stone. If the blockage doesn’t clear, the gallbladder can become inflamed or infected, at which point the pain becomes constant and may come with fever, nausea, and vomiting. Gallstone problems are more common in women, people over 40, and those who have lost weight rapidly.
Pancreatitis
The pancreas sits behind your stomach on the upper left side of your abdomen, and when it becomes inflamed, the pain can be among the most severe abdominal pain you’ll ever experience. It often feels like a deep, boring ache on the upper left side or across the entire upper abdomen, and it frequently radiates straight through to your back. Leaning forward sometimes provides slight relief, while lying flat makes it worse.
Gallstones that block the pancreatic duct are a leading cause of acute pancreatitis, along with heavy alcohol use. The pain typically comes on suddenly and escalates quickly, often with nausea, vomiting, and a rapid heartbeat. Mild cases resolve with a few days of supportive care (fasting, fluids, pain management), but severe pancreatitis can be dangerous and requires hospital treatment.
When It Might Be Your Heart
This is the one most people don’t expect. A heart attack can present as upper stomach pain, and this is especially true in women. Pain described as burning, pressure, or something resembling bad indigestion can actually originate from the heart. Research published in the Journal of the American Heart Association found that chest pain, while the most well-known heart attack symptom, is not very specific on its own. Only about 10% to 15% of people who arrive at an emergency department with symptoms suggestive of a cardiac event are actually having one, but distinguishing cardiac pain from digestive pain requires testing.
The key additional symptoms to watch for are shortness of breath, sweating (especially cold sweats), pain spreading to your arm, jaw, neck, or back, lightheadedness, and unusual fatigue. Women are more likely than men to experience upper back pain, nausea, and shortness of breath as their primary symptoms rather than classic chest pain. If your upper stomach pain comes with any of these, especially if it gets worse with physical activity, treat it as urgent.
Gastroparesis and Functional Dyspepsia
Sometimes the upper stomach hurts intensely without any visible damage to the lining. Functional dyspepsia is a condition where the nerves and muscles of the upper digestive tract are overly sensitive, producing real pain, burning, and fullness even though endoscopy and imaging look normal. It affects roughly 10% to 20% of the population at any given time.
Gastroparesis, where the stomach empties too slowly, causes a similar set of symptoms: pain, bloating, nausea, and feeling full after just a few bites. It’s more common in people with diabetes, but it can happen after viral infections or for no clear reason. Both conditions are frustrating because the pain is very real but harder to pin down with standard tests.
How Doctors Figure Out the Cause
The location and timing of your pain tell a doctor a lot. Right-sided pain after meals points toward the gallbladder. Pain that improves with eating suggests an ulcer in the small intestine. Pain that wraps to your back suggests the pancreas. Burning that worsens when lying down points to reflux.
Blood tests can check for signs of pancreatic inflammation (specific enzyme levels spike when the pancreas is irritated) and rule out infection or anemia from bleeding. Ultrasound is the go-to imaging tool for suspected gallbladder problems because it’s fast, noninvasive, and highly accurate at detecting stones. If the pattern of symptoms suggests damage to the stomach lining or an ulcer, an upper endoscopy (a thin camera passed through your mouth) lets the doctor see the lining directly and test for H. pylori.
Signs That Need Immediate Attention
Most upper stomach pain resolves on its own or responds to treatment, but certain combinations of symptoms signal something more serious:
- Blood in your vomit or stool (including dark, tarry stool), which can indicate a bleeding ulcer
- High fever alongside abdominal pain, suggesting infection or an inflamed organ
- Yellowing of your skin or the whites of your eyes (jaundice), which points to a bile duct blockage
- Shortness of breath or a tight, squeezing sensation, which may indicate a cardiac event
- Visible swelling in your abdomen or pain that steadily worsens over hours
- Dizziness, confusion, or feeling faint, which can mean internal bleeding or dangerously low blood pressure
Pain that worsens with exercise is another red flag, as digestive pain typically doesn’t change with physical activity, while cardiac pain often does.