ABSTRACT Cognitive flexibility (CF) has been proposed as a potential trait marker in anorexia nervosa (AN), although findings have been inconsistent. To address this inconsistency, we applied a model that distinguishes between three subtypes of CF: task switching, switching sets, and stimulus-response mapping, which we then assessed using a paradigm-based task battery. The aim of the study was to investigate how AN is associated with these three CF subtypes. Thirty-three women with AN and 37 age- and education-matched controls performed a battery of computerized cognitive tasks to assess the three CF subtypes. Compared to the control group, individuals with AN exhibited poorer performance on the task switching and switching sets subtypes, as measured by response time switch cost, but not on the stimulus-response mapping subtype. No differences were found between the groups in response accuracy. Furthermore, switching sets as compared to the task switching and stimulus-response mapping subtypes was found to better explain the differences between the groups. These findings indicate a domain-specific impairment in CF among patients with AN, reflecting deficits observed in subtypes related to the disorder’s characteristics, particularly that associated with visual perception. Therefore, CF impairment in AN should not be viewed dichotomously, but rather as a relative impairment that varies depending on the specific CF subtype.