What to Eat When Your Stomach Hurts From Gas

When gas pain hits, the right foods can help your stomach settle faster while the wrong ones will keep you bloated for hours. The goal is simple: eat things that are easy to digest and unlikely to ferment in your gut, while avoiding the specific foods that produce the most gas. Here’s what to reach for and what to skip.

Best Foods to Eat During a Gas Episode

When your stomach already hurts, you want foods that move through your digestive system without creating more fermentation. Plain-cooked proteins are your safest bet: eggs, chicken, fish, and tofu all digest cleanly without producing significant gas. White rice is another reliable choice because it’s one of the few starches that doesn’t ferment in the large intestine.

For fruits, stick with grapes, strawberries, and pineapple. These are low in the types of sugars that gut bacteria feed on. Apples, watermelon, and stone fruits like peaches and plums are the opposite: they contain high levels of fermentable sugars that will make your bloating worse. Bananas are a mixed bag. Ripe bananas are generally tolerable, but they do contribute some fermentable carbohydrates.

Cooked vegetables tend to be gentler than raw ones. Zucchini, carrots, spinach, and bell peppers are good options. Potatoes (not sweet potatoes) and cucumbers also tend to sit well. The key is choosing vegetables that aren’t in the high-gas category, which we’ll cover below.

Ginger and Peppermint for Quick Relief

Ginger is one of the most well-studied natural remedies for gas and bloating. Its active compounds work on multiple fronts: they reduce intestinal cramping, help food move through your digestive tract more efficiently, and block receptors in the gut that contribute to nausea and discomfort. A systematic review of clinical trials confirmed that ginger prevents flatulence, bloating, and that heavy, uncomfortable feeling after eating.

The simplest way to use ginger during a gas episode is to steep a few slices of fresh ginger root in hot water for 5 to 10 minutes. Clinical studies have used doses ranging from about 250 mg to 2 grams per day of ginger, with 1 gram daily being a common effective dose. That translates roughly to a half-inch piece of fresh ginger root per cup of tea. You can also chew on a small piece of crystallized ginger if tea isn’t convenient.

Peppermint tea is another solid option. Peppermint relaxes the smooth muscle in your intestinal walls, which helps trapped gas pass through instead of sitting in one spot and causing pain. Either ginger or peppermint tea after a meal can help, but avoid peppermint if you’re prone to heartburn, since that same muscle-relaxing effect can loosen the valve at the top of your stomach.

Foods That Make Gas Pain Worse

Some foods are gas factories, and eating them when you’re already bloated is like adding fuel to a fire. The biggest offenders fall into a few categories:

  • Beans and lentils contain oligosaccharides, a type of sugar your body can’t break down on its own. Gut bacteria ferment them instead, producing gas as a byproduct.
  • Cruciferous vegetables like broccoli, cauliflower, cabbage, and Brussels sprouts are notorious gas producers for the same reason.
  • Onions and garlic are among the highest sources of fructans, a fermentable carbohydrate. In studies tracking what people actually eat, onions and garlic together accounted for nearly 70% of fructan intake.
  • Dairy products cause gas in anyone with even mild lactose intolerance, which is far more common than most people realize.
  • Sugar-free foods containing sugar alcohols (sorbitol, mannitol, xylitol) are poorly absorbed and heavily fermented in the gut.
  • Carbonated drinks introduce gas directly into your digestive system and can also cause you to swallow extra air.
  • Wheat-based foods in large quantities contribute fermentable carbohydrates that some people digest poorly.

How You Eat Matters Too

A surprising amount of gas pain comes not from what you eat but from swallowed air. This is called aerophagia, and certain habits make it much worse: eating too fast, talking while chewing, using straws, chewing gum, and sucking on hard candy all force extra air into your digestive tract.

When your stomach is already hurting, slow down deliberately. Chew each bite thoroughly and swallow it before taking the next one. Take sips from a glass rather than through a straw. Save conversation for after the meal. These changes sound minor, but for people whose gas is partly driven by swallowed air, they can make a noticeable difference within a single meal.

Preparing High-Gas Foods for Next Time

If beans and legumes are a regular part of your diet, how you prepare them matters. Soaking dried beans before cooking and then discarding the soaking water reduced the content of gas-producing oligosaccharides by 25 to 42%, depending on the specific sugar, without affecting the beans’ nutritional value. The process is simple: cover dried beans with water, soak for at least 8 hours (overnight is easiest), drain and rinse, then cook in fresh water. Canned beans have already been processed in liquid, so rinsing them thoroughly before use helps wash away some of the dissolved oligosaccharides sitting in the can liquid.

Over-the-Counter Options That Help

Simethicone is the most widely available gas relief product. It works by breaking up gas bubbles in your gut so they’re easier to pass, and it typically starts working within about 30 minutes. Liquid or chewable forms act slightly faster than capsules. Simethicone doesn’t prevent gas from forming; it just helps move existing gas out.

Enzyme supplements containing alpha-galactosidase (sold under brand names like Beano) take a different approach. They supply the enzyme your body lacks to break down the oligosaccharides in beans and vegetables before bacteria can ferment them. The catch is you need to take these with your first bite of food, not after the gas has already formed.

Probiotics can help with chronic gas and bloating over time. A review of 27 studies covering over 3,500 patients found moderate evidence that specific probiotic strains reduce bloating in people with irritable bowel syndrome. One study found that a fermented milk product containing Bifidobacterium lactis significantly reduced abdominal distension. Composite probiotics containing multiple strains, particularly those including Bifidobacterium infantis, performed better than single-strain products for reducing bloating and abdominal pain. These aren’t quick fixes for acute gas pain, but if you deal with gas regularly, a daily probiotic may reduce the frequency and severity over weeks.

When Gas Pain Signals Something Else

Ordinary gas pain is uncomfortable but it shifts around, comes and goes, and improves after you pass gas or have a bowel movement. Certain patterns suggest something more serious. Pain that starts near your belly button and migrates to the lower right side of your abdomen is a classic sign of appendicitis. Nausea and vomiting paired with a complete loss of appetite (so severe that even your favorite food sounds unappealing) is another red flag. Fever combined with persistent abdominal pain suggests infection or inflammation beyond simple gas. If your pain is constant rather than crampy, steadily worsening over hours, or accompanied by bloody stool, those are reasons to seek medical attention rather than riding it out with ginger tea.