Almost everyone knows the feeling: a dull ache, a sharp stab, or a churning cramp in the belly. Stomach pain has dozens of possible causes, ranging from gas and indigestion to infections, ulcers, and conditions that need urgent medical care. Most episodes are temporary and harmless, but some patterns of pain are warning signs that should not be ignored.
Doctors use the word “stomach” loosely. True stomach pain is felt in the upper middle part of the belly, just below the breastbone. What most people call stomach pain often comes from the intestines, gallbladder, or other organs nearby. Knowing where the pain sits and what it feels like helps narrow down what is going on.
What Can Cause Stomach Pain?
The most common causes are digestive in nature: gas, indigestion, constipation, and mild infections. These tend to come and go and often improve within a day or two.
Gas and bloating are among the most frequent triggers. Swallowed air and the breakdown of undigested food by gut bacteria produce gas, which stretches the intestinal wall and causes cramping. Eating quickly, drinking carbonated beverages, and certain high-fiber foods can make it worse.
Indigestion, or dyspepsia, produces a burning or uncomfortable fullness in the upper belly. It is often linked to large or fatty meals, alcohol, and eating late at night. Some people have it regularly without any underlying disease.
Constipation is another very common cause. When stool moves slowly through the colon, the buildup of pressure causes cramping and discomfort. Not drinking enough fluid, low fiber intake, and inactivity all contribute.
Viral gastroenteritis — often called a stomach bug — causes cramping, nausea, vomiting, and diarrhea. Most cases resolve on their own within a few days. Bacterial food poisoning can produce similar symptoms and sometimes requires medical evaluation.
When Is Stomach Pain a Medical Emergency?
Certain symptoms mean you should seek emergency care immediately, not wait to see if things improve. These are well-established warning signs that clinicians are trained to recognize.
- Severe pain that comes on suddenly and reaches maximum intensity within seconds or minutes
- Pain that is rigid and hard to the touch, or that makes you unable to stand or walk comfortably
- Vomiting blood, or vomit that looks like coffee grounds
- Black, tarry, or bloody stools
- High fever with severe abdominal pain
- Pain that begins around the navel and moves to the lower right abdomen, especially with fever and loss of appetite
- Chest pain, shortness of breath, or pain that radiates to the shoulder, arm, or jaw
- Yellowing of the skin or eyes
The last two deserve attention. Heart attacks can present as upper abdominal pain, particularly in women and older adults, and are sometimes mistaken for indigestion. Pain that radiates to the shoulder or jaw is a recognized red flag. Biliary or liver problems can cause yellowing of the skin or eyes along with upper right abdominal pain.
Sudden, severe pain is a particular concern. This pattern can signal a perforated ulcer, a ruptured appendix, or pancreatitis — all conditions that require urgent treatment. A perforated ulcer means a hole has formed in the stomach or intestinal wall, allowing contents to leak into the abdominal cavity. This is a life-threatening emergency.
What Organs Other Than the Stomach Can Cause Belly Pain?
Many organs share the same general neighborhood, and their pain can feel like stomach pain. That is why doctors examine the whole abdomen, not just one spot.
The gallbladder sits under the liver on the upper right side. Gallstones can block the duct that carries bile, causing sharp pain in the upper right abdomen that often follows a fatty meal. The pain can last from 30 minutes to several hours and may radiate to the right shoulder or back.
The pancreas produces digestive enzymes and insulin. Pancreatitis — inflammation of the pancreas — causes severe upper abdominal pain that often bores through to the back. It is most commonly linked to gallstones and heavy alcohol use.
The appendix sits in the lower right abdomen. Appendicitis typically starts as vague pain around the navel that moves to the lower right over several hours, often with fever, nausea, and loss of appetite. This is a medical emergency requiring surgery.
The kidneys sit toward the back on each side. Kidney stones cause severe, cramping pain that starts in the flank or back and may radiate toward the groin. It often comes in waves and may be accompanied by blood in the urine.
In women, the ovaries and uterus can be sources of lower abdominal pain. Conditions include ovarian cysts, endometriosis, pelvic inflammatory disease, and ectopic pregnancy. Ectopic pregnancy — where a fertilized egg implants outside the uterus — is a life-threatening emergency and must be ruled out in any woman of reproductive age with severe lower abdominal pain.
What Digestive Conditions Cause Ongoing Stomach Pain?
Recurring or persistent pain is a different picture from a one-off episode. When pain keeps coming back, specific conditions need to be considered.
Peptic ulcers are open sores in the lining of the stomach or the upper part of the small intestine. They are most often caused by infection with Helicobacter pylori bacteria or by long-term use of nonsteroidal anti-inflammatory drugs such as ibuprofen and naproxen. Ulcer pain is often described as a burning or gnawing feeling in the upper abdomen that may improve or worsen with eating.
Gastroesophageal reflux disease (GERD) causes stomach contents to flow back into the esophagus. It produces heartburn — a burning sensation behind the breastbone — that can be mistaken for stomach pain. Chronic GERD is a recognized risk factor for damage to the esophagus over time.
Irritable bowel syndrome (IBS) is a common functional disorder. It causes cramping, bloating, and changes in bowel habits — constipation, diarrhea, or both — without visible damage to the gut. The pain often eases after a bowel movement. IBS is diagnosed based on symptom patterns after other conditions are ruled out.
Inflammatory bowel disease (IBD) includes Crohn’s disease and ulcerative colitis. These are chronic conditions involving immune-driven inflammation of the digestive tract. Symptoms include persistent abdominal pain, diarrhea, fatigue, and sometimes blood in the stool. IBD is different from IBS and requires medical management.
Celiac disease is an autoimmune reaction to gluten that damages the small intestine. It can cause abdominal pain, bloating, diarrhea, and weight loss, though some people have no digestive symptoms at all. Diagnosis requires specific blood tests and, usually, a small bowel biopsy.
Can Food and Stress Cause Stomach Pain?
Yes — both are well-recognized contributors, and both are often underestimated.
Food can cause pain through several mechanisms. Food intolerance — such as lactose intolerance — occurs when the body lacks enough of the enzyme needed to digest a specific sugar. Undigested lactose ferments in the colon, producing gas, bloating, and cramping. This is different from a food allergy, which involves the immune system and can cause hives, swelling, and difficulty breathing.
Very spicy or fatty foods can irritate the stomach lining and trigger reflux in people who are sensitive to them. Carbonated drinks, caffeine, and alcohol can also worsen symptoms in susceptible people.
The gut and brain are connected through a complex network of nerves and chemical signals. Psychological stress is known to affect gut function, changing how quickly food moves through the digestive tract and how sensitive the gut is to normal signals. This is not a sign that the pain is “all in your head” — the gut genuinely responds to stress. Stress is a recognized factor in IBS and functional dyspepsia.
One point worth clarifying: stress does not cause ulcers. That was a common belief for decades, but research established that H. pylori infection and NSAID use are the primary causes. Stress may worsen symptoms, but it is not the underlying cause of ulcer disease.
What Should You Watch For in Stomach Pain?
The pattern of pain matters more than any single feature. Doctors look at location, timing, duration, severity, and what makes it better or worse.
Pain that wakes you from sleep, pain that is getting steadily worse, pain accompanied by unexplained weight loss, and pain that has lasted more than a few days all warrant a medical evaluation. These patterns are not automatically serious, but they are reasons to be checked rather than to wait indefinitely.
Age is relevant too. New digestive symptoms in people over 50 deserve attention, particularly if there is a family history of gastrointestinal cancer or if symptoms include bleeding or unexplained weight loss.
If you have tried basic measures — eating smaller meals, avoiding trigger foods, drinking enough water, and resting — and the pain has not improved within a few days, or if it keeps returning, seeing a doctor is reasonable. Most causes of stomach pain are not dangerous, but the ones that are tend to be treatable when caught early. That is the reason red flags are taken seriously.
Frequently Asked Questions
What is the most common cause of stomach pain?
Gas, indigestion, and constipation are the most frequent causes of everyday stomach pain. These typically improve on their own within a day or two.
When should I worry about stomach pain?
Seek emergency care for sudden severe pain, a rigid or hard abdomen, vomiting blood, black or bloody stools, or pain with high fever. Pain that radiates to the chest, shoulder, or jaw also needs urgent evaluation.
Can stomach pain be a sign of a heart attack?
Yes. Heart attacks can cause upper abdominal pain, particularly in women and older adults, and are sometimes mistaken for indigestion. Pain that spreads to the shoulder, arm, or jaw with shortness of breath should be treated as an emergency.
Does stress cause stomach pain?
Stress can trigger or worsen stomach pain by affecting how the gut moves and how sensitive it is. Stress does not cause ulcers, though — those are primarily caused by H. pylori infection or NSAID use.

