If your baby poops while sleeping, it's usually nothing to worry about. Most babies will wake up immediately if they need to go, and most parents don't even realize their child has gone until they hear a bowel movement. If your baby doesn't wake up after a few minutes, you can try gently shaking or patting them on the back to get them moving. If that still doesn't work, you can try giving them a bottle of milk or formula to drink.