What Causes Gas in Babies: Air, Diet, and More

Gas in babies is almost always caused by swallowed air, an immature digestive system, or both. A newborn’s gut is still learning to process milk, coordinate muscle movements, and build the bacterial ecosystem it needs to digest food efficiently. That combination means some gas is completely normal, especially in the first three to four months of life.

Why Newborn Digestion Produces Gas

A baby’s digestive system is fairly inefficient at birth. The muscles that move food through the intestines are still developing coordination, which means milk can sit longer in the gut and ferment. Babies also have lower levels of the enzymes needed to fully break down the sugars in breast milk and formula. When those sugars reach the lower intestine only partially digested, bacteria ferment them and produce hydrogen and other gases.

This is especially true for lactose, the primary sugar in both breast milk and standard formula. In the first few months, some lactose naturally passes through to the colon undigested, where gut bacteria break it down and release gas. This process, sometimes called lactose overload in breastfed babies, is so common that tests for unabsorbed sugars in stool come back positive in most normal breastfed infants. It’s not the same thing as lactose intolerance and doesn’t require treatment. True lactose intolerance in infants is rare and usually temporary, showing up after a stomach bug or severe cow’s milk protein allergy damages the intestinal lining. Once the gut heals, lactase production returns to normal.

Air Swallowing During Feeding

The single biggest controllable source of infant gas is swallowed air, known medically as aerophagia. Every baby swallows some air while feeding, but certain situations increase the amount dramatically.

For breastfed babies, a shallow or poor latch is the most common culprit. When the baby doesn’t form a tight seal around the breast, air slips in alongside the milk. Babies who gulp, splutter, or have trouble managing a fast milk flow also take in excess air. Scheduled feeds can contribute too, because a very hungry baby tends to feed frantically and swallow more air in the process.

For bottle-fed babies, nipple flow rate matters. A nipple that flows too fast forces the baby to gulp, while one that’s too slow makes them suck harder and pull in air around the sides. Tilting the bottle so the nipple stays full of milk (rather than half-filled with air) helps reduce how much air enters with each swallow. Paced bottle feeding, where you hold the bottle more horizontally and let the baby control the pace, can also make a noticeable difference.

Crying is another major source. A baby who cries for extended stretches before or between feeds swallows significant amounts of air, which then works its way through the digestive tract and causes discomfort later.

Tongue-Tie and Lip-Tie

Some babies have a structural reason for swallowing extra air. Tongue-tie (a tight band of tissue under the tongue) and lip-tie (a tight band connecting the upper lip to the gum) can prevent the baby from forming an adequate seal during feeding. The result is disorganized swallowing, where air mixes freely with milk at every feed. If your baby makes clicking sounds while nursing, frequently loses the latch, or seems to struggle despite good positioning, these oral restrictions may be worth evaluating. Correcting the feeding issue so less air is swallowed can reduce or eliminate the downstream gas and reflux.

Cow’s Milk Protein and Other Food Sensitivities

For breastfed babies, the mother’s diet occasionally plays a role. Foods containing cow’s milk protein are the most commonly reported trigger for gas and fussiness in newborns. Cow’s milk protein and soy are the two most common allergens for infants. If a baby has a true milk protein allergy, the proteins pass through breast milk and irritate the baby’s gut, producing gas, mucousy stools, and sometimes blood-streaked stool.

Other foods often blamed for infant gas include caffeine, cruciferous vegetables (broccoli, cabbage, cauliflower), and legumes. The evidence here is thin. There is limited scientific research proving that specific foods in a breastfeeding mother’s diet cause intestinal issues in their babies. If you suspect a food is the problem, eliminating it for two to three weeks and watching for improvement is reasonable, but wholesale dietary restriction isn’t supported by evidence unless an allergy has been identified.

For formula-fed babies, the protein type in the formula can matter. Standard formulas contain intact cow’s milk proteins (casein and whey) that some babies struggle to digest. Hypoallergenic formulas break those proteins into smaller, easier-to-digest pieces. Switching formula is worth discussing with your pediatrician if gas is persistent and accompanied by other symptoms like skin rashes, vomiting, or consistently mucousy stools.

The Developing Gut Microbiome

A baby’s intestines aren’t sterile at birth, but they’re far from fully colonized. Over the first weeks and months, bacteria establish themselves in the gut and begin breaking down the sugars in milk. Many of these bacteria produce short-chain fatty acids during fermentation, which are beneficial for gut health but also generate gas as a byproduct. Breast milk contains complex sugars called human milk oligosaccharides that specifically feed beneficial bacteria. The digestion of these sugars produces additional gas, which is one reason breastfed babies often have more detectable unabsorbed sugars in their stool than formula-fed babies.

As the microbiome matures and diversifies over the first few months, the bacterial balance shifts. Gas-producing strains become better balanced by organisms that consume hydrogen and other gases. This is a key reason why infant gassiness tends to peak around six to eight weeks and then gradually improve by three to four months.

Signs That Gas May Be Something More

Most infant gas is harmless, but certain symptoms signal something beyond normal digestive growing pains. Watch for high-pitched or persistent crying that doesn’t respond to normal soothing, fever of 100.4°F or higher in a baby three months or younger, vomiting or diarrhea, poor feeding or refusal to eat, and any noticeable change in alertness or sleep patterns.

Some situations call for immediate emergency care: bright green vomit (which can indicate a bowel obstruction), a hard and visibly distended belly with inconsolable crying, or blood in vomit or stool. Intense or recurring vomiting after feedings, even without those urgent signs, is worth a call to the pediatrician. These symptoms don’t necessarily mean something is seriously wrong, but they need evaluation to rule out conditions like reflux disease, milk protein allergy, or structural problems in the digestive tract.