The causes of constipation shift as your baby grows, because their diet and digestive system are changing constantly. A newborn's gut is fundamentally different from a nine-month-old's, which is why a one-size-fits-all approach to constipation does not work.
In the first month of life, true constipation is rare and should always be evaluated by a pediatrician. If a newborn has not passed meconium within 48 hours of birth, that can indicate Hirschsprung's disease — a condition where nerve cells in the colon are missing — and requires prompt medical attention. This is uncommon, but it is why constipation in very young babies is taken seriously.
For breastfed babies between one and four months, constipation is genuinely uncommon. Breast milk contains natural laxative properties, and breastfed stool is typically soft, seedy, and yellow. If your exclusively breastfed baby is producing hard stools, something unusual is going on, and your pediatrician should know.
Formula-fed babies are more prone to firmer stools than breastfed babies — this is normal. Formula stool is typically paste-like and tan or yellow-brown. But there is a difference between "firmer than breastfed poop" and "hard pellets that cause pain." If your formula-fed baby is struggling, the formula preparation matters — too much powder relative to water creates a concentrated formula that can contribute to harder stools.
The most common age for constipation to first appear is four to six months, right when solids enter the picture. That brand-new digestive system is suddenly being asked to process things it has never encountered before, and it takes time to adjust. Rice cereal, bananas, and applesauce — three of the most popular first foods — are also three of the most constipating.