Stomach pain has dozens of possible causes, ranging from something as simple as trapped gas to conditions that need urgent medical attention. The meaning of your pain depends largely on where exactly you feel it, what the sensation is like, how long it lasts, and what other symptoms come with it. Most episodes are temporary and tied to digestion, but certain patterns point to specific conditions worth knowing about.
Where You Feel It Matters Most
Your abdomen houses many organs packed into a relatively small space, and pain in different zones points toward different problems. Thinking of your belly as divided into four quadrants, plus the center area just below your ribs, gives you a rough map for narrowing things down.
Upper middle (just below the breastbone): This is the classic spot for acid reflux, gastritis (inflammation of the stomach lining), and ulcers. It’s also where gallbladder and pancreas problems can show up, and in rare but serious cases, heart-related pain can land here too.
Upper right (under the right ribs): Pain here often involves the gallbladder or liver. Gallstones, gallbladder inflammation, and hepatitis are common culprits. Kidney stones on the right side and even certain lung conditions like pneumonia can also cause pain in this area.
Upper left (under the left ribs): This zone overlaps with the stomach, pancreas, spleen, and left kidney. Ulcers and pancreatitis frequently cause pain here. Heart-related pain, including angina, can also show up on the left side.
Lower right: The most well-known concern here is appendicitis, but this area also covers the colon (making conditions like colitis and inflammatory bowel disease possible) and, in women, the right ovary and fallopian tube.
Lower left: Diverticulitis is one of the more common causes of pain here, particularly in adults over 40. Irritable bowel syndrome, inflammatory bowel disease, and gynecologic conditions like ovarian cysts can also produce lower left pain.
Common Digestive Causes
The most frequent reasons for stomach pain are related to how your body processes food. These conditions overlap in symptoms, but each has distinguishing features.
Acid reflux (GERD) causes a burning sensation in the chest or upper abdomen, often with regurgitation of stomach contents, nausea, bad breath, and difficulty swallowing. It tends to worsen after meals, when lying down, or when bending over. Ulcers, by contrast, produce a more localized, gnawing or burning pain in the upper abdomen. Ulcer pain sometimes improves briefly after eating and then returns, or it may be worse on an empty stomach. Gastritis, an inflammation of the stomach lining, feels similar to an ulcer but is often triggered by overuse of anti-inflammatory painkillers like ibuprofen or naproxen, heavy alcohol use, or infection with a specific type of bacteria.
Food intolerances, particularly to lactose or gluten, cause bloating, cramping, gas, and diarrhea that show up predictably after eating trigger foods. A stomach virus (gastroenteritis) brings on sudden cramping, nausea, vomiting, and diarrhea that typically resolves within one to three days. Constipation is another extremely common source of abdominal discomfort, producing a dull, pressure-like pain that’s usually felt in the lower abdomen and relieved by a bowel movement.
Pain That Moves or Radiates
Some conditions produce pain that starts in one place and shifts to another, and this migration pattern is a useful clue. Appendicitis is the classic example: pain often begins as a vague ache around the belly button and then migrates to the lower right abdomen over several hours, becoming sharper and more intense. This migration pattern is so reliable that it’s a formal component of the scoring systems doctors use to diagnose appendicitis.
Gallbladder attacks often start as pain in the upper middle or right side of the abdomen and radiate to the right shoulder blade or between the shoulder blades. Pancreatitis produces a constant, boring pain in the upper abdomen that radiates straight through to the back and typically worsens when lying flat. Kidney stones cause pain that starts in the flank or back and radiates downward toward the groin as the stone moves through the urinary tract.
Recurring Pain Without a Clear Cause
If your stomach hurts repeatedly over weeks or months but tests come back normal, you may be dealing with a functional digestive disorder. Irritable bowel syndrome (IBS) is the most common of these. It’s diagnosed when you have recurring abdominal pain at least one day per week for three months, and the pain is connected to bowel movements, a change in how often you go, or a change in the consistency of your stool. The pain may improve after a bowel movement or get worse before one.
IBS doesn’t cause visible damage to the intestines, but it’s a real condition driven by how the gut and brain communicate. Stress, certain foods (especially high-fat meals, caffeine, alcohol, and foods high in fermentable carbohydrates), and hormonal shifts can all trigger flare-ups. Treatment usually involves dietary changes, stress management, and sometimes medications that target gut motility or sensitivity.
Functional dyspepsia is a related condition that causes chronic pain or discomfort in the upper abdomen, fullness after eating, or early satiety (feeling full after just a few bites). Like IBS, it’s diagnosed after other causes have been ruled out.
Medications That Can Cause Stomach Pain
Over-the-counter anti-inflammatory drugs like ibuprofen and naproxen are among the most common medication-related causes of stomach pain. They work by blocking compounds involved in inflammation, but those same compounds help protect the stomach lining. Regular use increases your risk for stomach and intestinal ulcers, which can lead to serious bleeding. If you’re taking these painkillers frequently and developing stomach pain, that connection is worth paying attention to. Acetaminophen is generally easier on the stomach, though it carries its own risks at high doses, particularly for the liver.
Antibiotics, iron supplements, and certain blood pressure medications can also cause nausea and stomach discomfort as side effects.
Signs That Need Urgent Attention
Most stomach pain resolves on its own or with minor treatment, but certain combinations of symptoms signal something more serious.
- Severe pain that gets worse over time rather than coming in waves and easing up. Pain that steadily escalates over hours can indicate appendicitis, a perforated ulcer, or bowel obstruction.
- Pain with fever suggests inflammation or infection in the abdomen, such as appendicitis, diverticulitis, or peritonitis (infection of the abdominal lining).
- Pain with blood in your stool or vomit can point to a bleeding ulcer, inflammatory bowel disease, or, less commonly, colorectal cancer.
- Pain with yellowing skin or eyes (jaundice) indicates a problem with the liver, gallbladder, or bile ducts, such as gallstones blocking the bile duct or hepatitis.
- Pain with an inability to keep food or liquids down for more than 24 hours raises the risk of dehydration and may indicate a bowel obstruction.
- Sudden, severe upper abdominal or chest pain with shortness of breath, especially in adults over 40, can occasionally be a heart attack presenting as stomach pain.
What You Can Do at Home
For mild or moderate pain that you suspect is digestive, a few straightforward steps help most people. Eating smaller, more frequent meals reduces the workload on your stomach. Avoiding known triggers like spicy foods, alcohol, caffeine, and high-fat meals gives your digestive system a chance to settle. Staying upright for at least two to three hours after eating helps if reflux is the issue.
Antacids can offer short-term relief for acid-related pain. Over-the-counter acid reducers work for more persistent heartburn or suspected gastritis. For gas and bloating, simethicone (sold as Gas-X) breaks up gas bubbles and is very safe. Peppermint tea and applying a warm compress to the abdomen can ease cramping. If constipation is the likely cause, increasing fiber and water intake gradually over a few days usually helps.
The key distinction is between pain that’s improving and pain that’s getting worse. Stomach pain that’s trending in the right direction over a day or two is generally safe to manage at home. Pain that’s escalating, especially with any of the red flag symptoms above, needs medical evaluation rather than a wait-and-see approach.

