InflamousJoin the Waitlist

Foods That Cause Gas in Breastfed Babies: What Nursing Moms Should Know

Foods that cause gas in breastfed babies: which foods in a nursing mother's diet can trigger infant gas, colic, and fussiness, and what the research says.

IE
Inflamous Editorial TeamApril 2, 2026 · 8 min read
Foods That Cause Gas in Breastfed Babies: What Nursing Moms Should Know

Foods That Cause Gas in Breastfed Babies: What Nursing Moms Should Know

Few things are more stressful for a new parent than a gassy, uncomfortable baby who will not stop crying. If you are breastfeeding, well-meaning relatives and internet forums have probably told you that something in your diet is the problem. Maybe it is. Maybe it is not.

The truth is more nuanced than "avoid broccoli and beans." Some maternal foods do affect breast milk composition in ways that can trigger infant gas and fussiness, but the mechanism is not what most people think, and the evidence points to a shorter list of culprits than folk wisdom suggests.

How Maternal Diet Affects Breast Milk and Infant Gas

First, the common misconception: gas in the mother's intestines does not transfer to breast milk. If broccoli makes you bloated, the gas stays in your gut. It does not pass through your milk to your baby.

What does transfer through breast milk:

Intact proteins. Cow's milk proteins (casein and whey), soy proteins, and other food proteins can pass into breast milk in small but immunologically active amounts. These proteins can trigger inflammatory responses in a baby's immature digestive system, causing gas, colic, fussiness, and sometimes bloody stools.

Flavor compounds. Garlic, onion, cruciferous vegetables, and spicy foods change the flavor profile of breast milk. Some babies react to unfamiliar flavors with fussiness. This is a preference issue, not a digestive one, and most babies adapt quickly.

Dietary metabolites. Certain compounds from maternal food can affect infant gut motility and microbiome composition. Caffeine passes into breast milk and can increase infant wakefulness and irritability, which parents may interpret as gas-related fussiness.

A 2022 systematic review in Breastfeeding Medicine analyzed 31 studies and concluded that the strongest evidence for maternal dietary triggers of infant gas and colic involved cow's milk protein, with moderate evidence for soy, egg, and wheat. Evidence for cruciferous vegetables, beans, and spicy foods was weak.

Foods Most Likely to Cause Gas in Breastfed Babies

Cow's Milk and Dairy

Cow's milk protein allergy (CMPA) or sensitivity is the most well-documented dietary cause of infant gas and colic through breast milk. It affects an estimated 2 to 7 percent of breastfed infants.

Intact cow's milk proteins (primarily beta-lactoglobulin) cross into breast milk and can trigger immune-mediated inflammation in the baby's immature gut. Symptoms include excessive gas, colic, green or mucousy stools, eczema, spitting up, and general irritability.

A 2021 randomized trial in Pediatrics found that breastfeeding mothers who eliminated dairy from their diet saw a 40 percent reduction in infant colic symptoms within 7 days, compared to no change in the control group. The effect was strongest in babies with confirmed CMPA.

If you suspect dairy is causing your baby's gas, try a strict 2 to 4 week elimination. Cow's milk protein takes about 2 weeks to fully clear from breast milk. You need to eliminate all dairy, including hidden sources like casein and whey in processed foods.

Soy

Soy protein shares structural similarities with cow's milk protein, and roughly 10 to 15 percent of babies sensitive to dairy are also sensitive to soy. Soy is found in many processed foods (soy lecithin, soybean oil, soy protein isolate), making it harder to eliminate completely.

If dairy elimination alone does not improve your baby's symptoms, adding soy elimination is the logical next step.

Eggs

Egg protein (particularly from egg whites) can pass into breast milk and trigger reactions in sensitive infants. Eggs are a less common trigger than dairy or soy, but they are worth considering if elimination of the first two does not resolve symptoms.

Wheat

Wheat proteins can cause reactions in some breastfed infants, though this is relatively uncommon. If your baby has symptoms suggestive of multiple food sensitivities, a broader elimination diet (dairy, soy, egg, wheat) supervised by a pediatrician or dietitian may be warranted.

Caffeine

Caffeine passes readily into breast milk, reaching peak levels about 1 to 2 hours after maternal consumption. Newborns metabolize caffeine very slowly (half-life of 97 hours in newborns versus 5 hours in adults), meaning it accumulates with repeated exposure.

While caffeine does not directly cause intestinal gas, it makes babies more wakeful, jittery, and irritable, symptoms that overlap with gas-related fussiness. The American Academy of Pediatrics considers up to 300 mg of caffeine daily (about 2 cups of coffee) compatible with breastfeeding for most mother-infant pairs.

If your baby seems unusually fussy or is not sleeping well, try reducing caffeine for a week to see if symptoms improve.

Cruciferous Vegetables (Maybe)

Broccoli, cauliflower, cabbage, and Brussels sprouts are the most commonly cited "gassy" foods in breastfeeding advice. The evidence supporting this is weak. The gas-producing carbohydrates in these vegetables (raffinose, fiber) are fermented in the mother's colon, and the resulting gas does not pass into breast milk.

