Constipation is really common in young children (its affects up to about a third of all children at some point) and there are lots of things that you can do to help prevent and treat it.
The key things to think about are diet, fluids and physical activity as getting all these things right is the key to prevention. We would recommend keeping your child well hydrated by offering plenty of water and foods that contain lots of water (eg cucumber, strawberries, grapes), lots of fibre in their diet (fruit, vegetables, beans, cereals and wholewheat bread/pasta) and plenty of exercise to help keep their bowel moving. Having a good toilet routine is really important too. Children are more likely to have their bowels open around 20-30 minutes after a meal so that’s a good time to take them to the toilet.
If you’ve tried these things and they haven’t helped or if your child is having hard, infrequent bowel movements and finding having a bowel movement distressing, we would recommend contacting the GP as soon as possible to discuss laxatives and also implement the advice above at the same time. Being constipated can cause other issues like making toilet training more difficult and urine infections, so it’s really important to get it treated quickly.
The ERIC website is brilliant and has lots of information here about preventing and managing constipation in children: https://www.eric.org.uk/Pages/Category/bowel-problems