You should see a doctor when:

  • Gas and stomach pain lasts for more than three days, or
  • You are losing weight for no reason.

You should seek immediate medical care when:

  • The pain is very severe.

Everyone produces gas in their intestinal tract, and passing this gas through the rectum is a normal occurrence. Gas simply may mean you’re eating a healthy diet. When you eat fiber-containing foods such as whole grains, fruits and vegetables, your body naturally produces gas, which may be passed out of your rectum. Although passing this gas may be embarrassing, it’s important to continue healthy eating habits.

However, some digestive problems can cause you to be more aware of the gas that you produce. In this case, it’s important to consult your physician because it could be a sign of an underlying intestinal problem.

Self-remedy suggestions:

  • Drink a cup of water with a drop of peppermint, cinnamon or ginger extract in it.
  • Milk sugar (lactose), onions and root vegetables contains sugars that often are not absorbed and can lead to increased gas production. Notice which items cause more gas than others and reduce the amount you consume of the “offending” foods.
  • Many medications can reduce belching, but usually have little effect on intestinal gas.

Source:  Dr. Dan Talks To You About Digestive Health (