A stomach upset usually comes from something straightforward: something you ate, a mild infection, stress, or a medication you’re taking. Most episodes resolve on their own within a day or two. The trickier question is figuring out which cause applies to you, because the timing, type of discomfort, and accompanying symptoms all point in different directions.
The Most Likely Culprits
The short list of common causes includes indigestion, gas, food intolerances, food poisoning, stomach viruses, constipation, and acid reflux. Less common but still possible are urinary tract infections, peptic ulcers, and gallbladder issues. If your stomach upset is a one-time event that started in the last few hours, food is the most likely explanation. If it keeps happening, the cause is more likely structural or functional, meaning something about how your digestive system works rather than what you put into it.
One useful distinction: a “functional” digestive issue means nothing looks physically wrong when a doctor examines your gut, but it still isn’t working properly. This covers conditions like irritable bowel syndrome and functional dyspepsia. A “structural” issue means there’s visible damage or a physical abnormality, like an ulcer or inflamed stomach lining.
Food Poisoning vs. Stomach Virus
These two get confused constantly because they feel similar, but the timeline gives them away. Food poisoning hits fast, typically two to six hours after eating contaminated food. It tends to be intense but brief. A stomach virus (viral gastroenteritis) has a longer incubation period of 24 to 48 hours before symptoms appear, then generally lasts about two days, sometimes longer.
If you ate something questionable at lunch and feel terrible by dinner, that’s probably food poisoning. If symptoms crept in over a day or two, especially if someone around you has been sick, a virus is more likely. Both cause nausea, vomiting, and diarrhea, but food poisoning often comes with more sudden, crampy pain that resolves relatively quickly once your body clears the offending food.
Foods That Trigger Stomach Problems
Some foods are simply harder to digest, and certain people are more sensitive than others. Fatty and greasy foods slow down stomach emptying, which can leave you feeling heavy, bloated, and nauseous. Spicy foods can irritate the stomach lining directly. Caffeine and alcohol both increase acid production.
A major category of trigger foods involves a group of carbohydrates called FODMAPs, short-chain carbohydrates that are difficult for many people to break down. Your gut bacteria ferment these carbohydrates, producing gas in the process. High-FODMAP foods include onions, garlic, beans, lentils, many wheat products, dairy (due to lactose), apples, watermelon, stone fruits, and artificial sweeteners made from sugar alcohols. Most legumes and processed meats also fall into this category.
If your stomach consistently acts up after meals but you can’t pin down a single food, a pattern involving FODMAPs could be the reason. Keeping a food diary for a week or two often reveals connections that aren’t obvious in the moment.
What’s Happening Inside Your Stomach
Your stomach is a muscular organ that contracts rhythmically to break down food, and several things can go wrong with that process. When the stomach empties too slowly, food sits longer than it should, causing bloating and nausea. When the upper part of the stomach fails to relax properly after a meal (a process called gastric accommodation), even a normal-sized meal can feel uncomfortably full.
Your stomach and upper intestine can also become hypersensitive to normal stimuli. Some people’s digestive tracts overreact to the presence of fat or acid in the small intestine, triggering nausea. Others experience bloating because of unsuppressed muscle contractions that wouldn’t bother most people. These mechanisms explain why some people feel sick after meals that others handle without issue, even when there’s no visible damage or disease.
Medications That Upset Your Stomach
If your stomach problems started around the same time as a new medication, that’s worth paying attention to. Common pain relievers like ibuprofen and aspirin are among the most frequent offenders. These drugs irritate the stomach lining directly and, with regular use, can contribute to ulcers.
Antibiotics are another major cause. Penicillin-based drugs (including amoxicillin), clindamycin, and cephalosporins commonly cause diarrhea by disrupting the balance of bacteria in your gut. Birth control pills, iron supplements, and vitamin C can also cause stomach irritation. Even some blood pressure medications and antacids containing aluminum can affect your digestion, though they’re more likely to cause constipation than nausea.
The timing is the clue here. If your stomach was fine before you started taking something and the symptoms lined up with the new prescription or supplement, talk to whoever prescribed it. There’s often an alternative that’s easier on your gut, or a way to take the medication (like with food) that reduces the irritation.
When Stomach Upset Keeps Coming Back
Occasional stomach trouble is normal. Recurring episodes point to something worth investigating. The most common chronic conditions behind persistent stomach upset include:
- Gastritis: Inflammation of the stomach lining, often caused by long-term use of pain relievers, excessive alcohol, or infection with a specific type of bacteria. It causes a burning or gnawing feeling in the upper abdomen that sometimes improves and sometimes worsens with eating.
- Irritable bowel syndrome (IBS): A functional condition where the intestinal muscles contract more or less often than normal. It causes cramping, bloating, diarrhea, constipation, or an alternating mix of both. Stress and certain foods tend to make it worse.
- Acid reflux (GERD): Chronic backflow of stomach acid into the esophagus, causing a burning sensation in the chest or upper abdomen, often worse after eating or when lying down.
- Peptic ulcers: Open sores on the stomach lining or the upper part of the small intestine, usually caused by bacterial infection or long-term use of anti-inflammatory pain relievers. The pain is often a dull, burning ache that temporarily improves after eating, then returns.
All of these are diagnosable and treatable. If your stomach has been bothering you for more than a couple of weeks, or if the pattern is predictable enough that you can describe it clearly, that’s enough information for a doctor to start narrowing things down.
Simple Remedies That Actually Help
For a basic stomach upset, antacids work by directly neutralizing stomach acid, providing the fastest relief. If your discomfort involves heartburn or acid-related pain, acid-reducing medications like famotidine (sold as Pepcid) work differently. They block the chemical signal that tells your stomach to produce acid in the first place, which means they take longer to kick in but the effect lasts longer.
Beyond medication, a few practical strategies make a real difference. Eating smaller meals reduces the amount of work your stomach has to do at once. Avoiding lying down for two to three hours after eating helps prevent acid from flowing backward. Staying hydrated matters especially during vomiting or diarrhea, when fluid loss adds dehydration on top of everything else. Bland, low-fat foods like rice, toast, bananas, and plain broth are easier to tolerate when your stomach is recovering.
Symptoms That Need Urgent Attention
Most stomach upset is uncomfortable but not dangerous. A few patterns, however, signal something more serious. Sudden, severe pain that doesn’t ease within 30 minutes warrants emergency care. So does abdominal pain paired with continuous vomiting, a high fever, or a rapid pulse.
Severe pain concentrated in the lower right abdomen, especially with loss of appetite and fever, can indicate appendicitis, though the pain sometimes starts elsewhere in the abdomen before localizing. Upper abdominal pain that worsens after eating and comes with a swollen, tender belly may point to pancreatitis. Any vomiting of blood or stool that looks black and tarry suggests bleeding somewhere in the digestive tract and needs immediate evaluation.