Most foods blamed for causing gas in breastfed babies, including broccoli, cabbage, beans, and onions, do not actually pass gas-producing compounds into breast milk. The gas these foods generate stays in the mother’s digestive tract. The real dietary culprit behind fussiness in a small fraction of breastfed infants is food protein, especially cow’s milk protein, which does cross into breast milk in trace amounts. The gap between what mothers are told to avoid and what the evidence actually shows is surprisingly wide.
Why “Gassy” Vegetables Do Not Make Your Baby Gassy
The advice to skip cabbage, cauliflower, broccoli, and beans while breastfeeding is widespread and handed down in families, in online forums, and sometimes by healthcare providers. The logic sounds reasonable: these foods make you gassy, so they must make your baby gassy too. But the mechanism does not work that way. When you eat broccoli, bacteria in your colon ferment the fiber and produce gas locally in your gut. That gas is not absorbed into your bloodstream, does not enter your mammary glands, and does not end up in your milk. A review in the Korean Journal of Pediatrics put it plainly: eating gassy foods can cause gas in the mother’s bowel, but gas and fiber do not pass into breast milk.1PubMed Central. Maternal food restrictions during breastfeeding
This is one of the most persistent myths in breastfeeding culture. The confusion likely arises because infant gas and fussiness are so common that they inevitably overlap with whatever the mother ate a few hours earlier. You eat a bean soup, your baby fusses that evening, and the connection feels obvious. But the timing is coincidental more often than it is causal. A qualitative study of breastfeeding women in Canada found that mothers broadly believed their diet influenced their infant’s cry-fuss behavior, even though the scientific evidence generally pointed in the other direction.2PubMed Central. “Something is wrong with your milk”: Qualitative study of maternal dietary restriction and beliefs about infant colic
The One Food That Genuinely Matters: Cow’s Milk
While gas from vegetables stays in your gut, proteins from the food you eat do enter your bloodstream and can appear in your breast milk. The most studied example is cow’s milk protein. When a breastfeeding mother drinks cow’s milk or eats dairy, fragments of bovine proteins, particularly beta-lactoglobulin (a whey protein), show up in her breast milk. Researchers have identified cow’s milk-derived peptides in breast milk samples and confirmed that these fragments disappear when the mother follows a milk-free diet.3PubMed Central. Excretion of Dietary Cow’s Milk Derived Peptides Into Breast Milk
For the vast majority of breastfed babies, these tiny protein fragments are harmless. But in infants who are already sensitized or allergic, even trace amounts can trigger symptoms. In a classic double-blind crossover trial, mothers of breastfed infants with colic were placed on a cow’s milk-free diet. Colic disappeared in about half the infants, and when the mothers were given capsules containing cow’s milk whey protein without knowing it, nine out of ten infants in the blinded portion of the study developed colic again.4Pediatrics. Cow’s Milk Proteins Cause Infantile Colic in Breast-Fed Infants: A Double-Blind Crossover Study That is a striking result, but it applies to a specific subgroup: infants whose colic is driven by cow’s milk protein sensitivity. Across the broader population of breastfed babies, reproducible clinical reactions to cow’s milk protein in breast milk occur in roughly half a percent of infants.5Pediatric Allergy and Immunology. Cow’s milk protein allergy and intolerance in infancy Some clinical, epidemiological and immunological aspects
Cow’s milk allergy in breastfed babies can show up as excessive gas, colic, bloody stools, eczema flares, vomiting, or persistent fussiness. If your baby’s gas comes with other symptoms like skin rashes, mucus or blood in the stool, or persistent vomiting, cow’s milk protein is worth investigating with your pediatrician before you start eliminating random vegetables.6PubMed Central. Cow’s Milk Allergy in Breastfed Infants: What We Need to Know About Mechanisms, Management, and Maternal Role
Other Food Proteins That Can Reach Your Baby
Cow’s milk gets the most attention because dairy is so common in Western diets, but it is not the only food whose proteins have been linked to allergic reactions in breastfed infants. Research has documented both immune-mediated and non-immune gastrointestinal reactions in exclusively breastfed babies tied to maternal consumption of egg, peanut, and fish. The proteins from these foods can appear in breast milk in amounts sufficient to trigger clinical reactions in infants who are already sensitized.1PubMed Central. Maternal food restrictions during breastfeeding Symptoms range from eczema flares and gastrointestinal discomfort to, in rare and serious cases, anaphylaxis.
That said, reactions to these foods through breast milk are uncommon, and the pattern varies from baby to baby. What bothers one infant may be completely fine for another. Blanket elimination of eggs, fish, and peanuts is not recommended for all breastfeeding mothers, and doing so unnecessarily can create nutritional gaps. The evidence supports targeted elimination only when a specific food has been identified as a trigger for a specific infant, ideally with medical guidance.
Spicy Foods, Garlic, and Strong Flavors
Garlic, chili, curry, and other pungent ingredients are frequently on the “avoid” list for nursing mothers, particularly in cultures where bland postpartum diets are traditional. The flavor compounds from these foods do alter the smell and taste of breast milk, and researchers have confirmed this in controlled studies. But changing the flavor of the milk is not the same as causing digestive problems. The same Korean Journal of Pediatrics review that debunked the gassy-vegetable myth found that while strong flavors like garlic can change the smell and taste of breast milk, this does not usually make infants fussier.1PubMed Central. Maternal food restrictions during breastfeeding
Some babies may temporarily nurse differently when the milk tastes unfamiliar, sometimes pulling off or seeming hesitant, and this can cause them to swallow more air during feeding. That extra swallowed air could produce gas, but the spicy food itself is not the cause. In fact, there is some evidence that exposure to varied flavors through breast milk may help infants accept a wider range of foods later during weaning. So unless your baby consistently reacts poorly after you eat a specific spice, avoiding it across the board is unnecessary.
Caffeine and Chocolate
Caffeine does transfer into breast milk, though at relatively low levels. A systematic review of maternal caffeine consumption and its effects on breastfed infants found that coffee and chocolate intake was associated with increased infant colic and worsening of atopic dermatitis in some studies. However, the reviewers noted that whether caffeine was actually the causal ingredient remained questionable.7PubMed. Effects of maternal caffeine consumption on the breastfed child: a systematic review Chocolate, for instance, contains not just caffeine but also theobromine, sugar, and dairy, any of which could be contributing to the observed effects.
Moderate caffeine intake, generally considered to be about two to three cups of coffee a day, is not thought to cause problems for most breastfed babies. Newborns metabolize caffeine much more slowly than adults, so high maternal intake could theoretically lead to accumulation and irritability. If your baby seems unusually jittery or has trouble sleeping and you are drinking large amounts of coffee, it is worth cutting back to see if things improve. But for the average coffee drinker, this is unlikely to be the explanation for infant gas.
Why Breastfed Babies Are Gassy in the First Place
Here is the part that often gets lost in the conversation about maternal diet: breastfed babies are gassy by nature, regardless of what their mothers eat. There are built-in physiological reasons for this.
Human breast milk contains large quantities of oligosaccharides, complex sugars that are one of the main components of milk by volume. These oligosaccharides are only partially digested in the baby’s small intestine. The undigested portion reaches the colon, where it feeds beneficial bacteria, particularly bifidobacteria and lactobacilli.8Journal of Clinical Gastroenterology. Probiotics, Prebiotics, and New Foods: The First Prebiotics in Humans: Human Milk Oligosaccharides This bacterial fermentation is healthy and important for developing the infant’s immune system and gut microbiome, but it produces gas as a byproduct. In other words, gas in a breastfed baby is a sign that the milk is doing exactly what it should.
On top of that, many healthy breastfed infants in the first weeks of life do not fully absorb all the lactose in breast milk. The unabsorbed lactose travels to the colon, where bacteria ferment it and produce hydrogen gas. A study measuring breath hydrogen in exclusively breastfed infants at four to five weeks of age found that complete small-intestine absorption of lactose was not happening in all infants at that stage. The levels dropped as the babies got older, suggesting the system matures over time.9Journal of Pediatric Gastroenterology and Nutrition. Delayed Complete Functional Lactase Sufficiency in Breast‐Fed Infants This transient lactose fermentation is normal and self-resolving, not a sign of lactose intolerance.
Swallowed Air and Feeding Mechanics
A significant and underappreciated source of infant gas has nothing to do with what is in the milk at all. Aerophagia, the swallowing of excess air during feeding, can produce substantial gas in a baby’s stomach and intestines. This happens when the baby’s latch on the breast is shallow or when feeding is interrupted by frequent detaching and relatching. Conditions like tongue-tie or lip-tie, collectively called tethered oral tissues, can make it harder for the infant to form a proper seal, causing them to gulp air with every suck.10International Journal of Child Health and Nutrition. Infant Gastroesophageal Reflux (GER): Benign Infant Acid Reflux or just Plain Aerophagia
If your baby is gassy but also makes clicking sounds while nursing, has trouble staying latched, or seems to struggle with feeding, the problem may be mechanical rather than dietary. A lactation consultant can evaluate the latch, and a pediatrician or pediatric dentist can check for tethered oral tissues. Fixing a latch issue sometimes resolves gassiness more effectively than any change to your diet would.
When Elimination Diets Make Sense and When They Backfire
If you suspect a specific food is bothering your baby, the standard approach is to eliminate that one food for two to four weeks and watch for improvement. For cow’s milk protein, this means cutting out all dairy, including hidden dairy in processed foods like casein and whey in bread, sauces, and snack bars. If symptoms improve and return when you reintroduce dairy, that is a meaningful signal.
The risk comes when elimination becomes overly broad. Mothers sometimes end up cutting dairy, soy, eggs, wheat, nuts, and cruciferous vegetables simultaneously, either on the advice of well-meaning friends or from desperation during a colicky period. This kind of sweeping restriction can lead to deficiencies in calcium, vitamin D, protein, and essential fatty acids, all nutrients the mother needs both for her own recovery and for producing nutritious milk. Infants rarely react to a food that mothers eat, and the few foods observed to cause reactions differ from one infant to the next, so recommending that all breastfeeding mothers avoid a set list of foods is not justified.1PubMed Central. Maternal food restrictions during breastfeeding
If you are considering eliminating more than one food, work with a dietitian or your pediatrician so you can maintain adequate nutrition and approach the process systematically rather than removing everything at once, which makes it impossible to identify what actually helped.
Treatments That Have Some Evidence Behind Them
When infant gas crosses the line into prolonged crying and colic, a few interventions have been studied in randomized trials.
The probiotic strain Lactobacillus reuteri DSM 17938 has the strongest evidence base for breastfed colicky infants. A meta-analysis found that it roughly doubled the odds of a meaningful reduction in crying compared to placebo at two to three weeks, and reduced daily crying time by about 40 to 50 minutes per day.11PLoS ONE. The Efficacy and Safety of the Probiotic Bacterium Lactobacillus reuteri DSM 17938 for Infantile Colic: A Meta-Analysis of Randomized Controlled Trials A separate systematic review using network meta-analysis concluded that L. reuteri DSM 17938 was the most evidence-based intervention to reduce crying time in infantile colic.12PubMed Central. Efficacy of Lactobacillus reuteri DSM 17938 for infantile colic: Systematic review with network meta-analysis The effect was more consistent in breastfed infants than in formula-fed ones, possibly because breast milk provides the oligosaccharides that feed beneficial gut bacteria.
Oral lactase drops, which help break down the lactose that young infants sometimes incompletely absorb, have also shown promise. In a randomized double-blind trial, infants receiving lactase had roughly half the daily crying and fussing time compared to placebo by the end of four weeks, and parents reported better infant mood, comfort, and feeding.13PubMed Central. Oral lactase for infantile colic: a randomized double-blind placebo-controlled trial One practical wrinkle worth knowing: a study found that simethicone, the active ingredient in many over-the-counter infant gas drops, appeared to interfere with lactase efficacy. Among infants taking simethicone-containing drugs alongside lactase, only about 59% benefited from the enzyme, compared to over 93% of those receiving lactase alone.14PubMed Central. Simethicone Medication Should Be Avoided in Infants Receiving Oral Lactase Treatment If you are trying lactase drops for your baby, it may be worth avoiding simethicone products at the same time.
Artificial Sweeteners and Less Obvious Dietary Exposures
An emerging area of research involves non-nutritive sweeteners like sucralose and acesulfame-K, which are found in diet sodas, sugar-free yogurt, protein bars, and many processed foods. A mouse study exposed pregnant and lactating animals to these sweeteners at doses comparable to typical human consumption. Even though the actual dose reaching the pups through milk was low, the offspring showed significant changes in liver metabolism and gut bacteria, including a sharp drop in Akkermansia muciniphila, a bacterium associated with healthy gut function.15PubMed Central. Maternal Exposure to Non-nutritive Sweeteners Impacts Progeny’s Metabolism and Microbiome
This is animal data, and the researchers themselves emphasized that it needs to be reproduced in humans before firm conclusions can be drawn. But it raises questions about whether compounds we think of as inert might have subtle effects on a nursing infant’s developing gut microbiome. This is not a reason to panic about the occasional diet soda, but if you are consuming large amounts of artificial sweeteners daily and your baby has persistent gut symptoms, it is a variable worth considering. The science here is genuinely early, and anyone claiming certainty in either direction is getting ahead of the evidence.
Cultural Food Taboos and the Guilt Trap
Across cultures, new mothers are routinely handed lists of foods they should avoid while breastfeeding. In some South Asian traditions, mothers are told to eat only bland, warm foods for weeks postpartum. In parts of West Africa, specific fruits and vegetables are restricted. In Western countries, the lists tend to focus on cruciferous vegetables, beans, citrus, and chocolate. These restrictions are deeply ingrained, and questioning them can feel like questioning the wisdom of your mother or grandmother.
The qualitative study from Canadian Family Physician captures how this plays out emotionally: breastfeeding mothers felt strongly that their diet was responsible for their baby’s fussiness, and many restricted their diets extensively despite the scientific evidence showing otherwise.2PubMed Central. “Something is wrong with your milk”: Qualitative study of maternal dietary restriction and beliefs about infant colic The phrase “something is wrong with your milk” came up repeatedly, suggesting that dietary blame often taps into deeper anxieties about whether a mother’s body is nourishing her baby adequately.
If you are restricting your diet and not seeing improvement in your baby’s gas, that is valuable information. Most infant gas resolves on its own as the digestive system matures over the first three to four months. Eating a varied, nutrient-rich diet supports your own recovery and provides your baby with exposure to diverse flavors and immune factors through the milk. The rare infant who does react to a maternal food will usually show patterns that go beyond just gas: look for eczema, bloody or mucusy stools, persistent vomiting, or failure to gain weight. Those warrant a conversation with your pediatrician and a targeted, supervised elimination approach rather than a blanket ban on a long list of foods.