Gas is a common medical condition, which is not life-threatening, but can be uncomfortable and embarrassing. It can be caused because of several reasons.
Some of the common causes of gas include:
Expected duration of gas or flatulence
Duration for which flatulence may last depends on its cause.
Flatulence caused because of food or eating habits improves rapidly in most people with diet and lifestyle changes (if there is no other problem that is causing gas). Since different people react differently to certain foods, even when you eat foods that usually may not cause gas, you may continue to experience flatulence. In such cases, keeping a food diary may be helpful. It may help you identify foods that bring on your symptoms.
Flatulence because of conditions, such as constipation improve when constipation improves. Gas caused by eating foods that you cannot tolerate,such as lactose intolerance or gluten intolerance improve as soon as one avoids food that causes the problem.
In people with flatulence because of irritable bowel disease and other intestinal problems, the problem may last longer or they may have recurrent relapses (when there is flare-up of symptoms of primary disease). Even in these people the symptoms can be controlled by diet changes and over-the-counter medications, such as alpha-galactosidase and probiotics.