It's completely normal for a 2-year-old to go 2 or 3 days without pooping. In general, it's a good idea for a child to have 1 to 3 bowel movements a day, but that's not always the case. Some children only have a bowel movement 1 to 3 times a week, while others may go more often. A change in the amount of stool and the frequency of your child’s bowel movements may indicate a medical problem, so it's important that you talk with your pediatrician if you’re concerned.
Sometimes toddlers may seem to stop producing any bowel movements at all, but this is usually nothing to worry about. If your child won’t pass stool after three days, it's a good idea to talk with your pediatrician. They may recommend changing your child’s diet or give a laxative if the problem lasts for more than a week.
It's important to note that the amount and frequency of bowel movements can vary from day to day and from child to child. So if your child has gone a few days without pooping but seems to feel fine, there’s probably no need to worry.
For more information, you can visit the Mayo Clinic website here: https://www.mayoclinic.org/healthy-lifestyle/infant-and-toddler-health/in-depth/constipation-in-children/art-20044951