The diagnosis of gastrointestinal nematode infections in small ruminants is central to studying the biology and epidemiology of these parasites and underpins their control. Traditional methods of diagnosis are inaccurate, time-consuming and laborious. Here, we describe a step-by-step protocol for the molecular-based diagnosis of infections by real-time PCR.