For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Gas and flatulence

Flatulence is gas that builds up in the gut and passes out through the anus; it is normal, but too much can cause bloating and discomfort.

Overview

Flatulence means having gas in your digestive tract and passing it out through your bottom (the anus). The gas itself is called flatus. Many people call it passing wind or farting. Burping (belching) is the other way gas leaves the body, through the mouth.

Gas is a normal part of digestion. Everyone has it, and most healthy adults pass gas somewhere around 10 to 20 times a day, sometimes more. It usually is not a sign of illness. But for some people gas becomes frequent, smelly, noisy or uncomfortable, and it can cause embarrassment or worry. Gas can also come with bloating (a full, tight feeling in the belly) or crampy pain.

The good news is that most gas problems can be eased with changes to what and how you eat. In a smaller number of people, extra gas is a clue to another digestive problem, such as lactose intolerance or irritable bowel syndrome, that can be found and treated.

Symptoms

Gas can cause:

  • Passing gas more often than usual
  • Gas that smells stronger than usual
  • Burping
  • Bloating, or a feeling of fullness or pressure in the belly
  • A swollen-looking belly (distension), often worse later in the day
  • Crampy or sharp pains that move around the belly and ease after passing gas or having a bowel movement
  • Rumbling or gurgling sounds from the gut

Gas pain can sometimes be felt high on the left or right side of the belly, under the ribs, and can be quite sharp. It usually comes and goes and improves when gas is passed.

Causes

Gas in your gut comes from two main sources.

Swallowed air

Everyone swallows small amounts of air when eating and drinking. You swallow more air if you:

  • Eat or drink quickly
  • Chew gum or suck on hard candies
  • Drink fizzy (carbonated) drinks or use a straw
  • Smoke
  • Have dentures that do not fit well
  • Feel anxious, which can lead to swallowing air without noticing

Most swallowed air comes back up as burps, but some moves further down the gut.

Gas made by gut bacteria

Your large intestine (colon) is home to trillions of bacteria. When some carbohydrates (sugars, starches and fibre) are not fully digested in the small intestine, they reach the colon, where bacteria break them down. This process is called fermentation, and it produces gases such as hydrogen, carbon dioxide and, in some people, methane. Small amounts of sulphur-containing gases give flatus its smell.

Foods that commonly cause gas include:

  • Beans, lentils and chickpeas
  • Vegetables such as cabbage, broccoli, cauliflower, Brussels sprouts, onions and garlic
  • Some fruits, such as apples, pears and dried fruit
  • Whole grains and bran
  • Milk and other dairy foods, in people who have trouble digesting lactose (milk sugar)
  • Sugar-free products sweetened with sorbitol, mannitol or xylitol
  • Foods and drinks high in fructose, a natural fruit sugar also used to sweeten many drinks

Health conditions that can cause extra gas

  • Lactose intolerance: the body does not make enough lactase, the enzyme that digests milk sugar.
  • Irritable bowel syndrome (IBS): a common condition where the gut is extra sensitive, causing pain, bloating and changes in bowel habits.
  • Constipation: stool that stays longer in the colon gives bacteria more time to make gas.
  • Celiac disease: an immune reaction to gluten that damages the small intestine.
  • Small intestinal bacterial overgrowth (SIBO): too many bacteria in the small intestine.
  • Other problems that stop food from being absorbed well, such as some pancreas conditions.

Some medicines and supplements, such as certain fibre supplements, some diabetes medicines and some antibiotics, can also increase gas.

Risk factors

You may notice more gas if you:

  • Eat a lot of high-fibre foods, or suddenly add more fibre to your diet
  • Eat many foods with sugar alcohols or high fructose
  • Eat fast, chew gum often or drink a lot of fizzy drinks
  • Have a digestive condition such as IBS, lactose intolerance or constipation
  • Have recently changed your diet, for example by becoming vegetarian

Some people are simply more aware of normal amounts of gas, especially those with a sensitive gut.

Diagnosis

Most people with gas do not need tests. Your doctor or nurse practitioner will usually start by asking about:

  • Your symptoms, how long you have had them and what makes them better or worse
  • What you eat and drink
  • Your bowel habits, including any constipation or diarrhea
  • Any weight loss, blood in your stool or other warning signs
  • Medicines and supplements you take

They may also examine your belly. Keeping a food and symptom diary for a week or two can help you and your clinician spot patterns.

If another condition is suspected, tests may include:

  • Blood tests, for example to check for celiac disease or anemia (low red blood cells)
  • Breath tests, which measure gases in your breath after you drink a sugar solution, to look for lactose or fructose intolerance or bacterial overgrowth
  • Stool tests, to look for infection, inflammation or hidden blood
  • Colonoscopy or other scope tests if you have warning signs or are due for bowel cancer screening

