Why Do I Have Bad Stomach Pain? Common Causes

Stomach pain has dozens of possible causes, ranging from something you ate a few hours ago to a condition that needs medical attention. The location, timing, and quality of the pain are the most useful clues for narrowing down what’s going on. Most episodes resolve on their own, but certain patterns point to specific problems worth understanding.

Where the Pain Is Matters

Your abdomen houses a lot of organs in a compact space, and pain in different areas often points to different sources. Upper middle pain (just below your breastbone) most commonly involves the stomach itself, the pancreas, or the upper part of the small intestine. Right upper pain is classic for gallbladder problems. Left upper pain can involve the spleen or the tail of the pancreas. Lower right pain raises concern for the appendix, while lower left pain is more associated with the large intestine, including conditions like diverticulitis.

Pain that’s hard to pinpoint is actually a clue in itself. Your internal organs have far fewer pain-sensing nerves than your skin, and those nerves are more spread out. That’s why organ pain tends to feel deep, dull, achy, or crampy rather than sharp and precise. Your brain simply isn’t as good at mapping exactly where internal pain is coming from. When pain starts vague and then sharpens and localizes to one spot, that progression often signals something more serious, like inflammation spreading from an organ to the abdominal wall lining.

Pain can also show up in surprising places. A gallbladder attack sometimes sends pain to the right shoulder blade. Pancreas problems can radiate to the back. This happens because your brain misreads the nerve signals and maps the pain onto a different body part entirely.

Common Causes of Short-Term Pain

If your pain came on in the last few hours or days, the most likely culprits depend on what else is happening alongside the pain.

Food intolerance: Lactose intolerance is the most common example. Your body lacks enough of the enzyme needed to break down the sugar in dairy, so it ferments in your gut, producing gas, bloating, cramps, and sometimes diarrhea. Fructose and gluten intolerances work through similar mechanisms. This is different from a food allergy, which triggers an immune system response and can cause hives, swelling, or breathing difficulty on top of digestive symptoms. Food intolerance affects only the digestive system and produces less severe, though still miserable, symptoms.

Gastritis or acid irritation: Alcohol, spicy foods, coffee on an empty stomach, or regular use of anti-inflammatory painkillers like ibuprofen can irritate the stomach lining. The pain is usually a burning or gnawing feeling in the upper middle abdomen that may worsen when your stomach is empty.

Gastroenteritis: A stomach virus or food poisoning causes cramping pain along with nausea, vomiting, or diarrhea. This typically peaks within 24 to 48 hours and clears within a few days.

Constipation and gas: These are among the most common and least dramatic causes of abdominal pain. Trapped gas can create surprisingly sharp, intense pain that moves around the abdomen and then disappears once the gas passes. Constipation tends to cause a lower abdominal fullness or cramping.

Pain That Keeps Coming Back

Recurring stomach pain that shows up over weeks or months falls into two broad categories: pain caused by visible damage or disease in the digestive tract, and pain where everything looks structurally normal but the gut still hurts.

The first category includes peptic ulcers, inflammatory bowel disease (Crohn’s disease and ulcerative colitis), and chronic gallbladder problems. These conditions produce inflammation, tissue damage, or both, and they show up on imaging or endoscopy.

The second category, functional pain, is more common than most people realize. Irritable bowel syndrome (IBS) is the best-known example. Functional dyspepsia is another, causing persistent upper abdominal pain or burning, uncomfortable fullness after meals, or feeling full too quickly when eating. To qualify for a diagnosis, symptoms need to have been present for at least three months, with no structural cause found on testing. This doesn’t mean the pain isn’t real. It means the problem lies in how the gut nerves and muscles function rather than in visible tissue damage.

Stress and anxiety can amplify functional gut pain significantly. The gut has its own extensive nerve network, and emotional distress can increase gut sensitivity, speed up or slow down motility, and lower the threshold at which normal digestive activity registers as pain.

Causes Specific to Women

For women, “stomach pain” is sometimes actually pelvic pain. The lower abdomen and pelvis overlap enough that gynecological conditions frequently get mistaken for digestive problems.

Ovarian cysts can cause sudden or ongoing pelvic pain, sometimes feeling like a dull ache or lingering pressure if the cyst pushes on the bladder or other structures. If a cyst ruptures, the pain can be sharp and intense. Endometriosis, where tissue similar to the uterine lining grows in other areas, can cause aching or stabbing pain even when the implants are microscopic. Pelvic congestion syndrome produces chronic dull or aching pain that worsens with sitting or standing and improves when lying down, often accompanied by bloating, nausea, and fatigue.

Ectopic pregnancy, where a fertilized egg implants outside the uterus, causes severe abdominal pain along with vaginal bleeding and is a medical emergency.

How Appendicitis Pain Progresses

Appendicitis deserves its own mention because it’s common, it’s time-sensitive, and its pain follows a recognizable pattern. It typically starts as a vague ache around the belly button that hovers or comes and goes for several hours. Nausea and vomiting often develop as the pain intensifies. Then, several hours later, the nausea eases and the pain shifts to the lower right abdomen, where it becomes sharper and more constant. Not everyone follows this textbook progression, but that migration from the center to the lower right is a hallmark worth knowing about.

When Pain Signals an Emergency

Most stomach pain isn’t dangerous, but certain features warrant immediate medical care. The American College of Emergency Physicians advises seeking emergency attention if pain is sudden and severe, or if it doesn’t ease within 30 minutes. Continuous severe pain combined with nonstop vomiting may indicate a serious or life-threatening condition like a bowel obstruction, perforated ulcer, or pancreatitis.

Other warning signs that shouldn’t wait:

  • Rigid, board-like abdomen: your belly feels hard and extremely tender to touch
  • Fever above 101°F alongside worsening pain
  • Vomiting blood or passing black, tarry stools
  • Pain following abdominal trauma
  • Severe pain during pregnancy
  • Fainting, dizziness, or rapid pulse with abdominal pain, which can signal internal bleeding

Pancreatitis pain is worth recognizing specifically: it centers in the upper middle abdomen, may radiate to the back, can be sudden and intense or start mild and worsen after eating, and often comes with nausea, fever, and a rapid pulse. It can last for days.

Narrowing Down Your Cause

Before you see a doctor or while you’re deciding whether you need to, pay attention to a few things that will help identify the source. When exactly does the pain happen: before meals, after meals, at night, during your period? Does it improve or worsen with eating, lying down, or moving around? Is it constant or does it come in waves? What else accompanies it: bloating, diarrhea, constipation, nausea, fever, or changes in appetite?

Pain that worsens after fatty meals and strikes in the right upper abdomen points toward the gallbladder. Pain that improves after eating may suggest an ulcer in the first part of the small intestine, while pain that worsens after eating could indicate a stomach ulcer or functional dyspepsia. Crampy pain that comes in waves and is relieved by a bowel movement leans toward IBS or another bowel-related cause. Pain that wakes you from sleep is more likely to have a structural cause than pain that only shows up during waking hours.

Keeping a simple log of when pain occurs, what you ate, and what made it better or worse gives any clinician a significant head start in figuring out what’s going on.