Foods That Cause Gas in Babies: What to Avoid While Breastfeeding

The primary foods that cause gas in babies include cow's milk proteins, legumes, cruciferous vegetables (like broccoli and cabbage), and excessive caffeine. These components pass through breast milk and can trigger fussiness in sensitive infants. Managing your intake by soaking legumes for 24 hours or trying a 7-day dairy elimination diet supports your baby's digestion, and the safe list further down covers what you can eat freely.

Solution for a Gassy Baby: What to Eat & Avoid While Breastfeeding

A baby crying for hours, pulling their legs to their tummy, and a worried mother wondering, "Was it something I ate?" This is one of the most common and draining situations for new moms. In my clinical experience, I observe that while maternal diet isn't always the sole culprit, specific food proteins directly impact an infant's developing gut.

Rather than unnecessarily restricting your diet, we can manage these gas crises scientifically without compromising your milk quality.

Remember, what you eat isn't always the trigger, but the right nutrition strategy directly shapes your baby's comfort. Beyond gas concerns, I cover the overall energy and weight balance of the breastfeeding period in the breastfeeding nutrition for mothers guide.

Is Breast Milk the Only Cause of Your Baby's Gas Pain?

The first and most important fact is this: Gas pain (colic) in babies is often a normal, temporary phase. A baby's developing gut flora is still maturing. However, components from certain foods you eat can pass into your bloodstream and then into your milk, causing fussiness in sensitive infants. (Source: American Academy of Pediatrics).

Does gas pass from breast milk to the baby? The gas itself does not. Gas formed in the gut never enters the bloodstream, so it cannot reach milk; what does pass through are food proteins. Cow’s milk protein (beta-lactoglobulin) has been measured in human milk and provokes a reaction in sensitive infants. The effect of cabbage or chickpeas is far less clear-cut: some babies show it, most do not. The practical conclusion is to test dairy first and not to cut vegetables and legumes wholesale.

Which Foods Cause Gas in Babies? (Detailed List)

Some foods can have a "gas bomb" effect due to their sulfur compounds or indigestible carbohydrates. Here are the most common culprits:

1. Cow's Milk and Dairy (The Most Common Cause)

The problem usually isn't the lactose you consume, but your baby's inability to digest cow's milk protein (casein). Cheese, yogurt, butter, and milk-based desserts can cause gas, mucousy stools, and even skin rashes in your baby.

2. Legumes and Grains

Chickpeas, lentils, kidney beans, and pinto beans contain "oligosaccharides," which are hard to digest. They ferment in your gut, creating gas, and this discomfort can be passed on through your milk.

3. Sulfur-Rich Vegetables (Cruciferous)

Cabbage, cauliflower, broccoli, leeks, onions, and garlic. These vegetables are very healthy, but when eaten raw, their sulfur content can trigger gas pain.

4. Stimulants and Acidic Foods

Excessive caffeine (coffee, chocolate), spicy seasonings (red pepper flakes, hot peppers), and acidic fruits (oranges, tangerines) can cause infant reflux symptoms and fussiness in some babies.

Would you like to receive professional diet counseling?

Yes, I Do

Pear, Chickpeas, Peppers: Which Foods Cause Gas, One by One?

These are the foods clients ask about most, taken one at a time. What decides the outcome is not the name of the food but the form and the amount: the same pear that bloats you raw and unpeeled causes no trouble stewed. Use the table alongside the rule of watching your baby for 24-48 hours after adding anything new.

FoodGas riskSafe form and practical note
PearModerateAmong the highest fruits for sorbitol and fructose; more than 1 raw unpeeled pear a day can bloat the mother. Peeled or stewed, the risk is low.
AppleLow to moderateSame mechanism as pear, milder. Grated or cooked apple is noticeably better tolerated in the early months.
ChickpeasHighCarry indigestible galacto-oligosaccharides. Soak 24 hours, discard the water, cook with cumin; stay under 2 portions a week while symptoms last.
Dried beans, borlottiHighSame group as chickpeas and harder to tolerate. This is the first legume to drop during a bad spell.
LentilsModerateSplit red lentils are visibly lighter than green or brown; soup is the form most easily tolerated.
PeppersVariableSweet peppers are low risk. The capsaicin in chilli and pepper flakes unsettles some babies; cut the amount and watch the reaction.
Cabbage, broccoli, cauliflowerHigh (raw)Carry raffinose and sulphur compounds. Steaming and discarding the cooking water drops the risk markedly.
Onion, garlicHigh (raw)A source of fructans. Thoroughly cooked in a meal they cause no trouble; avoid them raw in salads.
BananaLow (ripe)Ripe banana is safe. The resistant starch in unripe green banana ferments in the gut and bloats.
Rice, potatoLowThe safest pair. Make them your main carbohydrate on the heaviest gas days.
EggLowDoes not cause gas, but like dairy it can be an allergen; assess separately if a rash comes with it.
Cow’s milk and dairyHighNot a gas-forming group but a reaction-provoking one. If you suspect it, cut it for 1 week (7 days) and reintroduce.

