Gas in your digestive system is part of the normal process of digestion. Getting rid of excess gas, either by burping or passing gas (flatus), also is normal. Gas pain may occur if gas is trapped or not moving well through your digestive system.
An increase in gas or gas pain may result from eating foods that are more likely to produce gas. Often, relatively simple changes in eating habits can lessen bothersome gas.
Certain digestive system disorders, such as irritable bowel syndrome or celiac disease, may cause — in addition to other signs and symptoms — an increase in gas or gas pain.
Signs or symptoms of gas or gas pains include:
- Passing gas
- Pain, cramps or a knotted feeling in your abdomen
- A feeling of fullness or pressure in your abdomen (bloating)
- An observable increase in the size of your abdomen (distention)
Burping is normal, particularly during or right after a meal. Most people pass gas up to 20 times a day. Therefore, while having gas may be inconvenient or embarrassing, burping and passing gas are rarely by them is a sign of a medical problem.
When to see a doctor
Talk to your doctor if your gas or gas pains are so persistent or severe that they interfere with your ability to function well in daily life. Gas or gas pains accompanied by other signs or symptoms may indicate more-serious conditions. See your doctor if you experience any of these additional signs or symptoms:
- Bloody stools
- Change in consistency of stools
- Change in frequency of bowel movements
- Weight loss
- Constipation or diarrhea
- Persistent or recurrent nausea or vomiting
Seek immediate care if you experience:
- Prolonged abdominal pain
- Chest pain
Gas in your stomach is primarily caused by swallowing air when you eat or drink. Most stomach gas is released when you burp.
Gas forms in your large intestine (colon) when bacteria ferment carbohydrates — fiber, some starches and some sugars — that aren’t digested in your small intestine. Bacteria also consume some of that gas, but the remaining gas is released when you pass gas from your anus.
High-fiber foods that commonly cause gas include:
- Beans and peas (legumes)
- Whole grains
While high-fiber foods increase gas production, fiber is essential for keeping your digestive tract in good working order and regulating blood sugar and cholesterol levels.
Other dietary factors
Other dietary factors that can contribute to increased gas in the digestive system include the following:
- Carbonated beverages, such as soda and beer, increase stomach gas.
- Eating habits, such as eating too quickly, drinking through a straw, chewing gum, sucking on candies or talking while chewing results in swallowing more air.
- Fiber supplements containing psyllium, such as Metamucil, may increase colon gas.
- Sugar substitutes, or artificial sweeteners, such as sorbitol, mannitol and xylitol, found in some sugar-free foods and beverages may cause excess colon gas.
Medical conditions that may increase intestinal gas, bloating or gas pain include the following:
- Chronic intestinal disease. Excess gas is often a symptom of chronic intestinal conditions, such as diverticulitis, ulcerative colitis or Crohn’s disease.
- Small bowel bacterial overgrowth. An increase or change in the bacteria in the small intestine can cause excess gas, diarrhea and weight loss.
- Food intolerances. Gas or bloating may occur if your digestive system can’t break down and absorb certain foods, such as the sugar in dairy products (lactose) or proteins such as gluten in wheat and other grains.
- Constipation may make it difficult to pass gas.
Your doctor will likely determine what’s causing your gas and gas pains based on:
- Your medical history
- A review of your dietary habits
- A physical exam
During the physical exam, your doctor may touch your abdomen to determine if there is any tenderness and if anything feels abnormal. Listening to the sound of your abdomen with a stethoscope can help your doctor determine how well your digestive tract is working.
Depending on your exam and presence of other signs and symptoms — such as weight loss, blood in your stool or diarrhea — your doctor may order additional diagnostic tests.
If your gas pains are caused by another health problem, treating the underlying condition may offer relief. Otherwise, bothersome gas is generally treated with dietary measures, lifestyle modifications or over-the-counter medications. Although the solution isn’t the same for everyone, with a little trial and error, most people are able to find some relief.
Dietary changes may help reduce the amount of gas your body produces or help gas move more quickly through your system. Keeping a diary of your diet and gas symptoms will help your doctor and you determine the best options for changes in your diet. You may need to eliminate some items or eat smaller portions of others.
Reducing or eliminating the following dietary factors may improve gas symptoms:
- High-fiber foods. High-fiber foods that can cause gas include beans, onions, broccoli, Brussels sprouts, cabbage, cauliflower, artichokes, asparagus, pears, apples, peaches, prunes, whole wheat and bran. You can experiment with which foods affect you most. You may avoid high-fiber foods for a couple of weeks and gradually add them back. Talk to your doctor to ensure you maintain a healthy intake of dietary fiber.
- Reducing dairy products from your diet can lessen symptoms. You also may try dairy products that are lactose-free or take milk products supplemented with lactase to help with digestion.
- Sugar substitutes. Eliminate or reduce sugar substitutes, or try a different substitute.
- Fried or fatty foods. Dietary fat delays the clearance of gas from the intestines. Cutting back on fried or fatty foods may reduce symptoms.
- Carbonated beverages. Avoid or reduce your intake of carbonated beverages.
- Fiber supplements. If you use a fiber supplement, talk to your doctor about the amount and type of supplement that is best for you.
- To help prevent constipation, drink water with your meals, throughout the day and with fiber supplements.
Lifestyle and home remedies
Making lifestyle changes may help reduce or relieve excess gas and gas pain.
- Try smaller portions. Many of the foods that can cause gas are part of a healthy diet. Try eating smaller portions of problem foods to see if your body can handle a smaller portion without creating excess gas.
- Eat slowly, chew your food thoroughly and don’t gulp. If you have a hard time slowing down, put down your fork between each bite.
- Avoid chewing gum, sucking on hard candies and drinking through a straw. These activities can cause you to swallow more air.
- Check your dentures. Poorly fitting dentures can cause you to swallow excess air when you eat and drink. See your dentist if they aren’t fitting correctly.
- Don’t smoke. Cigarette smoking can increase the amount of air you swallow. Talk to your doctor if you need help quitting.
- Regular exercise reduces the risk of constipation, which can prevent the release of gas from your colon.
If the odor from passing gas concerns you, limiting foods high in sulfur-containing compounds — such as broccoli, Brussels sprouts, cabbage, cauliflower, beer and foods high in protein — may reduce distinctive odors. Pads, underwear and cushions containing charcoal also may help absorb unpleasant odors from passing gas.