A parent recently asked me if soiling at home but not at school and frequent daytime wetting might be related to "painful constipation":
Question: My daughter had some painful constipation several months back which seemed to be the beginning of her soiling issues. After that time she started soiling frequently, as many as 4 or 5 times a day. She is soiling less now but there are two questions I have about the soiling. The first is that she rarely soils at daycare, she typically only soils at home. The second is that she is now wetting her pants frequently, something she didn't do when she started soiling. I think that all of her soiling issues point back to those constipation issues but I don't know if these two behaviors are in line with that idea.
Answer: Painful bowel movements will often lead to withholding followed by soiling (encopresis). Since your daughter continues to soil, albeit less than at first, she is still constipated.That she tends not to soil at school is also typical in the early stages of functional constipation. Ongoing withholding and soiling are often associated with day and night wetting. This is because a distended or stretched rectum will press on the bladder causing occasional leaking during the day and/or bedwetting at night. This is all covered in my book.