Avoid salty foods both before and during your flight. Stay away from things like pretzels and peanuts. The salt causes water retention and bloating. If possible, bring your own healthy snacks, such as an apple or grapes. The potassium in fruits and vegetables can reduce fluid retention and bloating.
Drink water. Stay away from alcohol or carbonated beverages which can lead to fluid retention and bloating. Aim to drink 8 ounces of water for every hour you are in the air.
Take an over-the-counter treatment to reduce bloating. Try an anti-gas treatment such as Maalox or Gas-X. The simethicone in these products will break down the gas bubbles and help the gas leave your body quicker, thus reducing bloating. Follow the directions on the package for proper dosing.
Try to move around if possible. Walk to the bathroom to get a little exercise. Also, try moving your position every half hour, even if it's just crossing your legs or flexing your feet. This will help keep the blood circulating and reduce bloating in legs and feet.
Avoid gum or hard candies. Chewing gum or sucking on hard candy causes you to swallow more air. You need to decrease the gas in your stomach so that you don't become bloated. Wait until you land before having candy or gum.