Kittens around 40 days old are usually capable of potty training. Generally, kittens can learn to use the litter box from their mothers from birth, but because kittens' learning abilities vary, the time it takes for them to become litter-trained independently will differ. Some kittens may require guidance and assistance from their owners, but with proper instruction, they can usually learn quickly.

However, it's important to note that if a kitten experiences difficulty defecating or exhibits abnormal behavior, such as frequent urination or defecation in inappropriate locations, it could be due to physiological issues, emotional stress, genetics and breed, litter box problems, or socialization issues. In such cases, it's recommended to consult a veterinarian promptly for appropriate examination and treatment.