What Foods Should I Avoid While Breastfeeding to Prevent Gas?
Posted on January 26, 2026
Posted on January 26, 2026
Watching your little one pull their legs up to their chest, turn red in the face, and cry out 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 are eating. Many parents worry that a spicy taco or a bowl of broccoli from dinner is the reason their baby is struggling with tummy troubles. At Milky Mama, we hear from families every day who are navigating these exact concerns while trying to provide the best nutrition for their babies.
This post will explore the relationship between your diet and your baby’s digestion. We will look at which foods are most likely to cause issues, why babies get gassy in the first place, and how you can identify specific triggers. For more help as you read, you can also explore our What Foods Cause Gas While Breastfeeding? guide. Our goal is to provide you with the tools to support your breastfeeding journey without unnecessary stress or overly restrictive eating. Understanding how your body produces milk and how your baby processes it is the first step toward a happier, less gassy household.
Before looking at your dinner plate, it is helpful to understand the mechanics of an infant's digestive system. Babies are born with very immature guts. Their intestines are still learning how to move food through efficiently, and they lack the full range of beneficial bacteria that adults have to help break down nutrients. This means that gas is a very normal part of being a human baby.
Another common culprit for gas is air. When babies cry, they swallow air. When they feed, if the seal on the breast or bottle isn't quite right, they swallow air. This air can get trapped in their stomach or move into their intestines, causing that familiar bloated feeling. It is also important to remember that gas is a byproduct of digestion. Even if a baby is feeding perfectly, the process of breaking down the sugars and proteins in breast milk naturally creates some gas.
For many families, the "witching hour"—that period in the late afternoon or evening when babies seem most fussy—is often blamed on gas. While gas can play a role, this fussiness is also frequently related to overstimulation or a developing nervous system. However, if your baby seems consistently uncomfortable, exploring the connection to your diet is a reasonable next step.
One of the biggest myths in breastfeeding is that if a food makes the mother gassy, it will automatically make the baby gassy. To understand why this isn't always true, we have to look at how breast milk is made. Breast milk is not made directly from the contents of your stomach. Instead, it is made from your bloodstream.
When you eat a bowl of beans, the fiber and certain complex sugars stay in your digestive tract. Your body breaks them down, which can lead to gas for you. However, those gas-forming fibers do not pass into your blood, which means they do not pass into your milk. What does pass into your milk are the proteins and the flavors of the foods you eat.
This is why a baby is much more likely to react to a protein, like the protein found in cow's milk, than they are to the fiber in a head of cabbage. If your baby is reacting to something you ate, it is usually a sensitivity to a specific protein rather than "gas" passing through the milk itself.
While every baby is unique, there are a few usual suspects that parents often report as triggers for fussiness or gas. If you are wondering what foods you should avoid while breastfeeding to prevent gas, these are the most common categories to watch.
Dairy is the most common dietary trigger for breastfed babies. It isn't the lactose (milk sugar) that is usually the problem, as breast milk is naturally very high in lactose regardless of what you eat. Instead, it is the cow’s milk protein. These proteins can pass into your breast milk and irritate a sensitive baby’s digestive lining.
Signs of a dairy sensitivity often go beyond just gas. You might notice:
If you suspect dairy is the issue, it may help to eliminate all sources of cow's milk for two to three weeks to see if the symptoms improve. This includes milk, cheese, yogurt, and even hidden dairy in processed foods.
We know that caffeine is often a survival tool for new parents, but it can sometimes impact a baby’s comfort. A small amount of the caffeine you consume does end up in your breast milk. While most babies handle a cup or two of coffee just fine, some newborns are particularly sensitive to stimulants.
If your baby is very gassy and also seems unable to settle or stay asleep, caffeine might be the culprit. It can cause increased intestinal activity, which leads to discomfort. If you suspect this, try swapping your morning brew for a caffeine-free option, like our Pumpin' Punch™, which provides hydration and lactation support without the jitters.
Broccoli, cabbage, cauliflower, and Brussels sprouts are often labeled as "gassy foods." As we mentioned earlier, the fiber that makes you gassy doesn't enter the milk. However, these vegetables contain sulfur compounds that can change the scent and flavor of your milk.
For some babies, these changes in flavor or the presence of these compounds might cause a bit of tummy upset or a change in their bowel habits. If you notice a direct link between your intake of these greens and your baby’s discomfort, you might try steaming them thoroughly to make them easier to digest or reducing the portion size.
Spicy foods containing chili, peppers, or heavy amounts of garlic and onion can sometimes be linked to infant gas. Similar to cruciferous vegetables, these foods have very strong flavors that transfer to your milk.
Interestingly, many babies actually enjoy the variety of flavors that come through breast milk. Research suggests that exposure to these flavors now can make them more adventurous eaters later. However, if your baby seems to have a "hot" tummy or develops a diaper rash shortly after you eat something very spicy, it may be worth scaling back the heat for a while.
Beans, lentils, and whole grains are incredibly healthy, but they are also famous for causing gas. While the gas itself doesn't move into the milk, some babies may be sensitive to the specific types of carbohydrates (oligosaccharides) found in these foods. If your baby seems uncomfortable after you have a large serving of beans, try soaking them overnight before cooking or choosing "easier" legumes like red lentils.
Instead of cutting out every healthy food in your pantry, it is better to take a systematic approach. Overly restricting your diet can lead to fatigue and nutrient deficiencies, which doesn't help you or your baby.
This is the most effective way to find a link between your diet and your baby’s gas. For one week, write down everything you eat and drink. In a separate column, note your baby’s behavior. Look for patterns:
If a pattern emerges, you can try a gentle elimination diet. Choose one food group (like dairy or soy) and remove it completely for at least two weeks. It takes time for proteins to clear your system and for your baby's gut to heal. If you don't see any change after two weeks, that food probably isn't the problem, and you can add it back in.
It is tempting to cut out dairy, soy, eggs, and caffeine all at once. The problem is that if the baby gets better, you won't know which one was the actual trigger. By changing one thing at a time, you can maintain a more varied and nourishing diet. While you are navigating these changes, you can still enjoy lactation-friendly treats from our Lactation Snacks collection. Our Emergency Brownies are a favorite for many moms because they provide a much-needed snack that supports supply without relying on common triggers like high levels of caffeine or heavy spices.
Before deciding that your diet is the problem, check for these common physical causes of gas. Often, a small adjustment in how you feed can make a world of difference.
A poor latch is one of the leading causes of gas. If your baby isn't getting a deep, firm seal on the breast, they will "click" or swallow air during the feed. This air goes straight to the stomach.
Key Takeaway: If breastfeeding is painful for you or if you hear a clicking sound while your baby nurses, reach out to an International Board Certified Lactation Consultant. A better latch means less air and a more comfortable baby.
The let-down reflex is the process where your milk begins to flow. For some parents, this flow is very fast and forceful. When the milk comes out like a firehose, the baby has to gulp quickly to keep up. This gulping leads to swallowed air.
To help with a fast let-down:
Foremilk is the thinner, more watery milk that comes at the beginning of a feed. It is high in lactose. Hindmilk is the creamier, fattier milk that comes as the breast is emptied. If a baby gets too much foremilk and not enough hindmilk—often due to an oversupply or switching breasts too quickly—all that lactose can hit their gut at once.
When the body can't break down that much lactose quickly, it can cause "lactose overload," leading to green, frothy stools and significant gas. To prevent this, try to let your baby finish the first breast completely before offering the second.
While you are waiting for dietary changes to take effect or for your baby's digestive system to mature, there are several ways you can help them pass trapped gas.
Breastfeeding is a beautiful journey, but it is also physically demanding. When you are worried about your baby's comfort, it is easy to forget about your own needs. You need adequate calories and hydration to keep your energy up.
If you find that you need to cut out certain foods, make sure you are replacing those nutrients. For example, if you remove dairy, look for calcium and vitamin D in leafy greens, fortified plant milks, or almonds. At Milky Mama, we believe that your well-being is just as important as your baby's. If you are looking for more structure and support, our Breastfeeding 101 course can be a helpful next step.
Breasts were literally created to feed human babies, and your body is doing something incredible. Whether you are breastfeeding, pumping, or a mix of both, remember that every drop counts. If pumping is part of your routine, our guide on pumping after breastfeeding may be useful too. You are doing an amazing job navigating these early challenges.
While gas is usually a normal (if annoying) part of infancy, there are times when it warrants a call to the pediatrician. Please seek medical advice if your baby shows any of the following symptoms:
A lactation consultant can also be an invaluable resource. They can help you troubleshoot your latch, manage an oversupply, and give you evidence-based advice on whether an elimination diet is actually necessary for your specific situation. If you want hands-on help, our certified lactation breastfeeding help page is a good place to start.
Helping a gassy baby often feels like a guessing game, but with patience and observation, you can find a rhythm that works. Most babies do not require their mothers to follow a strict or "bland" diet. In most cases, gas is caused by an immature digestive system or swallowed air rather than the food you ate for lunch.
Final Thought: You don't have to navigate this alone. Whether you need a supportive community, expert-led classes, or nourishing lactation treats, we are here to empower you every step of the way. You can also explore our lactation drink mixes and Lactation Treats collection for simple support options. Trust your instincts—you know your baby better than anyone.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice.
No, broccoli does not always cause gas in breastfed babies. While it may make the mother gassy due to its high fiber content, that fiber does not pass into the breast milk. Some babies may be sensitive to the flavor or sulfur compounds in cruciferous vegetables, but many babies tolerate them perfectly fine.
Most food proteins and flavors appear in breast milk within 2 to 6 hours after consumption. They typically clear out of the milk within 24 hours. However, if your baby has a true sensitivity to a protein like dairy, it can take 2 to 3 weeks of total elimination for the baby's symptoms to fully resolve as their gut heals.
You do not necessarily need to stop eating dairy just because your baby has occasional gas. If the gas is accompanied by other symptoms like a skin rash, extreme colic, or mucus in the stool, it may be worth trying a two-week elimination period. Always consult with a lactation consultant or pediatrician before making major dietary changes.
Spicy food can sometimes cause a "sensitivity" rash around the anus or increased gas in some babies because the strong spices can change the acidity or composition of the stool. However, many babies in cultures where spicy food is a staple do not experience these issues. It is very much dependent on the individual baby's sensitivity.