When a baby cries inconsolably for hours, parents will look anywhere for answers. Often, the first question that comes to mind is: Is it something they are eating?
Because a baby’s digestive system is incredibly immature, small tweaks to their diet—or a breastfeeding mom’s diet—can sometimes make a massive difference in reducing trapped gas and colic symptoms. Here is how to navigate dietary changes safely and effectively.
For Breastfed Babies: The Elimination Diet
If you are breastfeeding, your baby isn’t reacting to your breast milk itself, but rather to proteins from your diet that pass through into your milk.
Before you restrict everything you eat, focus on the most common culprits. It takes about 2 to 3 weeks for proteins to fully clear your system and your baby’s system, so patience is key.

- The #1 Culprit: Dairy. A sensitivity to cow’s milk protein is the most common dietary trigger for colicky breastfed babies. Try eliminating milk, cheese, yogurt, and butter entirely for two weeks.
- Other Common Triggers: Soy, wheat, eggs, nuts, and excessive caffeine.
- The “Gassy Veggie” Myth: Parents are often told to avoid broccoli, cabbage, and beans. However, the gas from these foods is created by the fiber breaking down in your gut. The gas itself doesn’t pass into breast milk, though some strong flavors might slightly alter the taste.
Important Note: Only eliminate one major food group at a time. If you cut out dairy, soy, and wheat all at once, you won’t know which one was actually causing the trouble!
While tracking food sensitivities can unlock massive relief, remember that diet is often just one piece of the puzzle. For a complete look at sensory soothing rhythms and environmental tweaks that work beautifully alongside these feeding adjustments, check out our comprehensive The Ultimate Parents Guide to Surviving Baby Colic.
For Formula-Fed Babies: Navigating the Aisles
If your baby is formula-fed, switching brands randomly can actually upset their stomach further. Every formula change requires a transition period of about 3 to 7 days for their gut to adjust.
If you suspect their current formula is worsening their colic, talk to your pediatrician about these three categories:
- Gentle/Partially Hydrolyzed Formulas: These formulas have the cow’s milk proteins already broken down into smaller, easier-to-digest pieces. They are great for general fussiness and mild gas.
- Hypoallergenic/Extensively Hydrolyzed Formulas: Designed for babies with a true cow’s milk protein allergy or severe sensitivity. The proteins are broken down so small that the baby’s immune system doesn’t recognize them as an allergen.
- Soy or Lactose-Free Formulas: True lactose intolerance is incredibly rare in infants. However, if temporary lactose sensitivity is suspected (sometimes happening after a stomach bug), a lactose-free option might be recommended briefly by your doctor.
The Golden Rule of Diet Changes
Whether breast or formula feeding, never make drastic changes without consulting your pediatrician first. Keep a quick daily log of what you eat (or the formula used) alongside a tracker of your baby’s crying spells. Often, seeing the data on paper makes it much easier to spot the real patterns!