Milk makes you gassy because your body likely isn’t producing enough of the enzyme needed to fully digest lactose, the natural sugar in milk. When lactose passes through your small intestine undigested, bacteria in your colon ferment it and produce hydrogen, carbon dioxide, and methane gas. About 65% to 70% of the global population has some degree of this enzyme decline, so if milk gives you gas, you’re actually in the majority.
What Happens Inside Your Gut
Lactose is a sugar made of two smaller sugars bonded together. To absorb it, your small intestine needs to produce an enzyme called lactase that splits that bond. When lactase levels are high, nearly all the lactose you drink gets broken down and absorbed before it travels any further.
When lactase levels are low, undigested lactose slips past the small intestine and arrives in the colon, where trillions of bacteria are waiting to feed on it. Those bacteria break down the lactose and release gases as a byproduct. More than 99% of the gas they produce is hydrogen, carbon dioxide, and methane. These gases stretch the walls of your intestine, causing bloating, cramping, and flatulence. The small remaining fraction (less than 1%) contains sulfur compounds, which account for the smell.
Why It Happens to Some People and Not Others
Most humans are genetically programmed to produce less lactase after early childhood. This is called primary lactose intolerance, and it’s the most common form worldwide. How much lactase you retain as an adult depends heavily on your ancestry.
People of East Asian, Native American, African, and Hispanic/Latino descent tend to lose lactase activity earlier and more completely. Prevalence reaches 50% to 80% in South Americans and Western Africans, and approaches nearly 100% in some East Asian and Native American populations. Meanwhile, people of Northern European descent retain lactase at much higher rates, with intolerance affecting only 2% to 15% of that group. This pattern reflects thousands of years of dairy-farming history in certain regions, which created evolutionary pressure to keep producing lactase into adulthood.
It Might Not Be Lactose at All
Not all milk-related gas comes from lactose. Two other culprits are worth knowing about.
Milk protein sensitivity. Cow’s milk contains proteins, primarily casein and whey, that can trigger immune reactions in some people. Unlike lactose intolerance (which is an enzyme problem), a milk protein allergy is an immune system response. Symptoms can overlap, including bloating and abdominal pain, but a protein allergy may also cause skin reactions, nasal congestion, or more severe digestive distress. If lactose-free milk still bothers you, protein could be the issue.
A1 versus A2 protein. Most conventional cow’s milk contains a protein variant called A1 beta-casein. During digestion, A1 releases a small peptide fragment that slows intestinal transit and appears to trigger low-level inflammation in the gut. Human studies have found that people drinking A1 milk experienced delayed digestion and looser stools compared to those drinking A2 milk, and their digestive discomfort correlated with inflammatory markers. A2 milk (now widely sold in grocery stores) comes from cows that naturally produce only the A2 variant and may be easier on your stomach even if your lactose tolerance is borderline.
How Much Lactose You Can Likely Handle
Lactose intolerance isn’t all or nothing. A meta-analysis of tolerance studies found that nearly all lactose-intolerant adults can handle about 12 grams of lactose in a single sitting without symptoms. That’s roughly the amount in one cup (240 mL) of milk. Spreading intake across the day raises the threshold to around 18 grams total.
This means you might tolerate a splash of milk in your coffee but get gassy after a bowl of cereal with a full glass. Eating dairy alongside other food also slows digestion and gives your remaining lactase more time to work, so a cheese sandwich is less likely to cause problems than drinking milk on an empty stomach. Hard cheeses like cheddar and parmesan contain very little lactose to begin with (often under 1 gram per serving), and yogurt is partially predigested by its own bacterial cultures.
What About Goat or Sheep Milk?
Goat milk contains roughly 1% less lactose than cow milk. That’s a small difference, and it’s unlikely to matter if you’re significantly intolerant. However, goat milk does have a different protein structure, and some people who react to cow milk proteins find goat milk easier to digest. If your problem is truly lactose-based, switching to goat or sheep milk won’t make a dramatic difference. Lactose-free cow’s milk, which has the lactase enzyme added during processing, is a more reliable swap.
Lactase Supplements and Timing
Over-the-counter lactase enzyme tablets can help, but timing matters. Clinical studies show they work best when taken about five minutes before consuming dairy. In controlled trials, lactase supplements reduced hydrogen gas production (a direct measure of undigested lactose reaching the colon) by 40% to 50%, and symptom scores dropped by 45% to 88%. The enzyme’s effect actually increased over the three-hour digestion window, meaning it keeps working as lactose slowly moves through your system.
The key is taking them before you eat, not after symptoms start. Once gas is already forming in the colon, the enzyme can’t reach the lactose. If you’re eating a long meal with multiple dairy courses, taking a second dose partway through can help.
Your Gut Can Adapt Over Time
One of the more surprising findings in lactose research is that regular, consistent dairy consumption can actually improve your tolerance, even without changing your genetics. When lactose reaches your colon repeatedly in small amounts, it acts like a prebiotic, selectively feeding bacteria that are efficient at processing it. Over time, your gut microbiome shifts toward a bacterial community that produces less gas from the same amount of lactose.
This adaptation doesn’t restore lactase production in the small intestine. Instead, it remodels the bacterial ecosystem downstream so that fermentation happens more quietly. The practical takeaway: if you’ve been avoiding dairy entirely and then drink a glass of milk, you’ll likely react more strongly than someone who regularly consumes small amounts. Gradually reintroducing dairy in small portions, rather than cutting it out completely, may help your gut adjust.
How Lactose Intolerance Is Diagnosed
If you want a definitive answer, the most common clinical test is a hydrogen breath test. You drink a lactose solution on an empty stomach, then breathe into a collection device at regular intervals over two to three hours. If the hydrogen level in your breath rises more than 20 parts per million above your baseline in two or more samples, you’re considered positive for lactose malabsorption. The test is noninvasive and takes about three hours, though the lactose dose used during the test can cause temporary symptoms if you are intolerant.
Many people skip formal testing and simply try an elimination approach: avoid all dairy for two to three weeks, then reintroduce it and see if symptoms return. This works well for identifying lactose as the trigger, but it won’t distinguish between lactose intolerance, a milk protein issue, or A1 sensitivity. If eliminating dairy doesn’t fully resolve your symptoms, or if lactose-free products still bother you, formal testing can help narrow down the cause.