How to Make Gassy Foods More Baby-Friendly

The foods listed are very nutritious, so reducing their effects is healthier than cutting them out completely. Here are some dietitian tips:

Food Group How to Reduce Gas
Legumes Soak for at least 24 hours, discard the water, and add cumin while cooking.
Cabbage / Broccoli Never eat them raw. Steam or boil them, and discard the cooking water.
Onion / Garlic Don't add them raw to salads; cook them thoroughly in your meals.
Dairy Products If you suspect dairy, try a dairy elimination diet for 1 week (7 days). If your baby feels better, try lactose-free or goat's milk products.

Gas in Newborns: Why Are the First 3 Months Harder?

What makes complaints peak in the newborn period is not the mother’s table but the baby’s immature digestive system. Gut flora is still being established in those first weeks, the valve between stomach and oesophagus is still slack, and air swallowed during feeds gathers easily. Fussiness typically starts in week 2, peaks around week 6 and eases on its own by month 3 to 4.

That timeline has a practical consequence: reading the week-6 rise as "something I ate yesterday" usually misleads, because the same climb shows up in mothers who changed nothing. If you do run an elimination trial, run it with one food, over 2-3 weeks, and keep notes; cut five foods at once and you will never know which one helped. At 4 to 6 months solids change the picture again, and this time what the baby eats is what decides it.

Foods That Don't Cause Gas (Safe List for Breastfeeding Moms)

Knowing what you can eat with peace of mind matters as much as knowing what to avoid. The safe list I give my clients:

  • Vegetables: Zucchini, carrots, spinach, chard, purslane, potatoes. Steamed or boiled, they carry the lowest gas risk.
  • Fruits: Apples, pears, quince, and ripe bananas. Unlike acidic citrus, they rarely cause fussiness in babies.
  • Protein sources: Boiled eggs, grilled or poached chicken, fish, and red meat. Choose grilling and boiling over frying.
  • Grains: Rice and oats are the safest pair; bulgur can cause gas in some babies, so introduce it gradually.
  • Drinks: Warm water, fennel tea, linden, and dill tea soothe the mother and support digestion.

Even with a safe list, every baby's tolerance differs; when adding a new food, watch your baby's reaction for 24-48 hours.

Personalized online diet program. Start now!

Book Online

What Should a Breastfeeding Mom Eat to Avoid Gas? (Sample Menu)

