What Foods Cause Gas in Breastfed Babies?

Most foods you eat while breastfeeding won’t cause gas in your baby. The most commonly reported culprit is cow’s milk protein, and beyond that, only a handful of foods are frequently linked to gassiness or fussiness in breastfed infants. The CDC’s current guidance is clear: breastfeeding women generally do not need to limit or avoid specific foods, and a healthy, diverse diet should be the goal.

That said, some babies do react to certain things in breast milk. Understanding which foods are most likely involved, how quickly they affect your milk, and how to test your suspicions can save you weeks of unnecessary dietary restrictions.

Cow’s Milk Protein Is the Top Offender

Of all the foods breastfeeding parents report as problematic, cow’s milk protein stands out. It is the most commonly reported food substance to cause gas and fussiness in newborns. This includes milk, cheese, yogurt, butter, cream, and any processed food with milk-based ingredients like whey or casein.

Here’s an important reality check, though. About 14% of parents report that their baby has a cow’s milk allergy, but only around 1% of babies actually do, according to research published in JAMA Pediatrics. Fussiness, gassiness, and stool changes are extremely common in young babies regardless of what you eat, and most of these issues resolve on their own with time. True cow’s milk protein allergy tends to show up as a pattern of symptoms: vomiting, diarrhea, persistent fussiness during or after feeding, or blood in the stool. Some babies also develop rashes or facial swelling, which points to a more classic allergic reaction.

Soy protein is the second most common allergen for infants, and babies who react to cow’s milk sometimes react to soy as well. If you’re eliminating dairy, it’s worth knowing that soy may also need to come out.

Other Foods Commonly Linked to Gas

Beyond dairy, breastfeeding parents frequently report that certain vegetables, legumes, and spices seem to make their babies gassy. The most commonly mentioned foods include:

  • Cruciferous vegetables: broccoli, cauliflower, cabbage, Brussels sprouts
  • Leafy greens: kale and spinach
  • Legumes: beans and lentils
  • Alliums: onions and garlic
  • Peppers and spicy foods

These are foods that produce gas in adults through fiber fermentation in the gut, and the assumption is that compounds from these foods pass into breast milk and have a similar effect on babies. The evidence for this is largely based on parent reports rather than controlled studies, and many babies tolerate all of these foods without any issues. If your baby seems comfortable and is gaining weight well, there’s no reason to preemptively cut these foods from your diet.

How Caffeine Affects Your Baby

Caffeine passes into breast milk in small amounts. For most mothers and babies, moderate consumption (under 300 milligrams per day, roughly two to three cups of coffee) doesn’t cause problems. At very high intakes, around 10 cups of coffee or more per day, babies have been reported to show irritability, jitteriness, fussiness, and disrupted sleep.

Younger and premature newborns break down caffeine more slowly than older babies, so if your infant is very young or was born early, you may want to keep your intake on the lower end. If your baby seems unusually fussy or isn’t sleeping well and you’re consuming a lot of caffeine, cutting back is a reasonable first step since it’s one of the easier variables to test.

How Quickly Food Reaches Your Milk

When you eat something, proteins from that food typically peak in your breast milk within one to four hours. They generally clear out within six to 12 hours, and almost always within 24 hours. This timeline is useful because it helps you connect the dots. If your baby becomes gassy or fussy a few hours after a feeding, think about what you ate in the one to four hours before that feeding session.

This also means that if you eliminate a food, you won’t have to wait long to see it leave your milk. But it can take longer for your baby’s gut to settle down after repeated exposure, which is why elimination trials are typically run for weeks rather than days.

How to Test Whether a Food Is the Problem

If you suspect a specific food is causing your baby’s gas, an elimination diet is the standard approach. There are two ways to do it.

The faster method is to remove the most likely triggers all at once: dairy, soy, and eggs. Wait two to four weeks to see if your baby improves. If symptoms get better, you can reintroduce one food at a time to identify which one was actually responsible.

The slower but more targeted method is to remove one food group at a time, giving each elimination a full two to four weeks before deciding whether it made a difference. This takes longer but avoids cutting more from your diet than necessary.

Two to four weeks may feel like a long trial period, but it takes time for your baby’s digestive system to calm down even after the offending protein is gone from your milk. If you don’t see any improvement after a full month of eliminating a food, that food probably isn’t the issue, and you can add it back.

When Gas Is Just Normal Baby Gas

Before overhauling your diet, it helps to know that gas is a normal part of infant digestion. Babies swallow air while feeding and crying, their digestive systems are immature, and their gut bacteria are still developing. All of this produces gas regardless of what you eat.

Your baby’s feeding position and latch also play a role. A shallow latch or a fast milk flow can cause babies to gulp air, leading to gas and discomfort that has nothing to do with your diet. Burping your baby during and after feeds, holding them upright for a few minutes after eating, and gentle tummy massage or bicycle leg movements can all help move gas through.

The pattern of symptoms matters more than any single gassy episode. If your baby is consistently uncomfortable after most feedings, has changes in stool (especially mucus or blood), or is unusually fussy for hours at a time over multiple days, that’s when looking at your diet becomes worthwhile. An occasional gassy afternoon is just life with a newborn.