Our TaqMan assay detects common genotypes associated with macrolide-resistant M. genitalium, namely, A2058G, A2059G and A2058C. We show association between the presence of resistant M. genitalium and treatment failure, thereby confirming the validity of testing for these mutants to prevent further spread of antimicrobial resistance and to allow informed choice of antibiotics for treatment.