Many factors affect the cost associated with treating heartworm infection, including diagnostic testing, hospitalization, medication, and office visits. Adult heartworms are hard to kill and require an expensive and strong drug. We do everything we can to make sure a dog’s system can handle the medication. Preventing heartworm is much less expensive, which is why most veterinarians recommend that you keep your pet on heartworm prevention year-round.