Stomach pain has dozens of possible causes, ranging from something as simple as trapped gas to conditions that need prompt treatment. The location of your pain, when it started, and what makes it better or worse are the strongest clues to what’s going on. Most episodes resolve on their own, but knowing what different patterns mean can help you figure out whether to wait it out, schedule a doctor’s visit, or head to the emergency room.
Where the Pain Is Matters Most
Your abdomen contains overlapping organs packed into a relatively small space, and each region maps to different structures. Pain in the upper middle area (just below your breastbone) most commonly points to acid reflux, gastritis, ulcers, or inflammation of the pancreas. Pain in the upper right side is classic for gallbladder problems. Upper left pain can involve the stomach itself, the spleen, or part of the pancreas.
Lower abdominal pain follows a different map. The lower right houses the appendix along with part of the colon and small intestine. The lower left contains the descending colon and sigmoid colon, a common site of diverticular problems. In women, both lower quadrants also contain ovaries and fallopian tubes, which means reproductive issues can easily feel like digestive pain. Pain that’s hard to pin down to one spot often suggests a problem in the small intestine, a generalized infection, or a functional condition like irritable bowel syndrome.
The Most Common Culprits
A few conditions account for the vast majority of stomach pain that people experience.
Acid reflux and gastritis. When acid irritates the lining of your stomach or creeps up into the esophagus, you feel a burning or gnawing pain in the upper abdomen. Gastritis (inflammation of the stomach lining) produces similar pain and is frequently caused by a bacterium called H. pylori, overuse of anti-inflammatory painkillers, or heavy alcohol use. The discomfort typically worsens on an empty stomach or after spicy, acidic, or fatty foods.
Irritable bowel syndrome (IBS). Roughly 11 to 13 percent of the global population has IBS, making it one of the most common reasons for chronic or recurring belly pain. The hallmark is cramping pain that improves after a bowel movement, along with bloating and alternating diarrhea or constipation. There’s no structural damage visible on tests, which is why it’s classified as a “functional” disorder. The gut’s nerves are essentially overreacting to normal stimulation.
Functional dyspepsia. This is the clinical term for persistent upper stomach pain or discomfort when tests don’t reveal an ulcer, infection, or other clear cause. Symptoms include feeling uncomfortably full after eating, a burning sensation in the upper abdomen, and getting full much earlier than expected during meals. It overlaps significantly with IBS, and many people have both.
Food-related triggers. Lactose intolerance causes pain, bloating, and diarrhea within a few hours of consuming dairy. Celiac disease triggers an immune reaction to gluten that damages the small intestine over time, producing belly pain, diarrhea, and nutrient deficiencies. Notably, celiac-related intestinal damage can itself cause temporary lactose intolerance, making it harder to pinpoint the original trigger without testing.
Ulcers vs. General Inflammation
Many people wonder whether their pain means they have an ulcer. The difference between gastritis and a peptic ulcer is depth: gastritis is surface-level inflammation, while an ulcer is an actual crater in the lining of the stomach or the first part of the small intestine (the duodenum). People with duodenal ulcers tend to produce more stomach acid than average, and their pain often follows a distinctive pattern, flaring between meals and improving briefly after eating.
Gastric ulcers, located in the stomach itself, behave differently. They tend to hurt during or shortly after eating rather than between meals. H. pylori infection plays a central role in both types. The bacterium damages the protective mucus layer, impairs the stomach’s ability to produce the bicarbonate that neutralizes acid, and accelerates the shedding of surface cells. Over time, this leaves vulnerable patches exposed to acid attack.
Pain That Shouldn’t Wait
The American College of Emergency Physicians recommends seeking emergency care if abdominal pain is sudden and severe, or if it doesn’t ease within 30 minutes. Continuous severe pain accompanied by nonstop vomiting is a red flag for potentially life-threatening conditions like a bowel obstruction or organ perforation.
Appendicitis deserves special attention because it follows a recognizable timeline. It usually starts as a vague ache around the belly button, then migrates to the lower right abdomen over 12 to 24 hours. About 75 percent of people with appendicitis show up at the hospital within the first day. Waiting too long carries real risk: roughly 2 percent of appendixes rupture by 36 hours, and that risk climbs about 5 percent for every additional 12 hours without treatment.
Pancreatitis presents as intense upper-middle abdominal pain that often radiates to the back. It can build gradually or hit suddenly, tends to worsen after eating, and may come with fever and a rapid pulse. An ectopic pregnancy, where a fertilized egg implants outside the uterus, causes severe lower abdominal pain often with vaginal bleeding and requires immediate treatment.
Lower Abdominal Pain in Women
Women experience a wider range of abdominal pain causes because reproductive organs sit in the lower pelvis, directly adjacent to the intestines. Menstrual cramps are the most common source, but several conditions mimic or overlap with digestive pain. Endometriosis, where tissue similar to the uterine lining grows outside the uterus, causes chronic pelvic pain that can worsen with periods. Ovarian cysts are fluid-filled sacs that form on or in the ovaries. Most are harmless and resolve on their own, but a large or ruptured cyst can cause sharp, sudden pain.
Pelvic inflammatory disease, an infection of the reproductive organs usually stemming from sexually transmitted bacteria, produces a persistent dull ache in the lower abdomen along with unusual discharge and sometimes fever. Uterine fibroids, noncancerous growths in the wall of the uterus, can cause pressure, heaviness, or aching that people commonly describe as “stomach pain.” Because these conditions overlap with digestive symptoms, lower abdominal pain in women that recurs or doesn’t fit a clear pattern often warrants both a GI and gynecological evaluation.
How Doctors Figure Out the Cause
Diagnosis starts with your description of the pain: where it is, when it started, what it feels like, what makes it better or worse, and whether it has changed over time. A physical exam can narrow the possibilities quickly. Tenderness in the upper middle abdomen, for instance, is characteristic of peptic ulcer disease.
Beyond that, the tools depend on the suspected cause. Blood work and a pregnancy test (for women of childbearing age) are common first steps. For right upper quadrant pain suggesting gallbladder trouble, ultrasound is the standard imaging choice. For pain that’s hard to localize, a CT scan with contrast is considered the best overall imaging tool. It captures a detailed view of all abdominal organs in one pass. Ultrasound is also used to evaluate ovarian and other pelvic causes. MRI avoids radiation exposure and is sometimes used for specific situations like kidney stones or when CT isn’t ideal.
If the pain is chronic and centered in the upper abdomen with no clear structural cause on imaging, you may be diagnosed with functional dyspepsia. This diagnosis requires that symptoms have been present for at least several months and that other conditions have been ruled out. It’s a real condition with real treatment options, not a dismissal.
Patterns Worth Tracking
If your stomach pain keeps coming back, pay attention to timing. Pain that strikes 1 to 3 hours after meals and improves with food may suggest a duodenal ulcer. Pain during meals points more toward a gastric ulcer or gallbladder issue. Pain that comes with bloating and changes in bowel habits but improves after a bowel movement fits the IBS pattern. Pain that reliably follows dairy, wheat, or specific foods suggests a food intolerance worth testing for.
Keeping a simple log of when pain occurs, what you ate, your stress level, and your bowel habits gives your doctor far more useful information than a vague report of “stomach pain.” Two weeks of notes can sometimes accomplish what months of guessing cannot.

