Why Is My Child Still Constipated After a Stomach Bug?

Why Is My Child Still Constipated After a Stomach Bug?

Written and clinically reviewed by Bahee Van de Bor, RD, BCAPSc PGDipDiet, Specialist Paediatric Dietitian, former specialist dietitian at Great Ormond Street Hospital, with over 20 years of clinical experience in paediatric digestive health.

Why Is My Child Still Constipated After a Stomach Bug?

The bug lasted a few days.

You kept them hydrated, cancelled the weekend plans, and watched the clock until the vomiting and diarrhoea finally stopped.

That was two weeks ago.

Since then, your child has barely been to the toilet.

When they do try, they cry, or they refuse to sit down at all.

The tummy pain that was supposed to leave with the bug is still there.

And you are somewhere between confused and quietly worried, because you expected things to settle, not get worse.

You are in the right place.

Constipation can develop after a stomach bug.

If a painful poo then triggers withholding, it can continue long after the vomiting and diarrhoea have stopped.

Once that cycle starts, more water and fruit alone may not be enough.

Here is what is actually happening, and what helps.

The short answer

Yes, a child can become constipated after a stomach bug. Eating and drinking less, disrupted routines and a hard or painful poo can all contribute. If that painful poo leads to withholding, the constipation may continue after the infection has cleared. If your child has hard or painful stools, soiling, withholding or fear of the toilet, speak to your GP. Food and fluid intake matter, but a child with a stool backlog may also need appropriate laxative treatment.

School-age child eating breakfast with his mother while recovering from a stomach bug

How Do I Know Whether My Child Is Constipated?

Constipation does not simply mean your child has stopped going to the toilet.

A child can still be constipated while passing something every day.

Look for hard, pellet-like stools or unusually large poos.

Notice whether they strain or seem in pain when they try to go.

Watch for the opposite too: a child who goes very still when the urge arrives, or insists they do not need to go when it seems obvious that they do.

A reduced appetite that improves after they eventually go is another sign worth paying attention to.

And if your child is having what look like loose accidents or smelly soiling, do not assume the constipation has resolved.

In some children, liquid stool leaks around a blockage and passes as overflow.

That is worth knowing before you read the rest of this post, because it changes what you are looking for.

Can Gastroenteritis Cause Constipation in Children?

Yes, and it can happen within days of the diarrhoea stopping.

This surprises most parents, because stomach bugs are so closely associated with diarrhoea.

When a virus infects the gut, it causes inflammation in the gut lining.

This inflammation can affect how the bowel absorbs and moves fluid, which leads to loose, frequent stools.

Once the diarrhoea stops, your child’s usual bowel pattern may not return immediately.

Reduced food and fluid intake, disrupted routines and a painful first poo can all contribute to constipation in the days that follow.

Why Is My Child Constipated After a Stomach Bug?

A stomach bug can be the event that starts constipation, but there is rarely just one cause.

During the illness, your child may drink less, eat less, move less and miss their usual toilet routine.

Add a first poo that is dry and hard, and something shifts.

Here is what tends to happen.

1. Dehydration dries the stool out

During a stomach bug, children can lose fluid through vomiting and diarrhoea.

If your child has become dehydrated or is taking much less fluid than usual, the stool they next pass may be drier and harder.

The first stool after the illness can be dry and uncomfortable, particularly if your child has eaten very little or has already started holding on.

2. Less food, less movement, disrupted routine

Your child probably did not eat much during the bug.

They may have been in bed or on the sofa for several days.

Their usual morning toilet routine vanished.

When your child eats less, there is also less stool to pass.

With less movement and missed toilet opportunities, their usual bowel pattern can easily become disrupted.

3. The first painful poo sets off the withholding trap

Here is the part most parents do not know about, and in my experience, it is one of the main reasons constipation after a stomach bug can become prolonged.

After a few days of diarrhoea and very little eating, the first stool your child passes can be dry, hard and uncomfortable.

For a child who is already sore and unsettled from the bug itself, that poo hurts.

So the next time they feel the urge, they hold it in.

The stool sits in the colon longer.

More water is absorbed from it.

The next poo becomes even harder.

And the cycle locks in.

This is called stool withholding, and it does not always look the way parents expect.

Your child may not be squatting in the corner, doing what the leaflets describe.

Sometimes the only clue is a child who suddenly stops what they are doing, crosses their legs, or complains of tummy pain that comes and goes.

Wondering which foods actually help with constipation?

Download the free Happy Belly Toolkit. It is a practical guide to the foods and snacks that support a healthy bowel in children.

The Happy Belly Toolkit, a free childhood constipation guide by paediatric dietitian Bahee Van de Bor

Can a Stomach Bug Cause Constipation That Lasts for Weeks?

Yes. And when it does, there is usually a reason that goes beyond not drinking enough.

The withholding cycle has taken hold.

