Show Me The Poo Going Deeper #009 title banner showing microbial fermentation in a colon with hydrogen, carbon dioxide, and methane gas.
Going Deeper #009: How Does Your Gut Make Gas? Fermentation with hydrogen, carbon dioxide and methane.

Going Deeper #009: How Does Your Gut Make Gas? The Science of Fermentation, Methane & Bloating

Your intestines are home to a remarkable chemical collaboration. Microbes break down food that escaped digestion, release gases as byproducts, and sometimes use one another’s gases as fuel. Yet two people can eat the same beans, produce intestinal gas, and feel very different afterward. What is actually happening down there?

Quick Answer: Where Does Intestinal Gas Come From?

Much intestinal gas comes from gut microbes fermenting food components—especially carbohydrates—that were not fully digested or absorbed earlier. This activity can release hydrogen (H₂) and carbon dioxide (CO₂). Other microorganisms can consume hydrogen and produce methane (CH₄) or other products. Swallowed air and gases moving between blood and gut contribute too. Crucially, feeling bloated does not necessarily mean you have an unusually large amount of gas.

For everyday triggers and ways to manage discomfort, start with Bloated Again? What Your Gut’s Trying to Tell You. Here we’re focusing on the actual gas-producing chemistry and how researchers study it.

First, Not All Gas Comes From Bacteria

Some gas enters the digestive tract when you swallow air with food, beverages, or repeated swallowing. Some carbon dioxide forms during digestive chemical reactions; gases can also diffuse between the bloodstream and intestinal contents. Burping removes much swallowed air before it travels farther.

But the colon is a major gas-production environment because it receives substances that human digestive enzymes did not completely process. Microbial fermentation converts some of this material into metabolites that the body may use, along with gases. Different gas sources and different exit routes make a simple ‘number of farts’ a poor measurement of microbial activity.

The Colon Is a Fermentation Laboratory

Humans cannot digest every type of dietary carbohydrate. Certain fibers, resistant starches, and other carbohydrates reach microbes in the large intestine. Fermenting microbes break down these substrates without oxygen and can produce short-chain fatty acids, including acetate, propionate, and butyrate, alongside gases such as hydrogen and carbon dioxide.

These fermentation products are not simply waste. Short-chain fatty acids can help support colonic metabolism and are part of the normal relationship between diet and gut microbes. So some gas generation is a byproduct of a useful process—not proof that your microbiome is unhealthy.

Our Going Deeper #003: Can Fiber Actually Change Your Gut Microbiome? explains how different fibers influence microbial communities. Here, the question is what those microbes produce as they metabolize food.

Hydrogen and Carbon Dioxide: The First Gas Products

Many microbial pathways release hydrogen (H₂) as electrons are transferred during fermentation. Carbon dioxide (CO₂) is also produced by various microbial and digestive reactions. The quantity formed depends on the food reaching the colon, the particular organisms present, and how the microbial community processes one another’s metabolites.

Fermentable carbohydrates do not all behave alike. The amount eaten, the food matrix, transit, and the activity of gut microbes can change the resulting gas pattern. This helps explain why a rapid increase in certain fibers may temporarily increase gas even when the fiber itself has nutritional benefits.

Five-step illustration showing fiber fermentation by gut microbes, hydrogen and carbon dioxide formation, methane formation by archaea, and the difference between normal gas release and bloating.
How fermenting microbes produce hydrogen and carbon dioxide, and how methanogenic archaea use hydrogen. Gas is normal; bloating also depends on sensitivity and gas movement. Explore original artwork.

Gas Producers and Gas Consumers Work Together

A key detail is that some microorganisms use hydrogen made by others. Researchers often call this hydrogen disposal. Important groups include methanogens, sulfate-reducing bacteria, and organisms that produce acetate from hydrogen and carbon dioxide.

This cross-feeding means a simple measurement of hydrogen alone does not tell the full story. Low measured hydrogen could reflect less production, but it could also reflect more hydrogen consumption by other microbes. The relationships are complex and cannot be inferred from a person’s symptoms or from a stool photo.

Methane: A Different Kind of Microbial Specialist

Methane is produced mainly by methanogenic archaea—not ordinary bacteria. These microbes can use hydrogen and carbon dioxide to generate methane. Their abundance and activity differ greatly among people, so methane is detected more readily in some people than in others.

Research has repeatedly found an association between methane detected on breath tests and constipation. A 2011 systematic review and meta-analysis pooled nine studies and reported a greater likelihood of constipation among methane-positive participants. Subsequent research has continued to explore this connection.

However, association is not the same as proving methane directly slows every person’s colon. Methane production, microbial communities, medications, motility, and constipation may interact. Nor does a positive methane test automatically establish one cause or indicate that someone needs antibiotics.

For an explanation of colonic contractions and slow transit, see Going Deeper #007: Why Does Your Colon Move So Slowly?.

Why Does Some Gas Smell Worse?

The major intestinal gases—nitrogen, oxygen, carbon dioxide, hydrogen, and methane—are generally odorless. Much of the recognizable odor associated with flatus comes from small quantities of sulfur-containing compounds, which can arise through microbial metabolism of sulfur-containing dietary and intestinal substances.

A tiny amount of an odor-active compound can make gas smell strong without representing an especially large gas volume. Smell, bloating, and total gas output therefore answer different questions. We’ll explore microbial sulfur chemistry in more detail in a future Going Deeper article about stool odor.

To explore the related but distinct chemistry of stool odor, see Going Deeper #010: What Makes Poop Smell?. It examines sulfur-containing molecules, microbial metabolism, and why flatus chemistry is not identical to the odor of feces.

Why Bloating Is Not the Same as Excess Gas

