Your symptoms are very common in the general population, unfortunately there is not a test to determine the cause. Therefore patients are usually labeled as having Irritable Bowel Syndrome
, which is what you may end up having, although you are not describing abdominal pain
among your symptoms.
Based on your symptoms, I would highly recommend you following a "FODMAP" diet. You can search for it in the internet (google) and follow which foods you should and should not take. If followed it can help significantly with your gas and bloating
Make sure your doctor has tested you for celiac sprue
and bacterial overgrowth.