What Foods Should I Avoid While Breastfeeding to Prevent Gas?
Posted on January 26, 2026
Posted on January 26, 2026
Watching your baby struggle with gas can feel heartbreaking. You might notice them pulling their legs up to their chest, turning red, or crying inconsolably after a feeding. It is natural to look at your own dinner plate and wonder if that spicy taco or side of broccoli is the culprit. At Milky Mama, we believe that every parent deserves clear, evidence-based information to help navigate these stressful moments.
The relationship between your diet and your baby’s digestion is often misunderstood. While many people will tell you to cut out everything but bland chicken and rice, the reality is usually much more nuanced. This post will cover which foods may actually cause issues, why most "gassy" foods are actually safe, and how to soothe your little one’s tummy.
Our goal is to help you feel empowered and nourished while you provide for your baby. Understanding how your body creates milk and how your baby’s gut works is the first step toward a more comfortable feeding journey. Your well-being matters just as much as your baby’s, and you don’t have to live on a restrictive diet without a good reason.
To understand why certain foods might cause gas, we first need to look at how milk is produced. Your breast milk is not made directly from the contents of your stomach. Instead, it is made from your blood. When you eat, nutrients are broken down in your digestive tract and absorbed into your bloodstream.
The components in your blood then travel to the milk-making cells in your breasts. This means that things like fiber, which stays in your intestinal tract to help you digest, do not actually enter your milk. If you eat broccoli and feel gassy, it is because the fiber is breaking down in your gut. That fiber never reaches your baby.
However, certain proteins, flavors, and chemicals can pass from your blood into your milk. This is why some babies react to specific items in a parent's diet. It is usually a reaction to a protein rather than the "gassiness" of the food itself. Knowing this distinction can save you from unnecessarily cutting out healthy, fiber-rich vegetables.
If a food in your diet is truly causing gas and fussiness, the most likely suspect is cow’s milk protein. This is different from lactose intolerance. Almost all human milk contains lactose, which is a vital sugar for brain development. A cow's milk protein allergy or sensitivity happens when the protein from the dairy you eat enters your bloodstream and then your milk.
Your baby’s immature digestive system—meaning their gut is still learning how to process complex proteins—may see these foreign proteins as a threat. This can lead to inflammation, gas, and significant discomfort.
Common signs of a dairy sensitivity include:
If you suspect dairy is the issue, many lactation consultants recommend a total elimination for two to three weeks. It takes time for the proteins to leave your system and even longer for the baby’s gut to heal. If you decide to try this, we offer many dairy-free lactation supports, like our Lady Leche™ herbal supplement, to keep your supply steady while you adjust your diet.
Cruciferous vegetables include broccoli, cabbage, cauliflower, and Brussels sprouts. These are famous for causing gas in adults. Because of this reputation, breastfeeding parents are often told to avoid them at all costs.
As we mentioned earlier, the gas these vegetables cause in adults is due to the breakdown of complex fiber in the large intestine. Since fiber does not pass into breast milk, these vegetables are usually not the reason for a gassy baby. Most babies tolerate these nutrient-dense greens perfectly well.
In fact, eating a variety of vegetables can be beneficial. It exposes your baby to different flavors through your milk, which may help them be more open to different foods when they start solids. Unless you notice a very clear pattern where your baby is miserable every single time you eat a specific vegetable, there is no need to cut these out.
Spicy foods are another category that often gets a bad rap. Many cultures around the world consume high levels of spice while breastfeeding without any issues. Capsaicin, the compound that makes peppers hot, does not typically pass into milk in a way that would "burn" the baby or cause intestinal gas.
Garlic is interesting because it does change the smell and flavor of your milk. However, studies have shown that many babies actually like the taste of garlic-flavored milk. They may even nurse longer and more vigorously when garlic is present.
If your baby seems irritable after you eat spicy or pungent foods, it might be a temporary sensitivity, but it is rarely a cause of chronic gas. If you enjoy these flavors, you don't have to stop eating them just because you are nursing.
While not "gassy" in the traditional sense, what you drink can affect how your baby acts and feels. High levels of caffeine can pass into breast milk. Newborns, in particular, have a very hard time processing caffeine. It can stay in their system much longer than it stays in yours.
If a baby is overstimulated by caffeine, they may become fussy, jittery, and have trouble sleeping. This fussiness can sometimes be mistaken for gas pain. If you notice your baby is especially "wired" after your morning coffee, try limiting your intake or timing it right after a nursing session.
Similarly, high amounts of sugar and processed foods can sometimes affect a baby’s comfort. While a treat now and then is perfectly fine, a diet very high in processed sugars can occasionally lead to changes in the gut microbiome of both the parent and the baby. Staying hydrated with something like our lactation drink mixes can help you stay refreshed without the caffeine crash.
It is very common to blame the mother’s diet for gas, but most infant gas is a result of normal development or feeding mechanics. Before you restrict your diet, consider these other very common causes of gas:
If a baby does not have a deep, secure latch, they may take in air while they suck. This is especially common with a shallow latch or if the baby is "clicking" while they nurse. That air has to go somewhere—it either comes up as a burp or goes down as gas.
Some parents have a very fast let-down reflex. This is when the milk begins to flow quickly after the baby starts sucking. If the milk comes out too fast, the baby might gulp and swallow air as they struggle to keep up with the flow. This can lead to a very gassy, fussy baby who seems overwhelmed at the breast.
Babies are born with "leaky" guts that are still developing. Their bodies are learning how to move waste through the intestines (peristalsis). Sometimes, the muscles just don't coordinate perfectly yet, leading to trapped bubbles. Most babies simply outgrow this by 3 or 4 months of age.
When a baby cries for a long time—whether due to overstimulation, tiredness, or hunger—they swallow a significant amount of air. This creates a cycle where the baby cries, gets gassy, and then cries more because the gas hurts.
Key Takeaway: Most infant gas is caused by swallowing air or an immature digestive tract, not by the specific foods the parent is eating.
If your baby is struggling with gas, there are several things you can do to help them find relief that don't involve changing your diet.
For personalized help with latch, positioning, and feeding mechanics, consider professional breastfeeding help from a lactation consultant.
If you have addressed latch issues and burping techniques and your baby is still in significant pain, an elimination diet might be the next step. However, it is important to do this systematically.
Don’t cut out five foods at once. If you do, you won't know which one was actually the problem. Start with the most likely culprit: dairy. If there is no change after two weeks, move on to soy, which has a similar protein structure to dairy.
Keep a food and symptom diary. Note what you ate and how the baby acted 4 to 24 hours later. This can help you identify true patterns versus coincidences. Remember, your body needs calories and nutrients to make milk. If you cut out too many food groups, you might feel exhausted and depleted. Our Pumping Queen™ herbal supplement is a great way to support your milk production during times when your diet might be changing.
True food sensitivities usually come with more than just gas. If your baby is happy and gaining weight, but just happens to be a bit "farty," it is likely normal development. You should be more concerned if you see:
If you see these symptoms, it is time to consult with your pediatrician and an International Board Certified Lactation Consultant (IBCLC). They can help you determine if a medical intervention or a specific diet is necessary.
While we focus on the baby, we cannot forget about you. Breastfeeding is hard work. Your body requires an extra 500 calories a day to produce milk. When parents start cutting out "gassy" foods like beans, broccoli, and whole grains, they often lose out on vital nutrients like fiber, iron, and B vitamins.
A restricted diet can lead to:
At Milky Mama, we want you to feel nourished. Our Emergency Brownies are a favorite for a reason—they provide a delicious way to get in supply-boosting ingredients like oats and flaxseed while giving you a much-needed treat. Don't sacrifice your own health in pursuit of a "perfect" breastfeeding diet that might not even be necessary.
If you are worried about gas, follow this checklist before making major dietary changes:
What to do next: If you suspect a dairy sensitivity, start by replacing your morning milk or cheese with a plant-based alternative. Focus on high-quality hydration and gentle herbal support while you observe your baby's symptoms.
Breastfeeding is a journey filled with learning curves, and dealing with a gassy baby is one of the most common hurdles. While it is tempting to blame your last meal, remember that most gas is a normal part of your baby’s development. Their little bodies are working hard to figure out how to digest and move air.
You are doing an amazing job providing for your little one. Whether you need to make a small adjustment to your diet or just need some tips on a better latch, support is always available. Every drop counts, and so does your peace of mind. Trust your instincts, but also trust the science that says your milk is exactly what your baby needs.
For more support on your breastfeeding journey, explore the Milky Mama Breastfeeding Resource Center, which includes guides on feeding, milk supply, pumping, newborn care, and nutrition.
This product is not intended to diagnose, treat, cure, or prevent any disease. Consult with your healthcare provider for medical advice.
Spicy foods are generally safe and do not cause intestinal gas in babies because the heat-producing compounds don't typically pass into milk in large amounts. However, some babies may be sensitive to the change in flavor or have a mild reaction to specific spices, so monitor your baby for unusual fussiness.
Most food proteins and flavors appear in breast milk within 2 to 6 hours after consumption and usually peak around the 4-hour mark. If your baby has a true sensitivity, the protein may linger in your system for several days, which is why elimination diets are usually recommended for at least two weeks.
No, this is largely a myth because the fiber that causes gas in adults does not pass into breast milk. While a very small number of babies might be sensitive to the specific proteins in these vegetables, most can tolerate them without any increased gas or discomfort.
No, gas is rarely a reason to stop breastfeeding, as breast milk is the most easily digested food for an infant's gut. Instead of weaning, focus on improving the baby's latch, burping more frequently, or identifying a specific protein sensitivity like cow's milk with the help of a lactation consultant. You can also explore Breastfeeding 101 for additional feeding education.