Stomach pain has dozens of possible causes, ranging from something as simple as a meal that didn’t agree with you to conditions that need medical treatment. The location of your pain, how long it lasts, and what else is happening in your body all narrow down what’s going on. Here’s how to make sense of it.
Where It Hurts Matters
Your abdomen contains many organs packed into a relatively small space, and each one produces pain in a slightly different spot. Thinking about where you feel the discomfort is one of the fastest ways to sort through what might be causing it.
Upper middle (just below the ribs): This is the most common location for acid reflux, gastritis (inflammation of the stomach lining), and ulcers. Pancreas problems and, rarely, heart-related issues can also show up here.
Upper right: Pain here often points to the gallbladder or liver. Gallstones are a frequent culprit, especially if the pain flares after fatty meals.
Upper left: Less common, but can indicate a stomach ulcer, pancreas inflammation, or kidney stones on that side.
Around the belly button: Early appendicitis often starts here before moving to the lower right. Small bowel problems and stomach ulcers can also cause pain in this area.
Lower right: The classic location for appendicitis once it progresses. In women, ovarian cysts, ectopic pregnancy, and pelvic inflammatory disease can cause pain here too.
Lower left: Diverticulitis is the standout cause in this quadrant, particularly in adults over 40. Constipation, irritable bowel syndrome, and gynecologic conditions are also possibilities.
All over or hard to pinpoint: Generalized pain can come from gas, bloating, a stomach bug, food poisoning, bowel obstruction, or even muscle strain in the abdominal wall.
The Most Common Culprits
Acid Reflux and GERD
If your pain is a burning sensation in your upper stomach or chest, acid reflux is a likely explanation. It happens when the ring of muscle at the bottom of your esophagus doesn’t close tightly enough, allowing stomach acid to wash back up. This is more common if you’re overweight, pregnant, or have a hiatal hernia (where part of the stomach pushes up through the diaphragm). Smoking, large meals, late-night eating, fatty or fried foods, alcohol, and coffee can all make it worse.
When reflux becomes a recurring problem (typically twice a week or more), it’s classified as gastroesophageal reflux disease, or GERD. Over time, repeated acid exposure can inflame the esophageal lining and even cause ulcers there.
Gastritis and Ulcers
Gastritis is inflammation of the stomach lining itself, and it often produces a gnawing or burning pain in the upper abdomen that may feel worse on an empty stomach. The most common causes are overuse of anti-inflammatory painkillers (like ibuprofen), heavy alcohol use, and infection with H. pylori bacteria. When inflammation erodes deep enough to create an open sore, that’s a peptic ulcer.
Gas, Bloating, and Indigestion
Sometimes the answer is the simplest one. Swallowed air, carbonated drinks, high-fiber foods, or meals eaten too quickly can all produce uncomfortable pressure and cramping that feels alarming but passes on its own. This kind of pain tends to move around and often improves after passing gas or having a bowel movement.
Constipation
When stool backs up in the colon, it can cause dull, crampy pain across the lower abdomen. It’s one of the most overlooked causes of stomach pain, especially in people who don’t realize their bowel habits have slowed down.
Food Intolerances
If your stomach consistently hurts after eating certain foods, an intolerance could be the issue. Lactose intolerance is one of the most common, causing bloating, gas, cramping, and diarrhea after consuming dairy. The symptoms typically show up within a few hours of eating.
Non-celiac gluten sensitivity is another possibility, though it looks different from what many people expect. Beyond the digestive symptoms of bloating, gas, diarrhea, or constipation, it can also cause brain fog, headaches, joint pain, skin rashes, mood changes, and tingling or numbness in the extremities. Symptoms can appear hours to days after eating gluten, which makes the connection easy to miss. If you suspect a food intolerance, keeping a food diary for two to three weeks can help you spot patterns before eliminating anything from your diet.
Stress and the Gut-Brain Connection
Your digestive tract has its own branch of the nervous system, sometimes called the “second brain,” that communicates directly with your actual brain. This connection explains why anxiety, chronic stress, or emotional upheaval so often show up as stomach pain, nausea, or diarrhea.
When you’re stressed, your body releases hormones that change how your intestines and stomach contract and move waste through your system. In a fight-or-flight response, the muscles involved in digestion can speed up dramatically, causing cramping, bloating, nausea, or sudden diarrhea. Stress can also make normal digestive sensations feel painful, essentially turning down your pain threshold so that routine gut activity registers as discomfort. This is a real physiological process, not something you’re imagining.
Irritable Bowel Syndrome
IBS is one of the most common causes of chronic, recurring stomach pain. It’s diagnosed when you have abdominal pain at least one day per week for three months, and the pain is linked to bowel movements, a change in how often you go, or a change in stool consistency (harder, looser, or alternating). Symptoms need to have started at least six months before diagnosis.
IBS doesn’t damage the intestines, but it can significantly affect quality of life. It often overlaps with stress-related gut issues, and management typically involves identifying trigger foods, managing stress, and adjusting fiber intake. Some people cycle between constipation and diarrhea, while others lean heavily toward one or the other.
Diverticulitis
Small pouches can form in weak spots of the colon wall, often from pressure caused by straining or spasms. These pouches are common and usually harmless, but when one becomes inflamed or infected, the result is diverticulitis. The pain is typically sudden, intense, and concentrated in the lower left abdomen, though it can start mild and build over time. Fever, nausea, and changes in bowel habits (sudden diarrhea or constipation) often accompany it. Diverticulitis usually requires medical treatment.
Over-the-Counter Relief Options
For occasional acid reflux or indigestion, the three main categories of stomach medications work differently and are suited for different situations.
- Antacids neutralize acid that’s already in your stomach. They work within minutes but wear off relatively quickly, making them best for occasional, mild symptoms.
- H2 blockers reduce the amount of acid your stomach produces. They kick in faster than the strongest option and can be taken as needed, without regard to meals. One downside: your body can develop tolerance to them within as few as three days of regular use, meaning they become less effective.
- PPIs (proton pump inhibitors) are the most powerful acid suppressors. They work best when taken 30 to 60 minutes before your first meal of the day, and they need to be taken daily for four to eight weeks to fully control symptoms. Taking them “as needed” doesn’t reliably work. If you’re using PPIs, the goal is the lowest dose for the shortest time that controls your symptoms.
Pain That Needs Immediate Attention
Most stomach pain resolves on its own or with simple treatment, but certain signs warrant urgent care. Seek help right away if you experience sudden, severe abdominal pain that comes on intensely rather than building gradually. The same goes for fever alongside stomach pain, blood or pus in your stool, persistent vomiting, signs of severe dehydration, or chest pain accompanying your abdominal symptoms. These combinations can indicate conditions like appendicitis, a perforated ulcer, or bowel obstruction that need rapid evaluation.

