Stomach pain is one of the most common reasons people seek medical care, accounting for roughly 10% of all emergency department visits in adults. Most of the time, it signals something temporary and harmless like gas, indigestion, or a mild stomach bug. But because so many organs are packed into the abdomen, pain in this area can also point to conditions that need attention, and where you feel the pain is one of the strongest clues to what’s causing it.
Where the Pain Is Matters Most
Your abdomen isn’t one organ. It’s a densely packed space containing your stomach, liver, gallbladder, pancreas, intestines, spleen, kidneys, and reproductive organs. When something goes wrong with any of them, you may feel it as “stomach pain” even though your actual stomach isn’t involved. Doctors mentally divide the abdomen into quadrants and zones to narrow down the source.
Upper middle (epigastric) pain is the area just below your breastbone. This is where you’ll feel acid reflux, gastritis, ulcers, and pancreatitis. It’s also, importantly, where a heart attack can show up as what feels like bad indigestion.
Right upper quadrant pain, under the right side of your rib cage, most commonly involves the gallbladder or liver. Gallstones causing a blocked bile duct produce intense, wave-like pain in this area, sometimes radiating to the right shoulder blade. Liver inflammation from hepatitis also presents here.
Left upper quadrant pain is less common and typically involves the spleen. Enlargement, infection, or (rarely) rupture of the spleen causes pain under the left rib cage.
Lower right pain is the classic location for appendicitis, though it often starts as a vague ache around the belly button before migrating to the lower right over several hours. Urinary tract infections, ovarian cysts, and hernias also cause pain here.
Lower left pain is most associated with diverticulitis, a condition where small pouches in the colon wall become inflamed or infected. Kidney stones, constipation, and reproductive organ issues can also cause pain on either lower side.
How the Pain Feels Is a Second Clue
Pain quality tells a different story than pain location. Crampy, wave-like pain that comes and goes (sometimes called colicky pain) usually means a hollow organ like the intestine, gallbladder, or ureter is squeezing against a blockage. Kidney stones and gallstones both produce this pattern. People with this kind of pain tend to shift around restlessly, unable to find a comfortable position.
Sharp, well-localized pain that gets worse when you move, cough, or press on the area suggests the lining of the abdominal cavity (the peritoneum) is irritated. This is a more concerning sign. People with this kind of pain instinctively lie very still because movement makes it worse. An inflamed appendix produces vague, crampy pain early on, then transitions to sharp, localized pain once the irritation spreads to the abdominal lining.
Dull, hard-to-pinpoint pain around the belly button or deep in the abdomen is often visceral pain, meaning it comes from an organ stretching or swelling. The brain has trouble pinpointing exactly where this pain originates because internal organs share nerve pathways. This is why early appendicitis feels like it’s near the belly button rather than over the appendix itself, and why a gallbladder problem can ache in your shoulder.
Common Causes That Aren’t Serious
The vast majority of stomach pain episodes resolve on their own. The most frequent culprits are gas and bloating from swallowed air or fermented food, indigestion after a heavy or fatty meal, mild food poisoning, constipation, and menstrual cramps. Stress and anxiety can also trigger genuine abdominal pain by altering how the gut muscles contract and how sensitive the intestinal nerves become.
If you have recurring stomach pain at least one day per week for three months or longer, and it’s linked to changes in bowel habits, that pattern fits the diagnostic criteria for irritable bowel syndrome (IBS). IBS is a functional disorder, meaning the gut looks structurally normal but doesn’t move or sense things properly. The formal diagnosis requires that symptoms have been present for at least six months total.
Causes That Aren’t Gut-Related at All
One of the trickier aspects of stomach pain is that it doesn’t always come from the abdomen. A heart attack can present as upper abdominal pain, nausea, and what feels like severe heartburn, especially in women and older adults. Pneumonia in the lower lobes of the lungs can irritate the diaphragm and cause upper belly pain. Inflammation around the heart (pericarditis) and blood clots cutting off blood flow to the lungs can both mimic abdominal problems.
Diabetic ketoacidosis, a dangerous complication of diabetes in which acid levels in the blood spike, frequently causes intense abdominal pain along with nausea, vomiting, and rapid breathing. These non-gut causes are the reason doctors sometimes order a chest X-ray or heart tracing for someone complaining of stomach pain.
How Pain Differs by Age
Children present a particular challenge because they often can’t describe their symptoms precisely. Their pain is frequently vague and midline (around the belly button), and classic presentations of conditions like appendicitis are often absent. One useful pattern: when vomiting comes before the pain starts, a medical cause like a stomach virus is more likely. When pain comes first and vomiting follows, a surgical cause like appendicitis or a bowel obstruction becomes more concerning.
In young children under three, a condition called intussusception (where part of the intestine telescopes into itself) causes sudden, severe, colicky pain. Only about a third of affected children show the classic textbook signs, so doctors rely heavily on age and pain pattern to suspect it.
Older adults tend toward the opposite problem: their symptoms can be muted. Serious conditions like a perforated ulcer or appendicitis may cause less pain and less fever than expected, delaying diagnosis. The threshold for imaging and further workup is lower in people over 65 for exactly this reason.
What Happens During a Medical Evaluation
When you see a doctor for stomach pain, the evaluation starts with your history: where the pain is, when it started, what it feels like, what makes it better or worse, and whether you have other symptoms like fever, vomiting, or changes in bowel habits. A physical exam follows, checking for tenderness, rigidity, and whether the pain worsens when pressure is released (a sign of peritoneal irritation).
If imaging is needed, the choice depends on the location and suspected cause. For right upper quadrant pain, ultrasound is the first choice because it’s excellent at identifying gallstones and gallbladder inflammation. For pain in most other areas, a CT scan with contrast dye is the workhorse, offering high accuracy across a wide range of conditions. For pregnant patients, ultrasound is the starting point, with MRI used if results are unclear, because both avoid radiation exposure. CT is reserved for pregnant patients only when the other options aren’t available or aren’t giving answers.
When Stomach Pain Is an Emergency
Most stomach pain doesn’t require a trip to the emergency room. But certain patterns warrant immediate care. The American College of Emergency Physicians identifies these situations as emergencies:
- Sudden, severe pain that does not ease within 30 minutes
- Continuous severe pain paired with persistent vomiting
- Pain with fever, rapid pulse, and a swollen, tender abdomen, which can indicate pancreatitis, a ruptured organ, or a serious infection
- Severe abdominal pain with vaginal bleeding, a possible sign of ectopic pregnancy
- Pain migrating to the lower right abdomen with loss of appetite, nausea, or fever, suggesting appendicitis
Bloody or black, tarry stools, vomiting blood, or feeling faint alongside stomach pain are also reasons to seek emergency care without delay. The key distinction is between pain that’s annoying and pain that’s getting worse, won’t let up, or comes with systemic signs like fever, racing heart, or dizziness. The former can usually wait for a scheduled appointment. The latter shouldn’t.

