Tapeworms typically die within a few days after a cat is treated with a dewormer. It can take up to 3 weeks for all tapeworms to be expelled from the cat’s body. If you still see tapeworm segments in the stool after this time, return to the vet for re-treatment.