Causes of Excessive Gas: Medications and Health Conditions. Excessive gas may be a side effect of certain medications, such as acarbose (Precose), a medication used to treat type 2 diabetes, or those that contain the sugars sorbitol or lactulose. Fiber supplements may also cause flatulence. Excessive gas may also be a result of many health conditions.