What Foods To Avoid While Breastfeeding To Prevent Gas
Posted on January 26, 2026
Posted on January 26, 2026
Hearing your baby grunt, squirm, and cry in discomfort can be heartbreaking for any parent. When your little one is struggling with gas, it is natural to look at your own plate and wonder if something you ate is the cause. We understand the worry that comes with seeing your baby in pain. At Milky Mama, we believe that breastfeeding should be an empowering experience, and our breastfeeding help and virtual consultations are here to support you through the learning curve.
Many families worry that they need to follow a very restrictive diet to keep their babies comfortable. While it is true that some babies are sensitive to certain things in their parent's diet, most can handle a wide variety of foods. This post will explore the common culprits, how to identify sensitivities, and how to support your baby’s developing digestive system. Identifying potential triggers and knowing when to adjust your diet can help both you and your baby feel much better.
Before we look at specific foods, it is important to understand why babies get gassy in the first place. A newborn’s gastrointestinal (GI) system is very immature. When they are born, their gut is still learning how to process milk and move waste through the body. This process often involves a lot of trial and error for their tiny muscles.
Gas is a normal byproduct of digestion. It happens when bacteria in the gut break down sugars and proteins. In adults, this is usually a minor event. For a baby, those tiny bubbles can feel like a lot of pressure. Because their abdominal muscles are weak, they often have to work very hard—grunting and pushing—just to pass a little bit of air.
It is also helpful to understand how your diet relates to your breast milk. Your milk is not made directly from the food in your stomach. Instead, it is made from your bloodstream. This means that things like the fiber in broccoli, which might make you gassy, do not actually pass into your milk. However, certain proteins and molecules from the food you eat do enter your blood and then your milk. These are the components that can sometimes cause a reaction in a sensitive baby.
While every baby is unique, there are a few common foods that are frequently linked to gassiness and fussiness. If you suspect your baby is reacting to your diet, these are often the first places to look.
Cow’s milk protein is the most common sensitivity in breastfed infants. When you consume milk, cheese, yogurt, or butter, the proteins from the cow’s milk can pass into your breast milk. For some babies, these proteins are difficult to break down, leading to inflammation in the gut.
This can result in significant gas, bloating, and discomfort. In more severe cases, it might lead to a cow’s milk protein allergy (CMPA). Signs of a dairy sensitivity often include more than just gas. You might also notice:
Soy is another common allergen. Interestingly, many babies who are sensitive to dairy are also sensitive to soy. This is because the proteins in soy are shaped similarly to the proteins in dairy. If you have cut out dairy and your baby is still gassy, soy may be the next thing to consider. Soy is hidden in many processed foods, including vegetable oils, breads, and even some supplements.
We know that many new parents rely on coffee to get through the day. While moderate caffeine intake (about 200 to 300 milligrams a day) is usually fine, some babies are more sensitive to it than others. Caffeine can act as a stimulant, which might speed up the baby’s digestive processes and lead to more gas and restlessness.
Carbonated beverages like soda or sparkling water are often blamed for gas. However, the bubbles in the drink stay in your digestive tract; they do not travel to your milk. The real issue with these drinks is often the high sugar content or artificial sweeteners, which can sometimes affect a baby's tummy.
Vegetables like broccoli, cabbage, cauliflower, and Brussels sprouts are famous for causing gas in adults. As mentioned earlier, the fiber itself doesn't pass into your milk. However, these vegetables contain complex sugars that can sometimes cause changes in the milk that a sensitive baby might notice. Most babies tolerate these healthy greens just fine, so we usually recommend keeping them in your diet unless you see a clear pattern of fussiness every time you eat them.
Spices like chili peppers, curry, and even heavy amounts of garlic or onion can change the flavor of your milk. Some babies actually enjoy the variety of flavors, which can make the transition to solid foods easier later on. However, for some infants, these strong ingredients can irritate the digestive lining and cause gas or even a diaper rash. If you notice your baby pulling away from the breast or acting uncomfortable after you eat a spicy meal, it may be worth scaling back the heat for a while.
Beans and lentils are powerhouses of nutrition, but they are also known for their gas-producing qualities. Like cruciferous vegetables, the indigestible sugars in beans are what cause the problem for the person eating them. Whether these sugars affect breast milk enough to cause infant gas is still debated by experts, but many parents find that their babies are more comfortable when Mom limits her intake of beans.
Key Takeaway: Dairy is the most common dietary trigger for baby gas, followed by soy and caffeine. However, most babies can handle a diverse diet without issues.
It can be tempting to cut out everything at once when your baby is crying. However, this can make it hard for you to get the nutrition you need. Instead, we recommend a systematic approach to identifying triggers.
Before making big changes, track what you eat and how your baby behaves for about three to five days. Note the time of your meals and the time your baby seems most uncomfortable. You might find that the "gas" is actually just a regular "witching hour" or related to a specific time of day rather than a specific food.
Look for patterns. If your baby is consistently gassy six to eight hours after you eat a specific food, that food is a likely candidate. It usually takes a few hours for what you eat to reach your milk, and then a few more hours for the baby to digest it.
If you identify a likely trigger, try removing it from your diet completely for two weeks. It can take this long for the proteins to fully leave your system and the baby’s gut to heal.
If you do need to cut out certain foods, it is important to ensure you are still getting enough calories and nutrients. Stress and a lack of calories can sometimes impact your milk supply. Many of our Milky Mama products are designed to support your supply while being mindful of common sensitivities.
Our Emergency Lactation Brownies, for example, are a favorite for many because they provide a concentrated boost of lactation-supporting ingredients like oats and flaxseed. If you are cutting out dairy, we offer many dairy-free options that allow you to support your lactation goals without compromising your baby’s comfort. Hydration is also key when dealing with a gassy baby, and our Pumpin' Punch™ drink mix can help you stay hydrated while supporting your milk flow.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice.
Sometimes, the food you eat has nothing to do with your baby's gas. There are several other common reasons a baby might be swallowing too much air or struggling to digest.
If a baby does not have a deep, firm latch, they may swallow air while they nurse. This air goes straight into their stomach and becomes trapped gas. Working with our breastfeeding help and virtual lactation consultations can help you ensure your baby is latched correctly.
Common signs of a poor latch include:
If you have a very fast let-down (the reflex that causes milk to flow), your baby might "gulp" to keep up. This gulping causes them to swallow air. Additionally, a fast flow can sometimes lead to a baby getting a lot of "foremilk" (the thinner milk at the start of a feed) and not enough "hindmilk" (the fattier milk at the end). Foremilk is high in lactose, and an overload of lactose can sometimes cause green, gassy stools.
It is a bit of a cycle: a baby cries because they have gas, and then they swallow more air while crying, which creates more gas. If your baby is having a hard time settling, try to catch their hunger cues early—such as rooting or sucking on hands—before they reach the stage of frantic crying.
While you work on identifying the cause, you can help your baby find immediate relief with some simple physical techniques.
Lay your baby on their back and gently move their legs in a cycling motion. Then, gently push their knees up toward their tummy and hold for a few seconds. This manual pressure helps move gas bubbles through the intestines.
Supervised tummy time is not just for building neck muscles. The gentle pressure on their abdomen while they are awake and alert can help them pass gas naturally. Many babies will "toot" within a few minutes of being placed on their bellies.
Hold your baby face-down along your forearm, with their head in your hand and their legs straddling your elbow. This position provides gentle pressure on the tummy and can be very soothing for a gassy infant.
Using a little bit of baby-safe oil, use your fingertips to massage your baby's belly in a clockwise motion. The "I Love You" stroke is a popular method:
If you are struggling with a gassy baby, follow this action plan:
"Every drop counts, and so does your peace of mind. Taking a systematic approach to baby gas helps you find the answer without unnecessary stress."
In most cases, gas is a normal—if noisy—part of being a baby. However, there are times when it could point to a more serious issue. You should consult your healthcare provider if you notice:
Navigating the world of breastfeeding can be challenging, but you are doing an amazing job. While it is possible that certain foods in your diet are contributing to your baby's gas, remember that their digestive system is still learning. Most babies outgrow their gassiness as they become more mobile and their guts mature.
Focus on a balanced diet, keep an eye on your baby's cues, and don't be afraid to reach out for support. Our Milky Mama community is here to provide the resources and encouragement you need. Whether it's through our lactation treats or our breastfeeding education and supply support guide, we want to help you feel confident in your breastfeeding journey.
For more support and products designed by experts to nourish your journey, explore our supportive breastfeeding education and milk supply and nourishment guide.
Most components of the food you eat appear in your breast milk within 2 to 6 hours. However, some proteins, like those in dairy, can stay in your system and your milk for much longer. If you are doing an elimination diet, it is best to wait at least two weeks to see a full change in your baby's symptoms.
Spicy food does not cause gas in all babies, but it can change the flavor of the milk. Some infants might find the taste irritating or experience a mild stomach upset if they are particularly sensitive. If your baby seems fine after you eat a spicy meal, there is no reason to avoid it.
Most experts agree that up to 300mg of caffeine per day is safe for breastfeeding parents. However, if your baby is very young or sensitive, caffeine may cause them to be more alert and gassy. Try reducing your intake for a few days to see if your baby’s comfort improves.
Not necessarily. While beans make adults gassy due to the fiber and complex sugars, those specific fibers do not pass into your breast milk. Most babies are not affected by their parent eating beans, so you should only avoid them if you notice a consistent pattern of fussiness after eating them.