What Foods to Avoid for Breastfeeding Gas and How to Help
Posted on January 26, 2026
Posted on January 26, 2026
Watching your baby struggle with gas can be heartbreaking. You might see them pulling their legs up, turning red, or crying in a way that feels impossible to soothe. It is natural to look at your own plate and wonder if your lunch is the cause of their discomfort. At Milky Mama, we hear from parents every day who are worried that their favorite foods are hurting their little ones.
The good news is that most babies can handle a very wide variety of foods in their parent's diet. However, some babies are more sensitive than others to certain proteins or compounds that pass into breast milk. This post will cover which foods commonly contribute to infant gas, how to identify sensitivities, and how you can support your baby's comfort. We want to empower you with the knowledge to nourish yourself while keeping your baby happy.
Every drop counts, and your well-being matters just as much as your baby’s comfort.
Before we dive into the menu, it is important to understand why gas happens in the first place. Gas is a normal byproduct of digestion for humans of all ages. For a newborn, the digestive system is brand new and quite immature. It is learning how to process milk, move bubbles along, and coordinate the muscles needed to pass gas or have a bowel movement.
Most infant gas is caused by swallowing air during feeding or crying, rather than what the parent is eating. When a baby gulps milk quickly or has a shallow latch, they take in extra air. This air gets trapped in their stomach or intestines, leading to that familiar fussiness.
However, in a small percentage of babies, certain components from the parent’s diet can cause an inflammatory response or extra gas. This usually happens when proteins from food enter the parent's bloodstream and then pass into the milk supply. While "gas" itself doesn't pass from your stomach into your milk, the proteins that cause a reaction can.
If you suspect your baby is reacting to your diet, there are a few common culprits that lactation professionals and parents often point to. You do not need to avoid these foods by default. Only consider making changes if you notice a consistent pattern of fussiness after you eat them.
Cow’s milk protein is the most common dietary trigger for breastfed babies. This is not the same as lactose intolerance, which is very rare in infants. Instead, it is a sensitivity or allergy to the proteins (whey and casein) found in cow's milk.
When you consume dairy, these proteins can stay in your system for a significant amount of time. If your baby is sensitive, they may experience excessive gas, bloating, reflux, or even skin rashes. In more severe cases, you might notice mucus or tiny specks of blood in their stool.
Common dairy sources include:
We know that many parents rely on a morning cup of coffee to get through the day. While most babies tolerate a moderate amount of caffeine, some are very sensitive to it. Caffeine is a stimulant that can reach your milk relatively quickly.
If a baby is sensitive to caffeine, they might seem "wired," fussy, or have trouble settling down for sleep. This restlessness often leads to more crying, which leads to swallowing more air and—you guessed it—more gas. Chocolate also contains small amounts of caffeine and a compound called theobromine, which can have a similar effect.
You may have heard that vegetables like broccoli, cabbage, and cauliflower cause gas. In adults, these foods cause gas because of the way our gut bacteria break down the fiber. Fiber does not pass into breast milk, so these vegetables are usually safe.
However, some babies do seem to react to the sulfur compounds or other micronutrients in these vegetables. If you notice that your baby is consistently uncomfortable after you eat a large bowl of roasted Brussels sprouts, it might be worth a temporary break to see if things improve.
Spices like chili, curry, or heavy amounts of garlic and onion can change the flavor of your breast milk. For many babies, this is actually a good thing! It introduces them to the flavors of their family's culture and may make them more open to solid foods later on.
But for some sensitive newborns, these strong flavors or the acidity in spicy dishes can irritate their digestive tract. If your baby seems to have more "refluxy" symptoms or gas after a spicy meal, pay close attention to the timing.
Similar to cruciferous vegetables, beans are famous for causing gas in adults. While the gas-causing fiber stays in your gut, some of the complex sugars or proteins might affect very sensitive babies. Again, this is less common than a dairy sensitivity, but it is a frequent concern for parents.
After dairy, soy and eggs are the next most common allergens. Many babies who have a cow's milk protein allergy also react to soy protein because the protein structures are similar. If you have cut out dairy but your baby is still struggling, soy might be the next thing to look at.
Key Takeaway: Most babies do not need their parents to follow a restrictive diet. Only consider removing foods if your baby shows clear, consistent signs of discomfort.
It can be tempting to cut out five different food groups at once when you are exhausted and your baby is crying. However, this makes it impossible to know what was actually causing the problem. It can also leave you depleted of the nutrients you need to maintain your supply and energy.
Before making big changes, keep a simple log for three to five days. Record what you eat and when your baby seems most gassy or fussy. Look for patterns. Does the fussiness always happen four hours after you have yogurt? Does it happen regardless of what you eat?
If you decide to try an elimination diet, start with one food group at a time—usually dairy. It can take up to two weeks for cow's milk proteins to completely leave your system and for your baby's gut to heal. Do not expect an overnight miracle. If you don't see an improvement after two to three weeks of being strictly dairy-free, dairy is likely not the culprit.
The final step is reintroducing the food. If you cut out dairy and the gas improved, try eating a small amount of cheese or yogurt. If the gas returns, you have your answer. If it doesn't, your baby’s digestive system may have just matured during that time, and you can go back to your normal diet.
It is very common for parents to blame their diet when the issue is actually mechanical. If you have adjusted your food and your baby is still a "gas factory," consider these factors:
If a baby does not have a deep, firm seal on the breast, they will suck in air as they swallow. This air travels straight to the stomach. If you hear clicking sounds during nursing or if your nipples feel pinched or painful, your baby might have a shallow latch.
Working with a lactation consultant can help you achieve a deeper latch. We often recommend virtual lactation consultations for families who need expert eyes on their positioning and technique. A better latch often leads to a much quieter tummy.
Some parents have a very fast let-down, meaning the milk sprays out quickly. This can cause the baby to gasp or gulp to keep up with the flow, swallowing air in the process.
If you have an oversupply, your baby might also be getting a high volume of "foremilk," which is the milk at the start of the session. Foremilk is higher in lactose. While lactose is essential, an overwhelming amount of it can sometimes cause gassy, green, or explosive stools.
To help with this, you can try:
Crying is a major source of swallowed air. If a baby is already upset and crying for a long time before a feeding, they are likely already full of air. Responding to early hunger cues—like rooting, sucking on hands, or smacking lips—can help you start the feeding before the baby gets frantic.
While you are waiting for a sensitivity to clear or a latch to improve, you can help your baby move that trapped gas along manually.
If you do need to cut out certain foods like dairy or soy, it is vital that you don't skimp on your own nutrition. Breastfeeding requires extra calories and specific nutrients to keep you feeling your best.
When you are avoiding common allergens, you can still enjoy high-quality lactation support. For example, our Pumpin Punch™ and Milky Melon™ drinks provide hydration and lactation-supporting ingredients without relying on dairy. These can be great options for staying hydrated and supporting your supply while you navigate an elimination diet.
If you are looking for herbal support, many moms find that products like our Pumping Queen™ or Liquid Gold supplements help them maintain their goals. It is always a good idea to consult with your healthcare provider before starting any new herbal supplement.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice.
While gas is usually a normal part of infancy, there are times when it indicates a need for medical attention. You should contact your baby's doctor if you notice:
It is easy to fall into a cycle of "food fear" where you are afraid to eat anything for fear of making your baby cry. Please remember that your body is incredibly efficient at making the perfect milk for your baby. Breasts were literally created to feed human babies, and they do an amazing job of filtering what goes to your little one.
Most gassy phases are just that—phases. As your baby's gut matures and they spend more time upright or moving around, the gas will naturally become less of an issue. In the meantime, focus on gentle comfort measures and only make dietary changes that feel sustainable and necessary.
At Milky Mama, we believe that breastfeeding support should feel compassionate and empowering. You're doing an amazing job, and we are here to support you every step of the way. Whether you need a treat like our Emergency Brownies to boost your spirits or a virtual consultation to fix a tricky latch, you don't have to do this alone.
"A baby's digestive system is a work in progress. Most gas is a sign of growth and development, not a sign that you are doing something wrong with your diet."
No, broccoli does not always cause gas in babies. While it may cause gas in the parent due to high fiber content, that fiber does not pass into the breast milk. Only the proteins or flavor compounds pass through, which most babies tolerate perfectly fine.
Most food proteins and flavors appear in breast milk within 2 to 6 hours after consumption. However, if your baby has a true sensitivity like a cow's milk protein allergy, it can take up to two weeks for the baby's symptoms to fully resolve after you stop eating dairy.
In some sensitive babies, the acidity or specific spices in a parent's diet may change the composition of the baby's stool, leading to irritation or diaper rash. If you notice a red ring around the anus after you eat spicy food, it may be a sign your baby is sensitive to those ingredients.
Yes, it is very normal for babies to grunt, turn red, and even look like they are straining when passing gas or having a bowel movement. This is often called "infant dyschezia," which is just a fancy way of saying they are still learning how to coordinate their abdominal muscles to push while relaxing their pelvic floor.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice.