What Causes Baby Constipation and When to Worry

The most common causes of baby constipation are the switch to formula, the introduction of solid foods, and not getting enough fluids. Less often, a cow’s milk protein allergy or an underlying medical condition is responsible. What counts as constipation in a baby, though, is easy to misjudge, because normal stool frequency varies widely depending on age and feeding method.

What Counts as Constipation in a Baby

Babies who are exclusively breastfed poop far more often than formula-fed babies, especially in the first two months. Breastfed newborns average about five bowel movements per day in the first month, while formula-fed newborns average closer to two. By the second month, breastfed babies still go about three times a day compared to roughly 1.6 times for formula-fed infants. These are averages, so some healthy babies fall well outside them.

Pediatricians generally look for at least two of the following signs lasting a month or more before diagnosing functional constipation in a baby under four: fewer than two bowel movements per week, hard or painful stools, a history of holding stool in, or large-diameter stools. The key detail is stool consistency, not frequency alone. A breastfed baby who goes several days without a bowel movement but then passes a soft stool is almost certainly fine.

Straining That Isn’t Constipation

Many parents worry when their baby turns red, grunts, or cries for 10 to 30 minutes before passing a stool. If the stool itself is soft and normal-looking when it finally comes out, this is likely infant dyschezia, not constipation. Babies have to learn to coordinate relaxing their pelvic floor muscles while pushing with their abdomen, and it can take weeks to get the hang of it. Straining looks the same whether a baby is working against hard stool or against their own uncoordinated muscles. Hard, pellet-like, or bloody stool points to constipation. Soft stool after a struggle points to dyschezia, which resolves on its own.

How Formula Affects Stool

Formula-fed babies tend to have firmer stools than breastfed babies, and the reason comes down to fat chemistry. During digestion, certain fats in formula (particularly palmitic acid) are released in a form that binds with calcium in the gut, creating soap-like compounds. These fatty acid soaps make stool harder and drier. Breast milk delivers its fats in a slightly different structural arrangement that produces fewer of these soaps.

Some formulas are now designed with fat structures that more closely mimic breast milk, and clinical trials show they do produce softer stools and lower soap concentrations. Formulas that also include prebiotic fibers (non-digestible oligosaccharides) soften stool further by encouraging fermentation in the colon. If your formula-fed baby is consistently producing hard stools, switching to a different formula may help, though it’s worth discussing with your pediatrician first since not all switches make a difference.

Starting Solid Foods

The transition to solids, typically around six months, is one of the most common triggers for constipation. A baby’s digestive system is adjusting to foods that are bulkier and lower in water content than milk. Certain first foods are particularly binding. Rice cereal, bananas, and applesauce are frequent culprits. Switching to barley or oatmeal cereal and offering fruits like peaches, plums, pears, and prunes can help keep things moving. Prunes and pears contain sorbitol, a natural sugar alcohol that draws water into the intestine and softens stool.

When you start solids, your baby also needs a small amount of water. The American Academy of Pediatrics suggests 4 to 8 ounces of water per day for babies between 6 and 12 months. Before six months, breast milk or formula provides all the hydration a baby needs. Offering water too early won’t help with constipation and can interfere with milk intake.

Cow’s Milk Protein Allergy

Cow’s milk protein is the most common food allergen known to affect gut motility in children, and constipation is one of its lesser-known symptoms. Unlike the classic allergic reactions people think of (hives, swelling), this type of allergy involves a slower immune response that doesn’t show up on standard allergy blood tests or skin prick tests.

The mechanism is specific: the allergic reaction causes inflammation in the rectum, not a general slowdown of the entire digestive tract. Immune cells called mast cells cluster near the nerve endings that control the muscles of the rectum and anus, raising the resting pressure of the anal sphincter and making it physically harder to pass stool. The resulting pain from straining, fissures, or inflammation can then trigger withholding behavior, where the baby resists the urge to go, creating a cycle that worsens the constipation.

The telling sign is that the constipation resolves completely when cow’s milk protein is removed from the diet. For breastfed babies, this means the mother eliminates dairy. For formula-fed babies, it means switching to a hydrolyzed or amino acid-based formula. If constipation has been persistent and hasn’t responded to the usual dietary changes, a cow’s milk protein allergy is worth exploring.

What You Can Do at Home

For babies older than one month, a small amount of fruit juice can act as a gentle stool softener. Apple juice, pear juice, and (for babies over three months) prune juice all contain sorbitol. The Mayo Clinic suggests keeping juice intake under 4 ounces. Your pediatrician can give you a more precise amount based on your baby’s age and weight.

Physical techniques also help. Gentle tummy massage and cycling your baby’s legs in a bicycle motion are the most commonly recommended approaches. A meta-analysis of clinical trials found that infant massage, when combined with standard treatment, significantly reduced constipation symptom scores and improved defecation difficulty compared to treatment alone. The massage didn’t dramatically change how often babies pooped, but it did make the process easier and less uncomfortable. You can try gentle clockwise circles on the lower belly, or slowly push both knees toward the chest and release, repeating several times.

Adding a small amount of prune juice or flaxseed oil to cereal is another simple fix during the solid food stage. If you’re formula feeding, mixing a little prune juice into a bottle can help, though you don’t want juice to replace a significant portion of milk calories.

Signs of Something More Serious

Most baby constipation is functional, meaning there’s no structural or neurological problem causing it. But a few signs warrant prompt medical attention. If a newborn doesn’t pass their first stool (meconium) within 48 hours of birth, this can indicate Hirschsprung disease, a condition where nerve cells are missing from part of the large intestine. Other warning signs include severe abdominal swelling, persistent vomiting, failure to gain weight, or constipation that begins in the very first weeks of life and never improves. Blood in the stool can mean a simple anal fissure from passing hard stool, but it can also signal the rectal inflammation associated with a milk protein allergy, so it’s worth mentioning to your pediatrician either way.