What Gassy Foods to Avoid When Breastfeeding
Posted on January 26, 2026
Posted on January 26, 2026
Watching your little one pull their legs up to their chest and cry in discomfort is one of the hardest parts of early parenthood. You want to do everything in your power to help them feel better, and often, your mind goes straight to what you ate for lunch. It is a common worry for many families: is something in my milk causing this fussiness? We know how exhausting those long nights can be when you are trying to soothe a gassy baby while also managing your own recovery and nutrition.
At Milky Mama, we believe that breastfeeding should feel empowering and supportive, not like a constant guessing game of "what did I eat wrong?" While it is a common myth that breastfeeding parents must live on a diet of bland chicken and brown rice, some babies truly are sensitive to certain compounds that pass through milk. Understanding which foods might be contributing to your baby's discomfort can help you make small, impactful changes to your diet without sacrificing your own wellness.
This post will cover the common culprits behind infant gas, how to distinguish between a food sensitivity and a normal developmental phase, and practical ways to support your baby’s digestion. If you want more hands-on feeding guidance, our Breastfeeding 101 course can be a helpful next step. We want to help you find the balance between nourishing yourself and keeping your baby comfortable. Every drop of milk you provide is a gift, and with the right information, you can navigate these gassy days with more confidence.
Before we dive into specific foods, it is important to understand why babies are so prone to gas in the first place. For a newborn, everything is brand new—including their digestive system. Their gastrointestinal tract is immature, meaning it is still learning how to process nutrients and move waste along efficiently.
Gas is a natural byproduct of the digestive process. It happens when gut bacteria break down food in the large intestine. In adults, we usually handle this without much thought, but for a baby, the sensation of gas moving through their intestines can feel intense and even painful. They also spend much of their time lying flat, which makes it harder for gas to move upward or downward.
Furthermore, babies often swallow air while they are feeding or crying. This trapped air in the stomach can lead to burps, while air that moves into the intestines becomes flatulence. Because their abdominal muscles are weak, they often have to work quite hard to "let it rip," leading to the grunting and straining that many parents observe.
While most babies tolerate a wide variety of flavors and nutrients, certain items are more likely to cause issues than others. If you suspect your baby is reacting to your diet, these are the most common foods to consider limiting or temporarily removing.
Cow’s milk protein is the number one food sensitivity found in breastfed infants. It is important to distinguish between a lactose intolerance and a cow’s milk protein allergy (CMPA). True lactose intolerance is extremely rare in infants. Instead, what most babies experience is a sensitivity or allergy to the specific proteins (whey and casein) found in cow’s milk.
When you consume milk, cheese, yogurt, or butter, these proteins can enter your bloodstream and then your milk supply. For some babies, these proteins cause inflammation in the gut, leading to excessive gas, green stools, and extreme fussiness.
Vegetables like broccoli, cabbage, cauliflower, and Brussels sprouts are famous for causing gas in adults. This is due to a complex sugar called raffinose and high fiber content. While fiber itself does not pass into your milk, some of the sulfur-based compounds and gas-producing molecules can.
Many babies handle these healthy greens just fine, but if you notice a pattern of fussiness a few hours after you eat a large bowl of roasted broccoli, it may be worth scaling back. You don’t have to avoid them forever; often, as the baby's gut matures, they will be able to handle these flavors without an issue.
Beans and lentils are incredible sources of protein and fiber for breastfeeding parents. However, they also contain oligosaccharides, which are sugars that the human body cannot fully digest. When these sugars reach the large intestine, bacteria ferment them, creating gas.
If beans are a staple in your diet, try soaking dry beans overnight and rinsing them thoroughly before cooking. This can help reduce the gas-producing properties before they even reach your plate.
While we all love a morning coffee or a midday chocolate treat, caffeine is a stimulant that can pass into your milk. Newborns, in particular, have a very hard time processing caffeine. It can stay in their system much longer than it stays in yours.
Excessive caffeine can lead to a baby who is jittery, active, and unable to settle, which often leads to more crying. When babies cry, they swallow air, creating a cycle of gas and discomfort. Chocolate also contains small amounts of caffeine and another stimulant called theobromine, which may affect sensitive babies.
Garlic is a wonderful galactagogue—a substance that may help increase milk supply—and many babies actually like the flavor it adds to milk. However, for some infants, strong aromatics like garlic, onions, and spicy peppers can irritate the digestive lining or cause a change in the milk's smell that makes the baby pull off the breast frequently. When a baby repeatedly pulls off and relatches, they are more likely to swallow air.
Key Takeaway: If you suspect a food is causing gas, look for a pattern. Symptoms usually appear within 2 to 24 hours after you consume the food.
Before you decide to cut out all your favorite foods, it is worth checking if the gas is actually being caused by the mechanics of feeding rather than your diet. Aerophagia is the medical term for swallowing too much air, and it is a leading cause of infant gas.
A deep, comfortable latch is essential for more than just preventing sore nipples. If a baby has a shallow latch or is struggling with a tongue-tie, they may "break seal" frequently while nursing. Every time that seal breaks, they gulp down air along with the milk.
If you hear clicking sounds or see dimples in your baby's cheeks while they are eating, they might be taking in air. Working with a certified lactation consultant through our breastfeeding help page can help you achieve a better latch, which often solves the gas problem without any dietary changes at all.
Sometimes, the issue isn't the baby's latch but the speed of the milk flow. The let-down reflex is the process where your body releases milk from the alveoli (milk-making tissues) into the ducts. Some parents have a very forceful let-down.
When the milk comes out too fast, the baby may gulp and cough to keep up, swallowing significant amounts of air in the process. This can lead to what is sometimes called "oversupply gas." If you notice your baby choking or pulling away when your milk first starts flowing, try nursing in a reclined position to let gravity slow the flow down.
Another common cause of gas that looks like a food sensitivity is an imbalance between foremilk and hindmilk.
If a baby gets a large amount of lactose-rich foremilk without enough fat-rich hindmilk to slow down digestion, the lactose can hit their system too quickly. This can lead to fermentation in the gut, resulting in explosive, green, and gassy stools. This isn't an "allergy" to your milk, but rather a timing issue. Ensuring your baby fully finishes the first breast before offering the second can help them get that balance of fat they need to digest the sugars comfortably.
If you have ruled out latch issues and oversupply, and you still feel that certain foods are the culprit, a systematic approach is the best way to find answers.
We often recommend focusing on high-quality nutrition during this time. For extra day-to-day support, our Lactation Supplements collection can be a useful place to start while you are making changes. These are formulated with ingredients that have been used for generations to support lactation wellness.
While you are waiting for dietary changes to take effect, there are several hands-on techniques you can use to help your baby move that uncomfortable air.
Lay your baby on their back and gently move their legs in a bicycling motion toward their tummy. This gentle pressure helps compress the intestines and push gas bubbles along.
Supervised tummy time is not just for motor skills; it is also great for digestion. The pressure of the floor against their abdomen acts as a natural massage, helping to move gas out.
Don't just stick to the traditional over-the-shoulder burp. Try sitting the baby on your lap, supporting their chin (not their throat), and leaning them forward slightly while patting their back. You can also lay them across your lap on their tummy and gently pat.
A warm bath can help relax the abdominal muscles. Following the bath with a gentle tummy massage—moving your hand in a clockwise direction—can follow the natural path of the large intestine and help your baby find relief.
It is vital that you don't forget about your own needs. Breastfeeding requires a significant amount of energy, and if you are cutting out major food groups like dairy or beans, you need to replace those calories and nutrients.
Focus on:
We know how hard it is to cook a full meal with a fussy baby. Having easy-to-grab snacks can make a huge difference. Our Emergency Lactation Brownies are a favorite for a reason—they are delicious, easy to eat one-handed, and packed with ingredients like oats and flaxseed to support your journey.
Most of the time, gas is a normal, albeit noisy, part of infancy. However, there are times when fussiness indicates something more serious. You should consult your pediatrician or an IBCLC if you notice:
Every baby is different, and what works for your friend's baby might not work for yours. It is always okay to ask for professional help. Whether it is a virtual consultation with a lactation expert or a visit to the doctor, getting professional guidance can save you weeks of stress and dietary restriction.
Navigating your baby’s digestive struggles can feel like a full-time job on top of everything else you are doing. Remember that for the vast majority of families, gas is a temporary phase that passes as the baby's digestive system matures. While being mindful of "gassy" foods like dairy, cruciferous vegetables, and excessive caffeine can help, don't forget to look at the big picture—including latch and feeding mechanics.
You are doing an amazing job providing for your baby. Breastfeeding is a journey of learning your baby's unique cues and needs. If you want a deeper dive into everyday feeding support, What Should I Eat While Breastfeeding? is a helpful read. By staying observant and patient, you will find the rhythm that works best for both of you.
"The early days of breastfeeding are a learning curve for both of you. Trust your instincts, seek support when you need it, and remember that this phase is just that—a phase."
If you need more support, whether through our lactation-friendly treats or expert advice, we are here for you every step of the way. Your wellness matters just as much as your baby’s comfort.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice. These statements have not been evaluated by the Food and Drug Administration.
No, broccoli does not always cause gas. While it can cause gas in the parent due to its fiber and raffinose content, the fiber itself does not pass into breast milk. Some babies may be sensitive to the sulfur compounds, but many babies have no reaction at all to cruciferous vegetables in the parent's diet.
Most food compounds peak in breast milk about 2 to 6 hours after consumption. If you remove a food from your diet, it usually clears your milk supply within 24 to 72 hours. However, if the baby has a true cow's milk protein allergy, it can take up to two weeks for the proteins to fully clear their system and for their gut inflammation to subside.
Spicy food generally does not cause gas, but it can change the flavor of your milk. Some babies may be sensitive to the capsaicin or other compounds in very spicy dishes, which could lead to irritability or, in some cases, a mild skin irritation or diaper rash. If your baby seems fine with your usual spice level, there is no need to avoid it.
Yes, beans are an excellent source of nutrition and are generally safe to eat while breastfeeding. If you find they make your baby particularly gassy, try smaller portions or ensure they are cooked thoroughly. Most babies will not react to the gas-producing sugars in beans because those sugars are mostly broken down in the parent's digestive tract.