When gas pain is at its peak (usually in the evenings), here is a sample "Safe Menu" to help soothe both you and your baby:

  • Breakfast: Boiled egg + Dill (a natural gas reliever) + Feta cheese (test first) + Tahini-molasses (provides energy, doesn't cause gas) + Linden tea.
  • Lunch: Boiled chicken with cumin or grilled meatballs + White rice (Bulgur can cause gas) + Carrot salad.
  • Snack: 1 cup of fennel tea + 2 walnuts + Dried mulberries.
  • Dinner: Zucchini or spinach dish (with rice) + Compote (apple or quince, unsweetened).

What Should a Breastfeeding Mom Drink for a Gassy Baby? The Most Potent Natural Gas Relievers

Before reaching for medication, you can use the natural remedies in your kitchen:

  1. Cumin: Gas pain's number one enemy. Add it to food or brew it as a tea.
  2. Fennel Tea: Passes through breast milk to soften the baby's bowels and aid digestion.
  3. Dill: A natural gas expeller; you can eat it raw with every meal.
  4. Warm Water: Drinking cold water can increase gas for the mother. Drinking warm water helps relax the intestines.

Drinks to avoid: fizzy drinks, shop-bought fruit juice, iced water and excess caffeine. Caffeine stays in a newborn’s blood far longer than in an adult’s; 200-300 mg a day (roughly 2-3 cups of filter coffee) is generally considered safe while breastfeeding, and staying near the lower end in the first months keeps the baby more settled.

Why Should You Work with a Registered Dietitian?

Trying to follow "forbidden food" lists from the internet can lead to a decrease in breast milk supply and leave you exhausted. Every baby's tolerance is different. Is your baby reacting to dairy, or are they just swallowing air?

With professional guidance:

  • We map out your baby's gas triggers (Which food affects them, and how many hours later?).
  • We use "Pinpoint Elimination" instead of unnecessary restrictions.
  • A gas-free eating plan is created that protects your milk quality.

A gassy baby isn't an unhappy baby; they're just a baby learning to digest. To make this process as comfortable as possible for both of you, you can reach me through online infant nutrition counseling for a personalised, gas-free plan.

Frequently Asked Questions

The most common gas-producers are cow's milk products, raw onion and garlic, legumes (chickpeas, beans), cabbage, broccoli, spicy foods and chocolate. Cow's milk protein heads that list; the effect of the others varies sharply from baby to baby. Test them one at a time and watch for 24-48 hours rather than cutting the lot at once.
Yes, cumin seeds have a 'carminative' (gas-relieving) effect. When a mother drinks cumin tea or adds it to her food, the active compounds can pass into her milk and help soothe the baby's digestion. One or two cups a day is enough, and steeping for 5 minutes rather than boiling preserves the volatile oils. The effect builds over a few days rather than working instantly.
Anything the mother has trouble digesting can also unsettle the baby, and greasy fried foods, processed packaged goods and fast food lead that group. The protein and lactose content of milk stays largely independent of the maternal diet; what diet genuinely shifts is the fatty acid profile. The trouble is not spoiled milk but the mother's own digestion and a meal pattern that has come apart.
If your baby gets gassy when you drink cow's milk, try it warm with a pinch of cinnamon or cumin. If the problem persists, switch to lactose-free or plant-based milks such as almond or oat. The clearest answer comes from cutting it fully for 1 week (7 days) and reintroducing: relief while off it and symptoms returning on reintroduction point to cow's milk protein sensitivity.
A baby's digestive system typically starts to mature around 4 months, and colic and gas pains ease markedly by months 3 to 4. After that you can bring the restricted foods back one at a time, leaving 2-3 days between them. Keeping a blanket restriction going beyond 2-3 weeks serves no purpose; no food is banned permanently.
The mother's diet is a long-term solution. For immediate relief, the fastest methods are holding the baby upright against your shoulder and patting their back, doing 'bicycle legs,' and massaging the tummy clockwise with warm oil. Holding them upright for 10-15 minutes after a feed makes a difference on its own in most babies and needs nothing at all.
When a mother consumes cumin, fennel, dill, ginger, linden tea and plenty of warm water, the soothing properties of these foods pass into her milk and can help relieve the baby's gas pain. Two or three cups of herbal tea a day is enough. Taking raw onion, dried legumes and excess caffeine off her own plate at the same time makes the difference far more noticeable.
Naturally, the combination of fennel and cumin is the most powerful; both are carminative and reach the baby through the milk. The medical option is simethicone drops, given only under a doctor's supervision. Giving fennel tea directly to a baby under 6 months is not advised; through the mother it is both safer and enough.
It is not just the mother's diet. Excessive gas can also come from swallowing air during an improper latch, from bottle feeding, from being cold, or from an underlying cow's milk allergy or lactose intolerance. Correct the latch and a large share of the complaints eases without touching the diet at all, which is why the latch, not the plate, is the first place to look.
Yes, lentils sit among the gassier legumes because of their indigestible oligosaccharides. Split red lentils are visibly lighter than green or brown ones. Cooking with cumin, then blending and straining, reduces the effect further. In the first months keep it to 1-2 portions a week and watch your baby for 24-48 hours afterwards.
The safest group for a nursing mother: steamed zucchini, carrots, spinach, and potatoes; apples, pears, quince, and ripe bananas among fruits; boiled eggs, grilled chicken, and fish for protein; rice and oats among grains. Fennel tea and linden also ease digestion. Still, every baby differs; introduce each new food while watching your baby for 24-48 hours.
Both are among the safest carbohydrate sources for gas. Rice contains no oligosaccharides, so it does not ferment in the gut; boiled or baked potatoes digest just as easily. Bulgur and whole grains can trigger sensitivity in some babies, so during heavy gas periods it is wiser to prioritize rice and potatoes.
Dyt. Şeyda Ertaş

Dyt. Şeyda Ertaş

Expert Author

Dietitian & Nutrition Specialist

BSc in Nutrition and Dietetics, Hacettepe University. Over 7 years of professional experience guiding 2000+ clients toward healthier lives through science-based nutrition.

View Profile

Free Pre-Application

Applying is free; no credit card details are required. Our assistant receives your request and contacts you about the next steps.

KVKK & GDPR compliant SSL encrypted Replies during working hours

Let’s get to know you

Share your details so we can get in touch.

Gender
How can we help you?

Choose your service and add a short message if you wish.

Application Received!

Your application has reached us. We will contact you soon.

Working Hours

Monday - Friday: 09:00 - 19:00
Saturday: 09:00 - 14:00
Sunday: Closed

Applications received outside working hours or on holidays will be responded to on the next business day.

Have a question about your application?