This paper reports the use of near infrared and mid-infrared spectroscopy to detect the presence and quantity of eggs of the gastrointestinal nematode Haemonchus contortus in sheep faeces. Haemonchus contortus eggs were quantified in dried, finely ground sheep faeces and in moist, coarsely ground faeces using near infrared and mid-infrared bench top spectrometers and a portable near infrared spectrometer. When Haemonchus contortus eggs were presented without faecal medium, it was found that the wavelength region of 1880–2100 nm was most important for detection. Broad classes of chemical properties found in the near infrared region were identified for dried Haemonchus contortus eggs using a mid-infrared spectrometer. However, when Haemonchus contortus eggs were mixed into the complex matrix of sheep faeces, the development of a robust calibration model for egg detection proved to be challenging (R2