Stomach problems stem from a wide range of causes, from temporary infections and food reactions to chronic conditions affecting how your gut moves, senses, and processes what you eat. Most episodes are short-lived and triggered by something identifiable, like a virus, a rich meal, or stress. But when symptoms persist or recur, the cause is often more layered, involving your immune system, nervous system, or the balance of bacteria living in your digestive tract.
Infections: The Most Common Short-Term Cause
Viral gastroenteritis is the single most frequent cause of acute stomach problems worldwide. Norovirus and rotavirus are the usual culprits, spreading through contaminated food, water, or close contact with someone who’s sick. Bacterial infections from organisms like Salmonella, E. coli, and Campylobacter typically arrive through undercooked meat, unwashed produce, or contaminated water. Parasites such as Giardia are less common but cause prolonged diarrhea that can last weeks if untreated.
Most viral stomach bugs resolve within one to three days. If diarrhea lasts longer than two days in an adult, or more than a day in a young child, that’s a signal to get medical attention. Bacterial and parasitic infections tend to hang on longer and sometimes need targeted treatment.
One infection deserves special mention: Helicobacter pylori, a bacterium that burrows into the stomach lining and can live there for years. Roughly 44% of adults worldwide carry H. pylori. Many people never develop symptoms, but in others it causes chronic inflammation, ulcers, and a persistent gnawing pain in the upper abdomen. It’s also the most common underlying cause of peptic ulcers that physically narrow the stomach’s outlet, making it harder for food to pass through.
Food Intolerances and Sensitivities
When your body lacks the enzymes needed to break down certain components in food, those undigested molecules pull water into the intestine and get fermented by gut bacteria. The result is bloating, gas, cramps, and diarrhea, sometimes within an hour of eating.
Lactose intolerance is the most recognized example. Without enough lactase, the enzyme that breaks down the sugar in milk and yogurt, dairy passes through undigested and causes symptoms in the lower gut. Fructose, the sugar naturally concentrated in honey, apples, and mangoes, causes similar problems in people who absorb it poorly. A less well-known condition, sucrase-isomaltase deficiency, affects an estimated 2 to 9% of people with European or North American ancestry and impairs the digestion of table sugar and certain starches.
Gluten sensitivity is more nuanced than many people realize. For those without celiac disease, the stomach symptoms blamed on gluten may actually be caused by fructans, a type of carbohydrate found in wheat. The first randomized controlled trial testing this distinction found that patients who believed they were gluten-sensitive were actually reacting to fructans, not gluten protein itself. This is why a diet low in fermentable carbohydrates (often called FODMAPs) frequently helps more than simply going gluten-free.
Dietary Triggers That Disrupt Digestion
Even without an intolerance, certain types of food reliably provoke stomach symptoms in susceptible people.
High-fat meals are among the worst offenders. Fat slows gastric emptying and triggers the release of a gut hormone called cholecystokinin, which makes the stomach more sensitive to stretching. This combination produces nausea, fullness, and pain, especially in people prone to functional dyspepsia (a chronic pattern of upper stomach discomfort with no visible structural cause). An equicaloric meal high in carbohydrates rather than fat causes significantly less discomfort for the same volume of food.
Spicy foods, particularly those containing capsaicin from chili peppers, activate pain receptors on sensory nerves in the stomach lining. In people with heightened gut sensitivity, this creates a burning sensation and worsens existing discomfort. Coffee, chocolate, onions, and pepper have all been linked to epigastric burning. Carbonated drinks are a common trigger for bloating, while fried foods, red meat, and sweets tend to provoke a heavy, overly full feeling.
High-glycemic meals, those that spike blood sugar quickly, also slow gastric emptying by triggering hormonal responses that prolong the feeling of fullness. This helps explain why a large serving of white bread or sugary cereal can leave you feeling sluggish and uncomfortable well after eating.
Stress and the Gut-Brain Connection
Your digestive tract has its own nervous system, sometimes called the “second brain,” containing hundreds of millions of nerve cells that coordinate the muscular contractions pushing food through your gut. This system communicates constantly with your brain, and chronic stress disrupts that communication in measurable ways.
Under prolonged stress, the smooth muscle in the intestinal wall loses some of its ability to contract normally. Research shows this happens because stress reduces the production of specific channel proteins that control calcium flow into muscle cells. Calcium is essential for muscle contraction, so when levels drop inside those cells, the rhythmic squeezing that moves food along slows down or becomes erratic. The result can be anything from nausea and bloating to cramping and unpredictable bowel habits.
Psychological factors are, in fact, among the strongest predictors of developing functional digestive disorders like IBS and functional dyspepsia. These conditions involve a heightened sensitivity to normal gut sensations, where stretching, gas, or movement that a healthy gut would ignore instead registers as pain. Stress doesn’t just worsen these conditions temporarily. It can reshape how the gut’s nerves respond over time, making symptoms self-perpetuating even after the original stressor is gone.
Chronic Conditions: IBS, GERD, and Functional Dyspepsia
When stomach problems persist for months, a chronic digestive condition is often responsible. These are extremely common. IBS alone affects roughly 11 to 13% of the global population, with women nearly twice as likely to be affected as men. Prevalence varies dramatically by region, from around 3% in India to nearly 29% in Pakistan under the same diagnostic criteria.
IBS is defined by recurring abdominal pain (at least six times per year) combined with changes in bowel habits, where the pain typically improves after a bowel movement or coincides with changes in stool frequency or consistency. There’s no single test for it. The diagnosis rests on a recognizable symptom pattern and the exclusion of other causes.
GERD, or gastroesophageal reflux disease, is diagnosed when heartburn or acid regurgitation occurs at least once a week. The lower esophageal sphincter, the muscular valve between the esophagus and stomach, relaxes at inappropriate times, allowing acid to wash upward. Interestingly, GERD and IBS frequently overlap in the same person, likely because both can involve a shared problem: visceral hypersensitivity, where the nerves in the gut overreact to normal stimuli. Excess fermentation in the colon may also trigger abnormal relaxation of that esophageal valve, linking lower-gut problems directly to upper-gut symptoms.
Functional dyspepsia describes chronic upper stomach discomfort, including pain, nausea, or vomiting, without any visible damage on endoscopy. Like IBS, it’s driven by a combination of genetic predisposition, immune activation, disrupted gut bacteria, and altered brain-gut signaling. Symptoms can fluctuate as the immune system responds to food and microbial triggers in the gut, which explains why many people have good weeks and bad weeks with no obvious pattern.
Medications That Irritate the Stomach
Common pain relievers are one of the most overlooked causes of stomach problems. NSAIDs like ibuprofen and naproxen, along with aspirin, work by blocking an enzyme involved in inflammation. The problem is that the same enzyme also produces compounds that protect the stomach lining, maintaining its mucus barrier and blood flow. Block the enzyme, and you lose that protection.
The numbers are striking. Stomach erosions develop in roughly half of all people taking NSAIDs regularly, and peptic ulcers appear in 15 to 30% of cases. Even without ulcers, up to 20% of NSAID users experience upper abdominal pain, and 22% report nausea. The risk of stomach bleeding is highest during the first three months of use, then gradually decreases. After stopping the medication, the elevated risk drops substantially within about a week.
Corticosteroids, certain cancer treatments, oral iron supplements, and even proton pump inhibitors (the acid-reducing drugs often prescribed to protect the stomach) can all cause their own forms of gastric irritation. About a quarter of older adults use NSAIDs or aspirin regularly, making medication-related stomach problems a widespread issue that’s easy to miss when people assume their symptoms are caused by food or stress.
Physical Blockages and Structural Problems
Less commonly, stomach problems are caused by something physically blocking the passage of food. Gastric outlet obstruction occurs when the lower portion of the stomach or the opening into the small intestine becomes narrowed. Peptic ulcer disease is the most common benign cause, creating scar tissue that progressively narrows the passage. Inflammatory polyps and, rarely in adults, thickening of the pyloric muscle can also create obstruction.
In newborns, hypertrophic pyloric stenosis is a well-known cause of projectile vomiting, affecting roughly 1.5 to 3 out of every 1,000 live births, with boys affected five times more often than girls. The pyloric muscle thickens and blocks the stomach’s exit, requiring a minor surgical procedure to correct.
The incidence of ulcer-related obstruction has dropped significantly since the introduction of effective acid-suppressing medications and treatment for H. pylori. Today, malignant causes (tumors in or near the stomach) account for a growing share of gastric outlet obstruction, which is why persistent vomiting, inability to keep food down, or unexplained weight loss alongside stomach symptoms warrants prompt evaluation.
Warning Signs That Need Attention
Most stomach problems, while uncomfortable, resolve on their own or respond to dietary and lifestyle changes. Certain symptoms, however, signal something more serious: blood in your stool or vomit, fever alongside severe abdominal pain, pain with urination, unintentional weight loss, or persistent vomiting that prevents you from keeping fluids down. These warrant prompt evaluation rather than a wait-and-see approach.