A short trial of avoiding a suspected food, such as dairy, can also help show whether it is the cause.

Treatment and self-care

Treatment depends on the cause. For most people, simple changes help a lot.

Changes to eating habits

  • Eat slowly and chew your food well.
  • Cut down on chewing gum, hard candies and fizzy drinks.
  • Avoid drinking through a straw.
  • If you smoke, getting help to quit will also reduce swallowed air.

Changes to what you eat

  • Notice which foods seem to cause the most gas and try eating less of them, rather than cutting out whole food groups.
  • If you are adding fibre for health, increase it slowly over a few weeks so your gut can adjust, and drink plenty of water.
  • Check labels for sorbitol, mannitol and xylitol in sugar-free products.
  • Soaking dried beans and discarding the soaking water, or rinsing canned beans, may help some people.
  • If dairy seems to be a problem, try lactose-free milk, hard cheeses or yogurt, which are often better tolerated.

If you have IBS, your clinician or a registered dietitian may suggest a low-FODMAP diet. FODMAPs are a group of carbohydrates that are easily fermented by gut bacteria. This diet is done in stages, for a limited time, with foods added back to find your personal triggers. It is best done with a dietitian's help so you still get the nutrition you need.

Staying active

Regular physical activity, such as walking, helps move gas through the gut and can ease bloating and constipation.

Medicines and products you can buy

  • Simethicone helps small gas bubbles join together so they pass more easily. It may ease bloating for some people.
  • Alpha-galactosidase is an enzyme product taken with the first bite of beans or certain vegetables to help break down the sugars that cause gas.
  • Lactase enzyme tablets or drops help digest the lactose in dairy foods if you are lactose intolerant.
  • Activated charcoal is sometimes used for gas and odour, but the evidence that it works is limited. It can stop other medicines from being absorbed, so ask a pharmacist before using it if you take any regular medicine.

Check with a pharmacist or your clinician before trying any product, especially if you are pregnant, take other medicines or have a health condition. If gas is caused by another condition, such as constipation, celiac disease or IBS, treating that condition usually helps the gas too.

Living with gas

Gas can feel embarrassing, but it is something every person's body does. A few tips:

  • Don't hold gas in for long periods, as this can increase bloating and discomfort.
  • Give yourself time and privacy for regular bowel movements.
  • Plan ahead before events, for example by choosing less gassy foods beforehand.
  • Remember that stress can make gut symptoms worse. Relaxation, good sleep and regular meals can help.

Outlook

Gas on its own is harmless and does not damage the body. Most people find that a few changes to eating habits bring real relief within days to weeks. When an underlying condition is the cause, symptoms usually improve once it is managed.

Prevention

You cannot stop gas completely, and you would not want to, since it comes partly from the healthy work of your gut bacteria. But you can reduce excess gas by eating slowly, limiting fizzy drinks and gum, adding fibre gradually, staying active and learning which foods affect you most.

In the United States

Simethicone, alpha-galactosidase, lactase and activated charcoal products are sold over the counter in the US. The US Preventive Services Task Force recommends colorectal cancer screening for adults starting at age 45; ask your clinician which test is right for you.

When to get medical help

See your doctor or nurse practitioner if:

  • Gas or bloating is new, getting worse or does not settle with simple changes
  • You have ongoing changes in your bowel habits, such as diarrhea or constipation
  • You are losing weight without trying
  • You see blood in your stool, or your stool is black
  • You feel very tired or have a poor appetite
  • You are over 50 (or have a family history of bowel cancer) and have new gut symptoms
  • You often feel full quickly or have bloating that does not go away, especially if you are a woman over 50

Get emergency help right away (go to an emergency department or call emergency services) if you have:

  • Severe or constant belly pain, or pain that gets worse quickly
  • A swollen, hard belly with vomiting, especially if you cannot pass gas or stool
  • Vomiting blood or material that looks like coffee grounds
  • Heavy bleeding from the bottom
  • Belly pain with a high fever
  • Chest pain, shortness of breath or pain spreading to the arm, jaw or back, which can be mistaken for gas but may be a heart problem

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Flatulence. meshb.nlm.nih.gov
  2. MedlinePlus: Gas. medlineplus.gov/gas.html
  3. NIDDK: Gas in the digestive tract. niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract
  4. NHS: Flatulence. nhs.uk/conditions/flatulence/
  5. NICE: Irritable bowel syndrome in adults: diagnosis and management (CG61). nice.org.uk/guidance/cg61