Stomach discomfort has a wide range of causes, from something as simple as eating too fast to infections, stress, medications, and chronic digestive conditions. Most episodes are short-lived and tied to something you ate, drank, or experienced emotionally. But persistent or severe discomfort can signal something that needs attention. Here’s a breakdown of the most common culprits.
Indigestion and Acid-Related Irritation
The single most common cause of stomach discomfort is indigestion, sometimes called dyspepsia. It typically shows up as a burning or gnawing feeling in the upper abdomen after eating. Your stomach produces acid to break down food, and when that acid irritates the stomach lining or backs up toward the esophagus, you feel it. Eating large meals, eating quickly, or lying down right after eating all make this worse.
Acid reflux is a closely related problem. Normally, a ring of muscle at the bottom of your esophagus keeps stomach acid where it belongs. When that muscle relaxes at the wrong time, acid splashes upward, causing burning and discomfort that can radiate from the stomach to the chest and throat. Certain foods, particularly spicy, fatty, or acidic ones, are well-known triggers.
Food Intolerances
Your body may struggle to digest specific compounds in food, and the result is bloating, cramping, gas, or nausea that arrives predictably after certain meals. The most common culprit is lactose intolerance: people who don’t produce enough of the enzyme that breaks down the sugar in dairy products. But several other intolerances follow the same pattern.
- Lactose: Found in milk, cheese, ice cream, and many processed foods. The undigested sugar ferments in the gut, producing gas and cramping.
- Gluten: A protein in wheat, rye, and barley. In people with celiac disease or gluten sensitivity, it triggers inflammation and digestive distress.
- Histamine: Naturally present in aged cheese, avocados, bananas, chocolate, and red wine. People who don’t produce enough of the enzyme that breaks down histamine can experience stomach pain, flushing, and headaches.
- FODMAPs: A group of short-chain carbohydrates found in foods like onions, garlic, apples, and wheat. They ferment rapidly in the gut and are a major trigger for people with irritable bowel syndrome.
The tricky part with food intolerances is that symptoms can appear anywhere from 30 minutes to several hours after eating, making the connection easy to miss. An elimination diet, where you remove suspect foods for a few weeks and reintroduce them one at a time, is the most reliable way to identify what’s bothering you.
Bacterial and Viral Infections
A “stomach bug” is one of the most recognizable causes of sudden stomach discomfort. Viral gastroenteritis, often caused by norovirus or rotavirus, inflames the stomach lining and intestines, producing nausea, cramping, vomiting, and diarrhea. Most people with norovirus feel better within one to two days. Rotavirus symptoms tend to appear one to three days after exposure and last three to eight days.
A longer-term bacterial cause is H. pylori, a bacterium that burrows into the stomach lining and can live there for years. It affects roughly 44% of adults worldwide and is even more common in developing regions. Many people carry H. pylori without symptoms, but it can cause chronic inflammation, ulcers, and a persistent gnawing or burning discomfort in the upper abdomen. It’s diagnosed with a breath test or stool test and treated with a course of antibiotics.
Stress and the Gut-Brain Connection
That knot in your stomach before a big presentation isn’t imaginary. Your brain and gut are in constant two-way communication, and psychological stress directly changes how your digestive system works. Stress alters the speed of contractions in the GI tract, increases acid secretion, and can heighten how intensely you perceive pain signals from your gut. In other words, stress doesn’t just make you notice discomfort more; it physically creates the conditions for it.
This is especially relevant for people with functional GI disorders like irritable bowel syndrome. Research from Harvard Health has shown that many people with these conditions have brains that are more responsive to pain signals from the digestive tract, and stress amplifies that sensitivity further. Anxiety, depression, and chronic emotional strain can all keep the gut in a state of low-grade disturbance that produces real, measurable symptoms: cramping, nausea, bloating, and changes in bowel habits.
Common Pain Medications
Over-the-counter painkillers like ibuprofen, aspirin, and naproxen are among the most frequent medication-related causes of stomach discomfort. These drugs work by blocking the production of compounds called prostaglandins, which transmit pain signals throughout the body. The problem is that prostaglandins also play a protective role in the stomach. They help maintain blood flow to the stomach lining, stimulate the production of the mucus barrier that shields tissue from acid, and promote the repair of damaged cells.
When you take these painkillers, especially regularly or on an empty stomach, you strip away those defenses. Acid and digestive enzymes can then irritate the exposed lining, causing anything from mild discomfort to erosions and ulcers. These drugs also reduce blood flow to the stomach wall and trigger an inflammatory response where white blood cells release damaging compounds into the tissue. Over time, they can even impair the stomach’s ability to heal itself by disrupting the growth of new blood vessels at injury sites. If you need pain relief frequently, this is worth discussing with your doctor, since alternatives and protective strategies exist.
Alcohol and Smoking
Both alcohol and tobacco weaken the body’s natural defenses against stomach acid. Alcohol has a direct toxic effect on the lining of the esophagus and stomach, making the tissue more vulnerable to acid damage. It also relaxes the muscular valve between the esophagus and stomach, allowing acid to flow upward more easily.
Smoking compounds the problem from a different angle. It reduces saliva production, and saliva contains bicarbonate, a natural acid neutralizer that helps clear acid from the esophagus. Smoking also relaxes that same esophageal valve. Together, regular drinking and smoking create a one-two punch: more acid exposure and less ability to buffer it.
Why Stomach Pain Can Feel So Vague
One frustrating aspect of stomach discomfort is that it’s often hard to pinpoint. This is because the nerves in your gut work differently from the nerves in your skin or muscles. Your stomach wall contains pressure-sensitive nerve endings that normally only respond to significant stretching or strong chemical signals. But when inflammation is present, even from a mild infection or food reaction, these nerves become sensitized. They start firing at lower thresholds, responding to normal amounts of gas, food, or digestive movement that wouldn’t usually register as painful.
Your gut also contains what researchers call “silent” nerve fibers. These don’t respond to anything under normal conditions but switch on during inflammation, adding to the pain signal. This is why a bout of gastroenteritis can leave your stomach feeling sensitive for days after the infection itself has cleared: the nerves remain in a heightened state even after the original trigger is gone. It also helps explain why conditions like IBS can produce real pain without any visible damage to the tissue.
Other Medical Causes Worth Knowing
Several less common but important conditions can produce stomach discomfort. Gallstones cause pain in the upper right abdomen, often after fatty meals. Pancreatitis produces pain in the middle or upper left abdomen that may radiate to the back, sometimes accompanied by nausea, fever, and a rapid pulse. Intestinal obstructions, where a blockage prevents food from moving through, cause pain along with bloating and vomiting. In rare cases, upper abdominal discomfort accompanied by shortness of breath or a tight, squeezing sensation can be a sign of a cardiac event rather than a digestive problem.
When Stomach Discomfort Is an Emergency
Most stomach discomfort resolves on its own or with simple changes. But certain patterns warrant immediate medical attention. Sudden, severe pain that doesn’t ease within 30 minutes can indicate a serious problem like a perforated ulcer or ruptured blood vessel. Continuous severe pain paired with nonstop vomiting is another red flag. Pain in the lower right abdomen with loss of appetite, nausea, and fever suggests possible appendicitis. In women of reproductive age, severe abdominal pain with vaginal bleeding can signal an ectopic pregnancy. These situations require emergency evaluation, not a wait-and-see approach.

