Generally speaking, stinky farts will go away once the cause has worked its way out of your system. To help prevent smelly farts in the future, consider making some changes to your diet.

The following foods increase the amount of gas and smelliness of farts:

  • Beans, lentils, and bean-based products (like hummus, tofu, and tempeh)
  • Certain vegetables (like brussel sprouts, broccoli, cabbage, and cauliflower)
  • Certain fruits (like prunes and apricots)
  • Beer
  • Foods high in fiber (like whole grains)
  • High-protein foods (like animal meat) and powders (commonly used to build muscle)
  • Dairy products from cow’s milk (if you have a lactose intolerance)
  • Artificial sweeteners in sugar-free foods (like xylitol and sorbitol)
  • Fatty, fried foods

When something other than food causes smelly farts, the aim is to treat the underlying cause. For example, if your provider finds that you have SIBO, they’ll recommend treatment with antibiotics.

You can treat lactose intolerance by avoiding dairy and/or taking lactase supplements to help the gut digest milk products.

And if constipation is the problem, there are ways to deal with that, too