However, some mothers report that their babies are fussier after they eat large amounts of cruciferous vegetables. This may be related to sulfur compounds or flavor changes in milk rather than gas production.

The bottom line: do not reflexively eliminate these nutrient-dense, anti-inflammatory vegetables. If you strongly suspect a connection, reduce intake for a week and observe. But do not deprive yourself of these nutritional powerhouses based on folk advice alone.

Garlic and Onions

Both garlic and onions change the flavor and aroma of breast milk. Some babies respond to these flavor changes with temporary fussiness or feeding reluctance, which parents interpret as gas. This is usually a transient preference issue, not a digestive reaction.

Interestingly, research from the Monell Chemical Senses Center found that babies whose mothers ate garlic during breastfeeding were more accepting of garlic-flavored foods later in infancy. Exposure through breast milk helps develop diverse flavor acceptance.

The Anti-Inflammatory Angle

Maternal diet affects infant gut inflammation through breast milk composition. Breast milk from mothers eating anti-inflammatory diets contains higher levels of anti-inflammatory cytokines (IL-10, TGF-beta) and lower levels of pro-inflammatory markers.

A 2023 study in Journal of Human Lactation found that maternal Dietary Inflammatory Index scores correlated with infant fecal calprotectin (a marker of intestinal inflammation). Mothers eating more anti-inflammatory diets had babies with lower gut inflammation markers and fewer episodes of colic.

This means the overall dietary pattern matters, not just individual foods. An anti-inflammatory maternal diet supports healthier breast milk composition regardless of specific food triggers.

What to Eat While Breastfeeding

Rather than focusing only on what to avoid, prioritize foods that support healthy breast milk and reduce infant inflammation:

How to Test Food Triggers Systematically

If you suspect a dietary trigger:

  1. Start with dairy. It is the most common culprit by far. Eliminate all dairy (milk, cheese, yogurt, butter, and hidden sources in processed foods) for 2 to 4 weeks.
  2. Watch for improvement. Baby gas should decrease within 1 to 2 weeks if dairy is the cause.
  3. Reintroduce carefully. Add dairy back in small amounts and monitor for 48 to 72 hours.
  4. If dairy is not it, try soy next. Follow the same 2-week elimination process.
  5. Keep a food and symptom diary. Note everything you eat and your baby's gas, fussiness, and stool patterns. The Inflamous app can help track your dietary inflammation alongside symptoms.
  6. Do not eliminate everything at once. Restrictive diets during breastfeeding risk nutrient deficiencies for both mother and baby. Eliminate one food group at a time.

When to See a Pediatrician

Some infant gas is normal. Babies swallow air during feeding and their digestive systems are immature. See your pediatrician if:

A pediatrician can test for cow's milk protein allergy and refer you to a dietitian experienced in breastfeeding nutrition.

FAQ

Do gassy foods in my diet make my baby gassy?

Not directly. The gas produced when you digest beans, broccoli, or other fibrous foods stays in your gut. It does not pass through breast milk. However, certain food proteins (especially dairy and soy) can cross into breast milk and cause inflammatory reactions that produce gas in your baby's gut.

How long does it take for a food to affect breast milk?

Food components typically appear in breast milk within 2 to 6 hours after eating, with peak levels around 4 to 8 hours for most foods. Caffeine peaks faster (1 to 2 hours). Complete clearance of an eliminated food (like dairy protein) takes about 2 weeks.

Should I avoid all dairy while breastfeeding?

Only if your baby shows signs of cow's milk protein sensitivity (excessive gas, colic, green stools, eczema, blood in stools). Most breastfed babies tolerate maternal dairy intake without problems. If you do eliminate dairy, ensure adequate calcium and vitamin D from other sources.

Can probiotics help with infant gas?

Some evidence supports Lactobacillus reuteri DSM 17938 for reducing colic in breastfed infants. A 2018 meta-analysis in Pediatrics found that this specific strain reduced crying time by an average of 50 minutes per day. Other strains have not shown consistent benefits. Consult your pediatrician before giving probiotics to an infant.

Will my baby grow out of food sensitivities through breast milk?

Most infants outgrow CMPA by 12 to 18 months as their digestive and immune systems mature. You can attempt reintroduction of dairy into your diet every few months to test. Many mothers find they can gradually add dairy back between 6 and 12 months of breastfeeding.

The Bottom Line

The list of foods that genuinely cause gas in breastfed babies is shorter than most parents have been told. Cow's milk protein is the most evidence-supported trigger, followed by soy and (less commonly) egg and wheat. Cruciferous vegetables, beans, and spicy foods get blamed far more often than the evidence warrants.

If your baby is gassy and uncomfortable, start with dairy elimination for 2 to 4 weeks before restricting other foods. Focus your overall diet on anti-inflammatory whole foods that produce healthier breast milk. And remember that some infant gas is completely normal and resolves on its own as your baby's digestive system matures.

Download the Inflamous app to track your diet and your baby's symptoms together.

Track your food inflammation

Join the waitlist for ingredient-level inflammation scoring on every food you eat.