Dairy can cause or worsen constipation in some people, particularly children. The relationship isn’t universal, but for a meaningful subset of the population, removing dairy resolves chronic constipation that doesn’t respond to other treatments. The effect depends on the type of dairy, your individual biology, and how much you consume.
How Dairy Slows Your Digestion
Dairy affects gut motility through at least two distinct pathways, and neither one involves lactose intolerance in the way most people assume.
The first pathway involves a protein called A1 beta-casein, found in milk from most conventional dairy breeds. When you digest this protein, your gut enzymes release a peptide fragment called BCM-7 that binds to opioid receptors in your intestinal wall. These are the same type of receptors that prescription painkillers act on, and one of their well-known side effects is slowing gut transit. In animal studies, diets based on A1 beta-casein significantly delayed gastrointestinal transit time compared to A2 beta-casein diets. When researchers blocked the opioid receptors with a drug called naloxone, the constipating effect disappeared, confirming the mechanism.
The second pathway involves lactose fermentation. If you don’t fully digest lactose (and many adults don’t), bacteria in your colon ferment it and produce gases including methane. While most people associate lactose malabsorption with diarrhea and bloating, methane-producing gut bacteria actually slow colonic transit. This means some people with lactose malabsorption experience constipation rather than the loose stools they’d expect.
High-fat dairy products like cheese add a third factor. Fat takes longer to break down, delays motility on its own, and cheese in particular contains almost no fiber. Johns Hopkins Medicine specifically flags cheese as a constipation culprit because it combines high fat content with zero fiber, displacing foods that would keep things moving.
The Strongest Evidence Is in Children
The clearest research linking dairy to constipation comes from pediatric studies. In a study of 65 children with chronic constipation, researchers alternated two-week periods of cow’s milk and soy milk in a crossover design. During the cow’s milk phases, none of the children had adequate bowel movements. During the soy milk phases, 21 to 23 children responded with normal stool frequency. When those responding children were later re-challenged in a blinded test, every single one became constipated again on cow’s milk while none reacted to soy. That’s a striking result: for roughly one-third of the chronically constipated children in this study, cow’s milk was the direct cause.
This isn’t a fringe finding. The joint guidelines from the European and North American pediatric gastroenterology societies recommend considering a 2 to 4 week cow’s milk protein elimination trial for children with chronic constipation that resists standard treatment. Most clinical trials have used a four-week elimination period as the standard window.
Adults Are Harder to Study
The adult evidence is less clear-cut, partly because adults eat more varied diets and constipation has more overlapping causes. There’s no large adult trial as clean as the pediatric crossover studies. Still, the biological mechanisms (opioid peptides from casein, methane from lactose fermentation, high fat and low fiber in cheese) apply to adults too. If you’re an adult with unexplained chronic constipation and you consume a lot of dairy, it’s a reasonable factor to investigate.
Not All Dairy Products Are Equal
Fermented dairy products like yogurt and kefir may actually help constipation rather than cause it. The probiotic bacteria in these foods can improve gut motility. In a study of 135 women with chronic constipation, a specific probiotic yogurt increased stool frequency by 1.5 bowel movements per week compared to placebo and improved stool consistency. Other probiotic dairy drinks have been shown to reduce the occurrence of hard stools.
So the picture is more nuanced than “dairy equals constipation.” A block of cheddar and a cup of live-culture yogurt are very different foods for your gut. Milk and hard cheeses are the most commonly implicated, while fermented products with active cultures can work in the opposite direction.
How to Test Whether Dairy Is Your Problem
The most practical approach is a structured elimination trial. Remove all cow’s milk protein from your diet for four weeks. This means milk, cheese, butter, cream, and processed foods with whey or casein in the ingredients. Four weeks is the duration used in most clinical research, though some guidelines say two weeks is enough to see a change.
Track your bowel movements during the elimination period. If your constipation clearly improves, reintroduce dairy and see if the problem returns. That reintroduction step matters because it confirms the connection rather than leaving you guessing. If constipation comes back with dairy and goes away again without it, you have a clear answer.
During elimination, you can substitute with soy milk, oat milk, or other plant-based alternatives. If you drop dairy long-term, pay attention to calcium intake. Adults need 1,000 to 1,200 milligrams of calcium per day, and common non-dairy sources include fortified plant milks, leafy greens, tofu made with calcium sulfate, and canned fish with bones.
Why Some People Are Affected and Others Aren’t
The constipating effect of dairy appears to depend on individual immune and digestive responses to cow’s milk protein. In the pediatric studies, about a third of constipated children responded to dairy elimination while two-thirds did not. This suggests a specific sensitivity rather than a universal effect. Some researchers describe it as a non-classical form of cow’s milk allergy that manifests in the gut wall rather than as hives or breathing problems.
Your gut bacteria also play a role. People whose intestinal bacteria produce more methane from undigested lactose are more likely to experience constipation rather than diarrhea from dairy. This varies from person to person based on the composition of their microbiome, which is why two lactose-intolerant people can have opposite digestive symptoms from the same glass of milk.