Once a child has associated pooing with pain, the fear of it happening again can keep the withholding cycle going.

The longer stool remains in the bowel, the harder it can become, reinforcing the child’s reluctance to go.

This is a functional pattern, and it may not settle quickly without support.

Your child is still eating a very limited range of foods.

Parents often offer plain foods such as toast, rice and crackers because these may be all their child feels ready to eat.

That is understandable.

But children do not need to remain on a prescribed bland diet.

Once your child is rehydrated and ready to eat, guidance from NICE and ESPGHAN supports returning to their usual food rather than staying on a restricted diet.

If you have been keeping your child on a narrow range of low-fibre foods out of worry about the diarrhoea returning, that may make it harder to re-establish their usual bowel pattern.

Constipation is only one of the patterns I see after a stomach bug.

If your child also has loose stools, tummy pain or new food reactions, what to do when your child is still unwell weeks after a stomach bug sets out the full picture.

Why More Water and Fruit May Not Be Enough

Drink more water. Eat more fruit. Try prunes.

These are the most common suggestions parents receive, and they are reasonable starting points.

The families I see have almost always already tried them.

But food and fluids alone may not be enough once a painful-poo and withholding cycle has started.

If stool has accumulated in the bowel, simply adding more fruit will not necessarily clear it.

The stool backlog and the withholding both need to be addressed.

Adding more fibre will not clear a stool backlog.

A sudden large increase may also cause bloating or discomfort, particularly if your child is not drinking enough.

And waiting it out gives the cycle more time to take hold.

If your child is withholding, soiling or struggling to go, a structured approach that looks at the stool consistency, the withholding pattern and the overall diet is likely to be more effective than adding more prune juice and hoping for the best.

What Helps a Child Who Is Constipated After a Stomach Bug?

Rehydrate, and keep going.

Encourage your child’s usual drinks regularly throughout the day.

Avoid fruit juice and fizzy drinks until the diarrhoea has stopped, as fruit juice and certain sweeteners can make diarrhoea worse.

Hydration alone will not clear a backed-up bowel, but it is the foundation everything else sits on.

Move on from the bland diet, gently but soon.

Return gradually to your child’s usual balanced diet.

Aim for an age-appropriate amount of fibre rather than suddenly loading their meals with extra bran, pulses or large quantities of fruit.

Soft fruits (kiwi, pears, peaches), cooked vegetables and regular meals are a good place to start.

If there is already a stool backlog, dietary changes should not replace an appropriate laxative plan.

Create a calm toileting opportunity each morning.

Eating stimulates the gastrocolic reflex, so after breakfast is often a useful time to sit on the toilet.

Encourage your child to sit for five to ten minutes, with feet supported by a small step so their knees are slightly higher than their hips.

No pressure. No asking “have you done anything?”

At this stage, the goal is breaking the association between the toilet and pain, not achieving a poo immediately.

Ask whether your child needs laxative treatment.

If your child is passing hard or painful stools, withholding, soiling or struggling to go, speak to your GP rather than putting up with the pain.

NICE recommends polyethylene glycol 3350 with electrolytes, often called macrogol, as the first-line laxative for childhood constipation.

The prescribed dose will depend on your child’s age and whether they need treatment for a stool backlog or ongoing maintenance.

Treatment may continue for weeks or months, depending on the picture.

Do not reduce or stop a prescribed laxative without speaking to the healthcare professional managing your child’s constipation.

Dietary and fluid changes can support treatment, but they should not replace the prescribed laxative plan.

If laxatives have already been recommended but do not seem to be helping, a more targeted assessment is worth pursuing.

My guide to why children stay constipated despite laxatives explains why dose and timing matter more than most parents realise.

Watch for the overflow pattern.

Sometimes what looks like diarrhoea after a period of constipation is not diarrhoea at all.

In children with a significant stool backlog, liquid from higher in the bowel leaks around a hard blockage and passes as what looks like accidents or loose stools.

If your child seems to have loose stools but is also complaining of tummy pain or a full feeling in their belly, read my guide to overflow diarrhoea in children before assuming the constipation has resolved.

Is your child still not right after a stomach bug?

 Download the free guide and find out why some children don’t bounce back and what actually helps.

Two girls laughing outdoors, representing a child returning to everyday life after specialist gut health support.

When Should I Be Worried About My Child’s Constipation?

In most children, constipation after a stomach bug is functional and responds well to the right approach.

But a few symptoms need a proper check, because they can point to something other than ordinary constipation.

And a small number mean your child needs to be seen urgently.

Seek urgent medical advice if your child has:

  • Green vomit, or vomiting alongside a swollen abdomen
  • New weakness in their legs or a change in the way they walk
  • Severe or worsening pain
  • Signs of becoming increasingly unwell