Bloating describes an uncomfortable sensation of fullness, pressure, or swelling. Distension describes a measurable increase in abdominal size. Someone can experience one without the other. Neither necessarily means the intestine contains dramatically more gas than usual.

Studies of intestinal gas dynamics show that symptoms may reflect how well gas moves and is cleared, as well as how sensitively the nervous system responds to distension. In disorders of gut–brain interaction, altered sensation can make normal levels of intestinal filling feel uncomfortable. Changes in abdominal wall and diaphragm coordination can contribute to visible distension.

That means the intuitive equation ‘more bloating = more gas produced’ often fails. Researchers consider production, gas consumption, movement, evacuation, and the sensory response together rather than assuming a single mechanism.

The Gut–Brain Connection Changes How Gas Feels

The intestinal wall contains sensory pathways that respond to stretching and other stimuli. Signals travel through local enteric circuits and the wider nervous system. Two people exposed to similar intestinal distension can experience very different sensations of discomfort or urgency.

Stress, attention, previous gut symptoms, and underlying disorders may influence sensitivity and the way the brain interprets intestinal signals. This does not mean bloating is imagined. It means a real physiological sensation can depend on both the gut’s contents and the nervous system processing them.

We explain these signaling pathways more broadly in Going Deeper #001: The Gut–Brain Axis.

What Do Hydrogen and Methane Breath Tests Tell Us?

After a person consumes a specific test substrate, microbes may produce hydrogen or methane that is absorbed into blood, carried to the lungs, and exhaled. Breath tests measure those gases at intervals. They are used in selected clinical investigations, including some questions about carbohydrate malabsorption and intestinal methanogen overgrowth.

But breath tests have important limitations. Results depend on substrate selection, sampling, preparation, transit, and whether the relevant microbial pathways produce the measured gases. The European consensus guideline cautions that interpretation must consider clinical context and that false-positive or false-negative results are possible.

An online breath-test result, an increase in gas after a meal, or a single symptom cannot reliably identify a microbial species or diagnose an overgrowth condition. Anyone considering testing should discuss whether the test is appropriate and how the results would change care.

Should You Avoid Foods That Produce Gas?

Not automatically. Beans, certain vegetables, whole grains, and fermentable fibers may increase gas because they provide substrates for microbes. Some of those foods also offer fiber and other benefits. Eliminating every fermentable food can make a diet unnecessarily restrictive.

When gas or bloating is troublesome, it can help to consider serving size, the pace of dietary changes, constipation, and individual food tolerance. A structured, time-limited dietary approach may sometimes be used for persistent symptoms with professional guidance, but it is not a universal microbiome ‘reset.’

Our Soluble Fiber Explained guide covers different fiber types, and Probiotics, Gas, and Bloating addresses symptoms when starting supplements.

When Gas or Bloating Deserves a Medical Evaluation

Occasional gas is normal. Persistent or worsening bloating, significant abdominal pain, unexplained weight loss, ongoing vomiting, blood in stool, or major changes in bowel habits should be evaluated by a healthcare professional. Severe abdominal swelling with pain, vomiting, or inability to pass gas or stool can signal a more urgent problem.

Do not assume that persistent symptoms are caused solely by a ‘bad microbiome,’ food sensitivity, or methane. Identifying the pattern matters more than assigning a trendy label.

The Bottom Line

Your intestines are a small chemical ecosystem. Fermenting microbes make hydrogen and carbon dioxide, while other organisms consume hydrogen and sometimes generate methane or sulfur-containing compounds. The gases are constantly produced, transformed, absorbed, moved, and released. Whether you feel bloated depends on much more than how much gas is made.

The most useful question is often not ‘How do I stop all gas?’ but ‘Why is my gut handling or sensing gas differently right now?’ Understanding that distinction leads to more realistic explanations—and helps avoid blaming every symptom on fermentation.

Sources & Further Reading

Five peer-reviewed sources support this article: an intestinal-gas review, a review of hydrogen-consuming microbes, research on gas dynamics, a European clinical breath-test guideline, and a systematic review of methane and constipation.

  • Kalantar-Zadeh K, Berean KJ, Burgell RE, Muir JG, Gibson PR. (2019). Intestinal gases: influence on gut disorders and the role of dietary manipulations. Nature Reviews Gastroenterology & Hepatology. DOI: 10.1038/s41575-019-0193-z.
  • Nakamura N, Lin HC, McSweeney CS, Mackie RI, Gaskins HR. (2010). Mechanisms of microbial hydrogen disposal in the human colon and implications for health and disease. Annual Review of Food Science and Technology. DOI: 10.1146/annurev.food.102308.124101.
  • Azpiroz F. (2005). Intestinal gas dynamics: mechanisms and clinical relevance. Gut. DOI: 10.1136/gut.2004.048868.
  • Hammer HF, et al. (2022). European guideline on indications, performance, and clinical impact of hydrogen and methane breath tests in adult and pediatric patients. United European Gastroenterology Journal. DOI: 10.1002/ueg2.12133.
  • Kunkel D, Basseri RJ, Makhani MD, Chong K, Chang C, Pimentel M. (2011). Methane on breath testing is associated with constipation: a systematic review and meta-analysis. Digestive Diseases and Sciences. DOI: 10.1007/s10620-011-1590-5.

About the Author: Brian Wood is the founder and editor of Show Me The Poo. He holds a master’s degree in Ayurveda and Integrative Health and focuses on communicating digestive-health science in approachable language. About Show Me The Poo.

Show Me The Poo provides general educational information, not personalized medical advice or a diagnosis. Consult a qualified healthcare professional about persistent or concerning symptoms.