Dogs can hold their poop for a variety of lengths of time, depending on a number of factors. On average, a healthy adult dog can hold their poop for 8-12 hours.
Puppies and senior dogs typically have less control over their bowels than adult dogs.
A diet that is high in fiber can help to keep a dog's digestive system healthy and regular.
More active dogs may need to go to the bathroom more frequently than less active dogs.
There are a few signs that your dog may need to go to the bathroom, such as: Circling repeatedly, Scratching at the door or floor, etc.
Taking them to the veterinarian for regular checkups
A good rule of thumb is to let your dog out to go to the bathroom at least every 8 hours.