What to Eat for Stomach Pain and What to Avoid

When your stomach hurts, bland, low-fiber foods like plain rice, bananas, and toast are your safest options. They’re easy to digest, unlikely to trigger nausea, and gentle on an irritated gut. But what you eat should depend on the type of pain you’re dealing with, whether it’s nausea, cramping, bloating, or diarrhea. Here’s how to match your food choices to what your stomach actually needs.

Start With Bland, Easy-to-Digest Foods

The classic BRAT diet (bananas, rice, applesauce, toast) has been recommended for decades, and while no clinical trials have compared it head-to-head with other approaches, the individual foods have real benefits. Bananas and applesauce contain pectin, a soluble fiber that binds excess water in the gut and helps firm up loose stools. Bananas also replenish potassium, a mineral your body loses quickly during diarrhea or vomiting. Plain white rice is starch-heavy, and that starch converts into soluble fiber during digestion. Toast made from white bread is bland enough to stay down when nausea is an issue.

That said, you don’t need to limit yourself to just those four foods. Harvard Health notes that a less restrictive diet often makes more sense, especially after the first day or two. Other well-tolerated options include plain oatmeal, boiled potatoes, steamed chicken breast, and broth-based soups. The goal is to avoid anything high in fat, heavily seasoned, or rich in insoluble fiber (think raw vegetables, whole grains, and nuts) until your stomach settles.

If Your Pain Comes With Nausea

Ginger is one of the most studied natural remedies for nausea-related stomach discomfort. Animal studies suggest it works by enhancing movement through the digestive tract and blocking certain serotonin receptors involved in the vomiting reflex. In clinical trials, doses between 250 mg and 1 g per day, split into three or four servings, were effective for nausea. Higher doses didn’t work better than the 1 g range. The easiest way to get ginger is through ginger tea, ginger chews, or small pieces of fresh ginger steeped in hot water.

When nausea is your main symptom, eat in small amounts. A few bites of plain crackers or a quarter cup of rice is better than a full meal. Sipping fluids slowly, rather than drinking a full glass at once, also reduces the chance of triggering vomiting.

If Bloating or Gas Is the Problem

Gas-related stomach pain responds well to foods that are low in fermentable carbohydrates. These are the sugars and fibers that gut bacteria feed on, producing gas as a byproduct. When your belly is already distended and cramping, you want foods that pass through without much fermentation.

Good choices include eggs, plain rice, potatoes, oats, quinoa, cucumbers, zucchini, eggplant, and tomatoes. For fruit, grapes, oranges, strawberries, blueberries, and pineapple are all low in the short-chain carbohydrates that cause the most bloating. Hard cheeses like cheddar and feta are also well tolerated, since most of the lactose has been broken down during aging.

Foods to skip when you’re bloated: beans, lentils, onions, garlic, wheat-based bread, apples, pears, and anything sweetened with sugar alcohols (like sorbitol or mannitol, common in sugar-free gum and candies). These are all high-fermentation foods that will make gas worse before they make it better.

Stay Hydrated, Especially After Vomiting or Diarrhea

Dehydration is the biggest risk when stomach pain comes with vomiting or diarrhea. Water alone doesn’t replace the electrolytes you’re losing. You can make a simple oral rehydration solution at home: mix 4 cups of water with half a teaspoon of table salt and 2 tablespoons of sugar. The sugar isn’t just for taste. It activates a sodium-glucose transport mechanism in your intestines that pulls water into your bloodstream more efficiently than plain water can.

Sip this throughout the day rather than gulping it. Coconut water, diluted fruit juice, and clear broths also work if you can’t stomach the salt-sugar mix. Avoid sports drinks with high sugar content, as the excess sugar can pull water into the intestines and worsen diarrhea.

Foods and Drinks That Make Stomach Pain Worse

Some things actively irritate an already inflamed stomach lining. Caffeine stimulates acid production and speeds up gut contractions, which can intensify cramping. Alcohol irritates the mucosal lining directly. Spicy foods containing capsaicin activate pain receptors in the digestive tract and trigger the release of neuropeptides associated with visceral pain. At high enough concentrations, capsaicin also raises inflammatory markers in the small intestine and colon.

Beyond those three, also avoid:

  • Fatty or fried foods: they slow gastric emptying and can worsen nausea
  • Dairy (if you’re lactose-sensitive): milk and soft cheeses can cause cramping and diarrhea
  • Citrus juice on an empty stomach: the acidity can aggravate an irritated lining
  • Carbonated drinks: the gas adds to bloating and distension

Probiotics for Recurring Stomach Pain

If stomach pain is something you deal with regularly, probiotics may help reduce its severity over time. A meta-analysis of 10 studies involving 735 participants found that probiotics significantly reduced pain severity compared to placebo. The strain with the strongest individual evidence was Lactobacillus reuteri, which showed meaningful pain reduction across five separate studies. Lactobacillus GG is another well-studied option.

Probiotics aren’t a quick fix for acute pain. They work by gradually shifting the balance of bacteria in your gut, which takes days to weeks. Fermented foods like plain yogurt (if you tolerate dairy), kefir, kimchi, and sauerkraut provide natural probiotic bacteria and are worth adding once your stomach can handle more than the basics.

A Simple Timeline for Eating Through Stomach Pain

In the first few hours, when pain or nausea is at its worst, focus entirely on fluids. Small sips of the rehydration solution, ginger tea, or clear broth. Don’t force yourself to eat solid food.

Once you can keep fluids down for a few hours, introduce small amounts of the blandest foods: plain rice, a few crackers, half a banana. Eat slowly, and stop if nausea returns.

By day two or three, if you’re improving, start broadening your diet. Add steamed vegetables, plain chicken or fish, oatmeal, and eggs. Continue avoiding fatty, spicy, and acidic foods for another day or two after your symptoms resolve. Your gut lining needs time to recover even after the pain stops.

When Stomach Pain Needs More Than Food

Diet changes are appropriate for common stomach bugs, mild food poisoning, stress-related discomfort, and general indigestion. But certain patterns signal something more serious. Pain that starts near the belly button and migrates to your lower right side, especially if it worsens over hours, is a hallmark of appendicitis. Upper abdominal pain that gets worse when you eat, accompanied by fever and a rapid pulse, can indicate pancreatitis. Severe bloating with an inability to pass gas or have a bowel movement, particularly if you’ve had abdominal surgery in the past, may point to a bowel obstruction.

Any stomach pain severe enough to keep you from functioning normally, or pain paired with vomiting so intense you can’t keep liquids down for several hours, warrants medical evaluation rather than dietary adjustments.