Most babies outgrow gas pains between 4 and 6 months of age. The fussiness typically peaks around 6 to 8 weeks, then gradually improves as your baby’s digestive system matures. This timeline isn’t random. Several specific developments in your baby’s gut happen during those first months that make gas less painful and less frequent over time.
Why Gas Pains Peak in the First Few Months
A newborn’s digestive system is remarkably underdeveloped. At birth, the stomach produces very little acid, and the muscles that move food through the gut haven’t yet learned to contract in coordinated waves. During the first two months, gastric acid production doubles, which helps break down milk more efficiently. But the enzymes needed to fully digest fat don’t reach adult levels until around 6 months. That gap between what’s coming in and what the gut can handle creates excess gas.
The electrical activity that controls stomach muscles is also immature at birth. It takes roughly 1 week to 6 months for the stomach to develop the coordinated muscular contractions that move food and gas through smoothly. Until that happens, gas can get trapped, causing visible discomfort: a tight, distended belly, pulling the legs up, and crying that seems to come out of nowhere.
There’s also a coordination problem on the other end. Some babies haven’t figured out how to relax their anal muscles to pass gas. They’ll push and cry, but they’re actually clenching at the same time. This resolves on its own as your baby’s nervous system matures and they develop better muscle control, usually by 3 to 4 months.
The Role of Gut Bacteria
Your baby’s intestines are essentially sterile at birth, and the bacteria that colonize them over the first weeks and months directly produce gas. Research tracking intestinal gas production in newborns found that hydrogen and carbon dioxide were barely detectable in the first week of life. By two weeks, levels of both gases increased sharply, reflecting a wave of bacterial colonization. Gas-producing bacteria begin establishing themselves in the gut at around two weeks after birth, and the total volume of intestinal gas continues to climb through the first month.
This sounds like bad news, but it’s actually part of the solution. As the diversity and number of gut bacteria increase over the first several months (and really the first several years), the microbial community becomes more balanced. Early colonizers that produce a lot of gas are gradually joined by other species that consume those gases or produce compounds that improve gut function. The transition is messy, but it’s headed in the right direction. By 4 to 6 months, most babies have a more stable gut ecosystem, and gas becomes less of a problem.
Gas Pains vs. Colic
Not all infant crying is gas, and it helps to know the difference. A gassy baby typically cries in short spurts during or after feeding, calms down after passing gas or burping, and can be soothed with cuddling or movement. The discomfort is temporary and tied to a specific trigger.
Colic follows a different pattern. It’s defined by the “rule of three”: crying more than three hours a day, more than three days a week, for longer than three weeks in an otherwise healthy baby under 3 months old. Colic episodes tend to happen at the same time each day (usually evening), and the baby is extremely difficult to soothe with normal calming strategies. Colic generally resolves by about 4 months, though it can linger until 6 months.
If your baby has bloody stools, persistent vomiting, diarrhea, constipation, a rash, or pain during bowel movements alongside excessive gas, that pattern may point to a cow’s milk allergy rather than normal developmental gas.
What Actually Helps in the Meantime
Burping
If you’re bottle feeding, burp your baby after every 2 to 3 ounces. If breastfeeding, burp when switching breasts. Some breastfed babies swallow very little air and may not need to burp at all. Three positions work well: holding the baby upright against your shoulder, sitting them on your lap while supporting their chest and head, or laying them face down across your lap. Pat gently on the back. If nothing comes up after a few minutes, move on. Not every baby burps every time, and that’s fine. After the last feeding, keep your baby upright for 10 to 15 minutes to prevent spit-up.
Movement and Positioning
Bicycle legs are one of the simplest and most effective techniques. Lay your baby on their back and gently move their legs in circular pedaling motions. You can also bend both knees and press them gently toward the belly, which helps push trapped gas through. These movements can also stimulate a bowel movement, which often provides immediate relief. Tummy time works too: the pressure of lying on the stomach helps gas move along and gives your baby a reason to use those abdominal muscles.
Feeding Technique
How your baby eats matters as much as what they eat. For bottle feeding, use a wide-based nipple with a slow flow rate. Hold your baby upright (not reclined) and keep the bottle horizontal so milk only partly fills the nipple. Tip it just enough that the nipple tip has liquid in it. It’s perfectly fine if there’s air at the base of the nipple. This paced approach lets your baby control the flow and swallow less air. Always hold the bottle yourself and keep your baby facing you so you can watch for cues that they need a break.
Gas Drops
Over-the-counter gas drops contain simethicone, which breaks up gas bubbles in the stomach and intestines. They’re safe for daily use, and the typical dose is 20 milligrams up to four times a day. That said, research has not found simethicone particularly effective at reducing fussiness or colic symptoms. Some parents report clear improvement, others notice no change. There’s no harm in trying them. If they seem to help your baby, keep using them.
Does Your Diet Matter if You’re Breastfeeding?
This is one of the most persistent beliefs in parenting: that something in your diet is making your baby gassy. The evidence, however, doesn’t support it in most cases. A systematic review of six studies found only one well-designed trial showing any benefit from a low-allergen maternal diet, and that trial showed just 30 fewer minutes of crying per day. Even then, the mothers in the study didn’t report any noticeable overall improvement.
Outside of confirmed cow’s milk allergy in the infant, there is little evidence that eliminating dairy, eggs, nuts, wheat, soy, cruciferous vegetables, or chocolate from a breastfeeding mother’s diet reduces gas or colic. The belief remains widespread and powerful, but the science doesn’t back broad dietary restrictions. If you suspect a true food allergy (look for bloody stools, rashes, vomiting, or diarrhea alongside the gas), that’s worth investigating with your pediatrician. Otherwise, you likely don’t need to overhaul what you eat.
The 4-to-6-Month Turning Point
By 4 months, most of the key developments are falling into place. Stomach acid production has increased, the gut muscles are coordinating more effectively, your baby has learned to relax the right muscles to pass gas, and the gut microbiome is becoming more diverse and stable. Fat-digesting enzymes reach adult levels around 6 months, which coincides with the introduction of solid foods for many families.
Some babies sail through this transition by 3 months. Others take closer to 6 months. If your baby was born premature, the timeline may shift later since gut maturation follows its own developmental clock. The discomfort is real, but it is temporary, and it reflects a digestive system that is building itself as fast as it can.

