The euthanasia medication most vets use is pentobarbital, a seizure medication. In large doses, it quickly renders the pet unconscious. It shuts down their heart and brain functions usually within one or two minutes. It is usually given by an IV injection in one of their legs.