In Sweden, it is recommended to treat rams at sheep markets with ivermectin and then keep them in quarantine to minimise the risk of transmission of Haemonchus contortus between farms. The aim of this study was to evaluate the effectiveness of this practise. Accordingly the gastrointestinal parasite status of 50 rams purchased at two sheep markets in central Sweden in autumn 2019 was investigated using faecal samples collected on the day of sale (test 1), 12 ± 3 days after ivermectin injection (test 2, in quarantine) and a few months later before inclusion in the new flocks (test 3). We used both traditional diagnostic methods (i.e. identification of nematode eggs in faeces or larvae in cultures when H. contortus eggs could not be identified) and a molecular test based on the digital droplet PCR platform to further identify positive samples. In test 1, conducted in autumn, 40 % of rams were FEC-positive, but only 12 % (six rams) were infected with H. contortus according to conventional routine diagnostics. In test 2, 8 % (four rams) were FEC-positive, including one with 1050 eggs, 90 % of which were identified as H. contortus. This ram was therefore returned to the supplier. However, ivermectin was found to be effective when this animal and a group of lambs from the same farm were treated and tested again. Test 3 was performed on 44 of the same rams (in addition to the returned ram, two rams died in quarantine and the samples from three rams were never provided by the owners). The proportion of FEC-positive animals was 42 %, with an even higher proportion (27 %) of animals being H. contortus-positive than in test 1. The corresponding results for tests 1, 2 and 3 with the ddPCR assay were 18 %, 4 % and 76 %, respectively. This study demonstrates the superiority of DNA detection over microscopy, which is the mainstay in most diagnostic laboratories. Although the combined results confirm that H. contortus survived quarantine in two rams, in the other cases it is not clear whether the spring infection rates are due to re-emergence of persistent larvae from quarantine or reinfection on the new farm. These results suggest not only that we should recommend that sheep farmers use a more sensitive molecular test when purchasing and introducing new animals to their flock, but also that the reliability of injectable ivermectin as a quarantine treatment for removal of adult and larval stages needs further investigation.