What Causes Constipation in Kids: Diet, Habits & More

Constipation is one of the most common digestive problems in childhood, accounting for a significant share of pediatric doctor visits. In most cases, the cause is “functional,” meaning there’s no underlying disease. Instead, a combination of diet, fluid intake, and behavioral patterns creates a cycle that makes bowel movements infrequent, hard, or painful. Understanding what’s driving the problem is the first step toward fixing it.

A child is generally considered constipated if they have two or fewer bowel movements per week, pass hard or painful stools, or produce stools so large they seem surprising for their size. Many parents describe the stools as “little pebbles,” while others notice infrequent but enormous bowel movements.

Not Enough Fiber or Fluid

Diet is the single most common contributor. Kids who eat a lot of processed foods, white bread, cheese, and snack crackers but very little fruit, vegetables, or whole grains often don’t get the fiber their digestive system needs to keep stool soft and moving. The daily fiber targets are higher than most parents realize: 19 grams for children ages 1 to 3, 25 grams for ages 4 to 8, and 26 to 31 grams for ages 9 to 13 depending on sex. A cheese sandwich on white bread and a handful of crackers barely registers on that scale.

Fluid intake matters just as much. Water helps fiber do its job by adding bulk and softness to stool. Children under 40 pounds need a minimum of about 1.5 ounces of water per pound of body weight for the first 20 pounds, plus roughly 0.75 ounces per pound after that. Kids over 40 pounds should aim for at least 50 ounces daily, with more on active or hot days. Juice and milk count toward fluid intake, but water is the most reliable choice because it doesn’t come with the downsides of excess sugar or dairy.

The Withholding Cycle

Stool withholding is considered the main driver of functional constipation in toddlers and young children, and it creates a self-reinforcing loop that can be surprisingly hard to break.

It usually starts with a single painful bowel movement. After that experience, a child begins holding stool in to avoid the pain. Instead of relaxing their pelvic floor when they feel the urge to go, they do the opposite: they stiffen up, clench their buttocks, stand on tiptoes, cross their legs, brace against furniture, or curl into a ball. Parents sometimes mistake these postures for straining, but the child is actually trying not to go.

The longer stool sits in the rectum, the more water the body absorbs from it, making it harder and larger. Over time, the rectum stretches to accommodate this backlog, which dulls the child’s sensation of needing to go. Eventually, liquid stool can seep around the hard mass and leak out, causing soiling in underwear. This isn’t diarrhea and it isn’t a behavior problem. It’s a sign the rectum is overfull and the child has lost the ability to sense it.

Several things can kick off the withholding cycle beyond that first painful stool: starting toilet training too early or too aggressively, being uncomfortable using an unfamiliar bathroom (like at school or daycare), or stressful life events such as a new sibling, a move, or difficulties at school.

Cow’s Milk and Food Sensitivities

For some children, especially those under three, cow’s milk protein is a significant and underrecognized cause of chronic constipation. Research has found that in young children whose constipation doesn’t improve with standard treatment, removing cow’s milk from the diet leads to improvement in roughly 80% of cases. One study of 136 constipated children under age three found that nearly 73% had cow’s milk protein allergy as the underlying cause.

This isn’t lactose intolerance, which involves difficulty digesting milk sugar. It’s an immune response to the proteins in cow’s milk that affects gut motility. If your child drinks a lot of milk, eats a lot of cheese and yogurt, and has stubborn constipation that doesn’t respond to fiber and fluid changes, a two-to-four-week trial of removing dairy is a reasonable next step to discuss with your pediatrician.

Medications and Supplements

Certain medications can slow the digestive tract and harden stool. The most common culprits in children are iron supplements (often given for anemia), calcium supplements, antihistamines found in cold and allergy medicines, and antacids. If your child started a new medication or supplement around the time constipation began, that connection is worth flagging to their doctor.

Lifestyle and Activity Patterns

Physical movement stimulates the muscles of the intestines. Kids who spend long stretches sitting, whether during school, screen time, or car rides, tend to have slower gut motility than those who are regularly active. There’s no specific exercise prescription for constipation, but consistent daily play and movement help keep the digestive system on schedule.

Routine matters too. The gut has its own clock, and bowel movements are most likely after meals when a natural reflex pushes stool forward. Children who rush through breakfast and leave for school without sitting on the toilet, or who avoid school bathrooms entirely, miss these natural windows. Building in five to ten unhurried minutes on the toilet after breakfast or dinner can make a real difference over time.

Less Common Medical Causes

In a small percentage of children, constipation signals an underlying medical condition rather than a dietary or behavioral issue. Hirschsprung disease is the most well-known example. In this condition, nerve cells in part of the intestine don’t develop normally before birth, so that segment of bowel can’t relax and push stool through. It typically shows up early in life and causes constipation that doesn’t improve with laxatives.

Thyroid problems, spinal cord abnormalities, and celiac disease can also contribute to constipation, though celiac disease rarely causes constipation as its only symptom. These conditions are uncommon, but they’re worth considering when constipation starts very early in life, doesn’t respond to treatment, or comes with other symptoms.

Signs That Need Medical Attention

Most childhood constipation responds to dietary changes, more fluids, and patience. But certain warning signs suggest something beyond functional constipation:

  • Timing: constipation that began in the first month of life, or delayed passage of a newborn’s first stool beyond 48 hours after birth
  • Growth problems: poor weight gain or failure to thrive
  • Severe belly symptoms: significant abdominal distension, bilious (green) vomiting, or fever
  • Blood in stool that can’t be explained by a visible anal fissure or tear
  • Family history of Hirschsprung disease
  • Abnormalities around the anus or at the base of the spine

These features prompt pediatricians to refer to a specialist for further evaluation, because they can point to structural or neurological problems that need specific treatment rather than dietary management alone.