Arrange a prompt GP assessment if your child has:

  • Constipation that has been present since birth or the first few weeks of life
  • A history of delayed passage of meconium as a newborn
  • Ribbon-like stools
  • Faltering growth or unexplained weight loss
  • Persistent vomiting
  • Persistent blood or mucus in the stool, particularly alongside diarrhoea, weight loss or worsening pain
  • Constipation that has not improved despite an adequate prescribed treatment plan

Even if none of these warning signs apply, arrange a GP appointment if your child is passing hard or painful stools, withholding, soiling, becoming frightened of the toilet, or getting worse rather than better.

Most children will not have any of these.

If that is your child, keep reading.

Some children’s guts do not bounce back cleanly after a stomach bug.

If symptoms have continued, with tummy pain, loose stools or constipation that keeps coming back, and you are wondering whether the bug started something bigger, read my guide to post-infectious IBS in children.

It explains what post-infectious IBS actually involves, including the recurrent abdominal pain and changed bowel habits that distinguish it from ordinary post-bug constipation.

Still Struggling? This Is What I Do

Constipation does not always look straightforward.

Some children continue to poo regularly or pass loose, smelly stools, while retained stool and overflow are part of the underlying pattern.

This is why looking carefully at the whole clinical picture matters.

★★★★★

Thanks to Bahee we have our happy cheeky boy back.

“Within a few weeks the change was incredible. The advice hadn’t gone into the detail and reasoning that Bahee gave and we realised we hadn’t made the significant changes we thought we had. Now his pain has gone and we don’t have to worry about his stomach on every outing.”

C
Catherine Evans
Google Review
happy belly club

What structured support looks like

In my 12-week 1-to-1 clinical programme, the Happy Belly Club®, I work with families through a structured process.

We look closely at your child’s stool pattern, diet, symptoms, toileting behaviour and what has already been tried.

That helps me identify what may be keeping the constipation going and what needs to change first.

If your child has been constipated since a stomach bug and the usual approaches have not shifted it, it is worth a conversation about what might be driving it.

That is what the free 15-minute Discovery Call is for.

You can briefly explain the pattern you have been dealing with, and we can decide together whether the Happy Belly Club® is the right next step for your family.

No pressure. Just a clear conversation.

Not ready to book yet? Two free places to start:

Take the free tummy pain quiz to find out what might be driving your child’s symptoms.

Watch the free Gut Solutions video series, three short videos on what actually helps children’s gut problems.

Frequently Asked Questions

Can a child become constipated after a stomach bug?

Yes. Reduced food and fluid intake, disrupted routines and a painful first poo can all contribute to constipation in the days after a stomach bug. For some children, the constipation becomes the bigger and longer-lasting problem.

Should my child stay on a bland diet after a stomach bug?

Parents often offer plain foods such as toast, rice and crackers because these may be all their child feels ready to eat. That is understandable. But children do not need to remain on a prescribed bland diet. Once your child is rehydrated and ready to eat, current guidance recommends returning to their usual food. If you have been keeping your child on a narrow range of low-fibre foods out of worry about the diarrhoea returning, that may make it harder to re-establish their usual bowel pattern.

Why is my child scared to go to the toilet after a stomach bug?

After a few days of diarrhoea and reduced eating, the first stool after a bug can be dry and painful. If that poo hurts, many children start to withhold to avoid the pain. The fear of the toilet is not stubbornness or attention-seeking. It is a protective response to something that genuinely hurt. Reducing toilet pressure and softening the stool is usually the right first step.

Could what looks like diarrhoea actually be constipation?

Occasionally, yes. In children with a significant stool backlog, liquid stool leaks around a hard blockage and can look like diarrhoea or accidents. If your child has loose stools alongside tummy pain, a full-feeling belly, or a recent history of constipation, it is worth considering whether overflow might be part of the picture. Read how to tell the difference between diarrhoea and overflow caused by constipation.

When should I take my child to the doctor for constipation after a stomach bug?

Seek urgent medical advice if your child has green vomit, a swollen abdomen with vomiting, new leg weakness, a change in walking, severe or worsening pain, or appears increasingly unwell. Arrange a prompt GP assessment if they have persistent blood or mucus in the stool alongside diarrhoea, weight loss or worsening pain, are losing weight or not growing, or if constipation has not improved despite a prescribed treatment plan. Even if none of those apply, arrange a GP appointment if your child is passing hard or painful stools, withholding, soiling, becoming frightened of the toilet, or getting worse rather than better.

About the Author

Bahee Van de Bor is a Registered Paediatric Dietitian specialising in children’s digestive health.
She presented at the European Society for Paediatric Gastroenterology, Hepatology and Nutrition Annual Meeting in June 2026 on nutritional microbiome therapies following antibiotic use.
She has over 20 years of clinical experience, including 12 years working at Great Ormond Street Hospital.
Bahee works with families whose children experience constipation, diarrhoea, tummy pain and IBS-type symptoms through her clinical programme, the Happy Belly Club®.

Leave a Reply

Your email address will not be published. Required fields are marked *