What to Eat When Your Stomach Hurts and What to Skip

When your stomach hurts, the safest choices are bland, low-fiber foods that require minimal digestive effort: plain rice, toast, bananas, applesauce, and broth. What you avoid matters just as much as what you eat, though, and the best approach depends on whether you’re dealing with nausea, cramping, acid reflux, or a stomach bug. Here’s how to choose the right foods and get back to normal eating as quickly as possible.

Best Foods for an Upset Stomach

The goal is to give your digestive system something to work with without making it work hard. Refined, low-fiber starches are the easiest category to digest. Good options include white rice, plain pasta, saltine crackers, white bread, plain oatmeal, peeled and boiled potatoes, pretzels, and white flour tortillas. These foods provide energy without adding bulk or irritating your stomach lining.

Bananas and applesauce are particularly useful because they’re soft, naturally low in acid, and contain soluble fiber. Soluble fiber dissolves in water and forms a gel-like material in the stomach, which slows digestion gently rather than pushing things through aggressively. That’s a meaningful distinction: insoluble fiber (found in raw vegetables, whole grains, and seeds) adds bulk and speeds up movement through the gut, which can worsen cramping and bloating when your stomach is already irritated.

Plain broth, whether chicken or vegetable, delivers fluid and a small amount of sodium without requiring much digestion at all. It’s one of the best first foods when you’re transitioning from not eating to eating again.

What to Avoid Until You Feel Better

Fatty and fried foods sit in the stomach longer than other foods, which increases the chance of acid backing up into the esophagus and makes nausea worse. Spicy foods, citrus fruits, tomato-based sauces, and vinegar can all intensify heartburn and irritate an already-inflamed stomach lining.

Chocolate, caffeine, onions, carbonated drinks, and alcohol are common triggers that relax the valve between your stomach and esophagus or increase acid production. Even peppermint, which many people reach for instinctively, can backfire. Peppermint oil relaxes smooth muscle in the digestive tract, which helps with cramping but also loosens that same valve. If your stomach pain involves any burning or acid reflux, peppermint can make it noticeably worse.

Dairy is worth skipping temporarily too. Even if you’re not lactose intolerant, your gut’s ability to process lactose can dip when it’s inflamed or recovering from illness. High-fiber foods like beans, raw broccoli, and whole-grain bread can produce gas and bloating that compounds whatever discomfort you already have. Adding too much fiber too quickly is one of the most common causes of gas, bloating, and cramping.

If You’ve Been Vomiting

After throwing up, don’t eat or drink anything right away. Give your stomach a few hours of rest first. Then start with ice chips or very small sips of water, about every 15 minutes, to test whether your stomach will keep it down.

Once you’ve tolerated water for a stretch, move to other clear liquids: clear broth, diluted electrolyte drinks, ice pops, or gelatin. When you’ve kept liquids down for a few hours and your appetite starts returning, introduce small amounts of bland food: applesauce, bananas, crackers, plain oatmeal, or toast. Eat slowly and in small portions. You can eat more frequently if hunger returns, but large meals too soon often trigger another round of nausea.

This gradual progression, from nothing to sips to clear liquids to bland solids, typically plays out over 12 to 24 hours. Rushing it is the most common mistake.

Staying Hydrated When Eating Feels Impossible

Dehydration is the biggest practical risk when stomach pain keeps you from eating or drinking normally, especially if vomiting or diarrhea is involved. Plain water helps, but your body absorbs fluid more efficiently when it contains both a small amount of sugar and sodium in roughly equal proportions. That’s the principle behind oral rehydration solutions: the WHO formula uses a 1:1 ratio of glucose to sodium for optimal absorption.

You don’t need a medical-grade solution. Diluted sports drinks, broth with a few crackers, or commercial electrolyte drinks all work. Avoid full-strength fruit juice or sugary sodas, which can pull water into the intestines and make diarrhea worse. If you can only manage tiny sips, keep at it consistently rather than trying to drink a full glass at once.

When the Pain Is From Acid or Heartburn

Stomach pain that feels like burning, sits high in your abdomen, or worsens when you lie down is often acid-related. The eating strategy here is slightly different from general stomach upset. Small, frequent meals work better than two or three large ones because a full stomach puts more pressure on the valve that keeps acid contained. Stop eating at least two to three hours before lying down.

Lean proteins like skinless chicken or fish are fine for acid-related pain since they don’t trigger excess acid production the way fatty meats do. Non-citrus fruits, cooked vegetables (not raw), and the same bland starches listed above are all safe. The foods to eliminate first are the classic reflux triggers: coffee, alcohol, chocolate, tomato sauce, citrus, and anything fried.

When the Pain Is Cramping or Bloating

Crampy, gassy pain that comes in waves usually involves the intestines more than the stomach itself. The priority here is reducing anything that produces gas: beans, lentils, cruciferous vegetables (broccoli, cabbage, cauliflower), carbonated drinks, and sugar alcohols found in many sugar-free products.

Cooked vegetables are easier to digest than raw ones. Rice is one of the least gas-producing starches. Ginger, whether as tea or freshly grated into hot water, can help with both nausea and mild cramping without the reflux risk that peppermint carries. If you know your cramping is related to irritable bowel syndrome, enteric-coated peppermint oil capsules have good evidence behind them for reducing abdominal pain. The coating prevents the oil from releasing in the stomach, which reduces the heartburn side effect. A review of 10 studies involving over 1,000 people found peppermint oil outperformed placebo for overall IBS symptoms and pain reduction.

Getting Back to Normal Eating

Once your pain has been gone for several hours and bland foods are sitting well, start reintroducing variety gradually. Add cooked vegetables before raw ones. Try lean protein before fatty foods. Reintroduce dairy and high-fiber foods last, since these demand the most digestive effort. If a particular food brings discomfort back, give it another day or two.

Most episodes of stomach pain from viruses, mild food reactions, or stress resolve within one to three days. If you find yourself unable to keep any food down for more than 24 hours, notice blood in your vomit or stool, or have severe pain that doesn’t respond to rest and bland eating, that’s a signal something more than a common stomach ache is going on.