Yes, onions can affect breast milk. Sulfur compounds from onions transfer into breast milk and change its smell and taste, typically peaking about 2 to 3 hours after you eat them. Most babies handle this fine, but some infants may become fussy or show colic symptoms in response.
How Onion Flavors Get Into Breast Milk
When you eat onions, your body breaks down their sulfur compounds during digestion. One of those breakdown products, allyl methyl sulfide, is the main culprit behind flavor changes in breast milk. It carries a garlic-like or cabbage-like odor, and it’s the only one of the major sulfur metabolites that actually has a noticeable smell. The other two related compounds your body produces are odorless.
Research on closely related allium vegetables (onions, garlic, and wild garlic all belong to the same plant family and share overlapping sulfur chemistry) shows that trained sensory panelists can detect a distinct garlic or cabbage-like smell in breast milk samples collected after consumption. The change is subtle but real, and most mothers can perceive a difference in the taste of their milk within a few hours of eating these foods.
When the Flavor Peaks and Fades
The flavor change in breast milk follows a predictable window. Volatile compounds from allium vegetables typically become detectable about 2 hours after eating and reach their highest concentration between 2 and 3 hours. For some women, levels continue rising for up to 5 hours before declining. By about 8 hours after eating, the flavor compounds generally return to baseline.
This means if you eat onions at lunch, the strongest flavor effect on your milk will likely fall in the mid-afternoon. If your baby seems unbothered, there’s no reason to time your meals around this window. But if you notice fussiness, shifting the timing of an onion-heavy meal to right after a feeding gives the compounds more time to clear before the next session.
Onions and Infant Colic
A study published in the Journal of the American Dietetic Association tracked the diets of breastfeeding mothers alongside colic symptoms in their exclusively breastfed infants. Onion consumption was significantly associated with colic, with a relative risk of 1.7. To put that in practical terms, babies whose mothers ate onions were roughly 70% more likely to show colic symptoms compared to babies whose mothers didn’t.
That said, onions weren’t the strongest predictor. Cow’s milk in the mother’s diet carried a relative risk of 2.0, making it the most strongly associated food. Cabbage, cauliflower, broccoli, and chocolate also showed statistically significant links to colic symptoms. So onions are one of several foods worth paying attention to if your baby is frequently gassy or irritable, but they’re not uniquely problematic.
It’s also worth noting that this was an observational study, not a controlled trial. The association is real and consistent enough to take seriously, but it doesn’t mean onions will cause colic in every baby. Many breastfed infants have no reaction at all.
Cooked vs. Raw Onions
Cooking onions breaks down some of the carbohydrates and volatile compounds that make them harder to digest. This is well established for adults with sensitive stomachs or irritable bowel syndrome, and there’s good reason to think the same principle applies to breast milk transfer. Raw onions contain higher concentrations of the sulfur compounds responsible for flavor changes in milk. Sautéing, roasting, or caramelizing onions reduces those compounds, so if you want to keep onions in your diet while minimizing their impact, cooking them thoroughly is a reasonable approach.
No Need for Blanket Restrictions
Major children’s hospitals and breastfeeding guidelines do not recommend that nursing mothers avoid onions as a rule. The dietary restrictions that apply during pregnancy (certain fish, unpasteurized cheese) don’t carry over to breastfeeding. The general guidance is straightforward: eat a varied diet, and if your baby consistently reacts to a specific food, try eliminating it for a few weeks to see if symptoms improve. Then reintroduce it to confirm the connection.
This trial-and-error approach works because every baby’s sensitivity is different. Some infants are perfectly content after their mother eats a bowl of French onion soup. Others get cranky after even a small amount of raw onion in a salad. Your baby’s behavior is a more reliable guide than any universal food list.
Flavor Exposure May Shape Future Preferences
There’s an interesting upside to flavor transfer through breast milk. Research shows that when babies are repeatedly exposed to a flavor through amniotic fluid or breast milk, they tend to accept that flavor more readily when they start eating solid foods. The strongest evidence comes from garlic studies, where children whose mothers ate garlic during late pregnancy consumed about 60% more garlic-flavored food at ages 8 to 9 compared to children whose mothers avoided it.
While this particular long-term study focused on garlic rather than onions, the underlying mechanism is the same: the sulfur compounds from allium vegetables reach the baby through breast milk, and that early exposure appears to build familiarity. Breastfeeding with a varied diet, including onions and other strongly flavored foods, may give your child a head start on accepting a wider range of tastes during weaning and beyond.

