What Causes Excessive Gas? Diet, Habits, and Conditions

Excessive gas comes from two sources: air you swallow and gas produced by bacteria fermenting food in your large intestine. Healthy adults pass gas about 10 times a day on average, with anything up to 20 times considered normal. If you’re consistently above that range, or your gas comes with pain and bloating that disrupts your day, something specific is usually driving it.

How Your Body Produces Gas

Your digestive system creates gas through two distinct processes, and knowing which one is responsible can point you toward the right fix.

The first is swallowed air. Every time you eat, drink, or swallow saliva, small amounts of air enter your stomach. Most of this gets absorbed or burped out, but some travels into your intestines. This air is mostly nitrogen and oxygen. If you’re burping a lot or feeling bloated in your upper abdomen, swallowed air is the likely culprit.

The second process accounts for about 74% of all flatulence. When food particles, especially certain carbohydrates, reach your large intestine without being fully digested, the bacteria living there ferment them as fuel. That fermentation releases hydrogen, methane, and carbon dioxide. This is the gas responsible for most lower abdominal bloating and flatulence, and it’s the process most affected by what you eat.

Foods That Produce the Most Gas

Certain carbohydrates are poorly absorbed in the small intestine, which means they arrive in the colon intact and become a feast for gut bacteria. Researchers group these under the acronym FODMAPs: fermentable sugars including fructose (found in many fruits and honey), lactose (in dairy), fructans (in wheat, onions, and garlic), galactans (in beans and lentils), and sugar alcohols called polyols (in stone fruits and many sugar-free products).

These compounds cause gas through two mechanisms working together. First, because they aren’t well absorbed, they draw extra water into your small intestine through osmosis, which speeds everything along toward the colon. Second, once they reach the colon, bacteria ferment them rapidly, producing a surge of hydrogen, methane, and carbon dioxide. The combination of extra water and extra gas stretches the intestinal walls, causing that familiar pressure, bloating, and cramping. People with sensitive guts feel this distension far more intensely than others, even when the actual volume of gas is similar.

Common high-gas foods include beans, lentils, broccoli, cabbage, Brussels sprouts, onions, wheat-based breads and pastas, apples, pears, and dairy products. Carbonated drinks add gas directly while also delivering fermentable sugars.

Habits That Make You Swallow Air

You swallow more air than you realize during everyday activities. Eating too fast is one of the biggest contributors, because gulping food means gulping air along with it. Talking while eating has the same effect. Chewing gum, sucking on hard candy, drinking through straws, smoking, and drinking carbonated beverages all force extra air into your stomach.

Simple fixes can make a noticeable difference: chew each bite thoroughly and swallow before taking the next one, sip from a glass instead of a straw, and save conversation for between bites rather than during them. If you chew gum regularly and deal with persistent bloating, cutting it out for a week is a worthwhile experiment.

Lactose and Fructose Intolerance

When your body lacks the enzymes to break down a particular sugar, that sugar passes undigested into the colon where bacteria ferment it and produce gas. Lactose intolerance is the most common version. Your small intestine normally produces lactase to split lactose into simpler sugars for absorption, but many adults produce less lactase as they age. The undigested lactose reaches the colon, gets fermented, and generates hydrogen and methane.

Fructose intolerance works similarly. Your small intestine can only absorb a limited amount of fructose at once. When you exceed that capacity, whether from fruit juice, honey, high-fructose corn syrup, or certain fruits, the excess fructose travels to the colon and gets fermented. Both conditions can be identified through breath tests that measure hydrogen and methane levels after you drink a solution of the suspect sugar. The fermentation byproducts from fructose and lactose are chemically similar, so the symptoms (gas, bloating, cramping, sometimes diarrhea) overlap heavily.

Small Intestinal Bacterial Overgrowth

Your small intestine normally hosts very few bacteria, typically fewer than 1,000 organisms per milliliter, because stomach acid and the wave-like muscle contractions that push food forward keep bacterial populations low. When those protective mechanisms fail, bacteria from the colon can colonize the small intestine in large numbers. This is small intestinal bacterial overgrowth, or SIBO.

With SIBO, fermentation starts happening much earlier in the digestive process, in the small intestine rather than just the colon. Food that would normally be absorbed before reaching bacteria instead gets fermented in transit, producing gas higher up in the gut. This causes bloating, excessive flatulence, abdominal pain, and sometimes diarrhea or nutrient malabsorption. SIBO is diagnosed through a breath test: a rise of more than 20 parts per million in hydrogen within 90 minutes, or a methane level above 10 parts per million, indicates the condition.

Risk factors include anything that slows gut motility (such as diabetes or certain medications), low stomach acid production, and structural abnormalities in the intestine.

Slow Digestion and Gastroparesis

When food moves through your digestive tract too slowly, bacteria have more time to ferment it, producing more gas. Gastroparesis is the most recognized form of this problem. The stomach muscles don’t contract properly, so food sits in the stomach far longer than it should before entering the small intestine. The vagus nerve, which tells the stomach muscles when to contract, is often damaged in people with gastroparesis, frequently as a complication of diabetes.

Symptoms include persistent bloating, nausea, vomiting, and upper abdominal pain. In severe cases, undigested food can harden into a solid mass in the stomach. Even without full gastroparesis, generally sluggish gut motility from medications, low physical activity, or neurological conditions can slow transit enough to increase gas production noticeably.

IBS and Celiac Disease

Irritable bowel syndrome is a functional disorder, meaning the gut looks physically normal but doesn’t work properly. People with IBS have heightened sensitivity to the normal stretching that gas causes in the intestines. The same volume of gas that a healthy person wouldn’t notice can cause significant pain and bloating in someone with IBS. This is why a low-FODMAP diet, which reduces the raw material available for bacterial fermentation, often brings relief.

Celiac disease causes gas through a different mechanism. The immune system attacks the lining of the small intestine in response to gluten, damaging the tissue that absorbs nutrients. When nutrients aren’t absorbed properly, they pass into the colon and get fermented. More than a third of people with celiac disease experience IBS-like symptoms including excessive gas, which is one reason the two conditions are frequently confused. If reducing FODMAPs helps your symptoms but doesn’t resolve them, celiac disease is worth ruling out through blood testing.

Medications That Increase Gas

Several common drug classes list gas and bloating as side effects. Non-steroidal anti-inflammatory drugs (NSAIDs) like ibuprofen can irritate the gut lining and alter digestion. Statins, prescribed for cholesterol, cause gas in some people. Certain laxatives, particularly those containing lactulose or fiber supplements, work by drawing water into the intestine or adding bulk, both of which can increase fermentation. Diabetes medications that slow carbohydrate absorption are particularly well known for causing flatulence, because they deliberately send undigested sugars to the colon. If your gas problem started around the same time as a new medication, that connection is worth exploring with whoever prescribed it.

Warning Signs Beyond Normal Gas

Most excessive gas is uncomfortable but not dangerous. Certain accompanying symptoms, however, suggest something more serious is going on. Blood in your stool, unexplained weight loss, a persistent change in how often you have bowel movements or what they look like, and ongoing nausea or vomiting all warrant a medical evaluation. Prolonged abdominal pain or chest pain call for immediate attention, since chest pain from trapped gas can mimic cardiac symptoms and the distinction matters.