Neurosurgery is a therapeutic option for patients with refractory obsessive–compulsive disorder who do not respond to previous treatments. Although its efficacy in reducing clinical symptomatology has been proven, few studies have analyzed its effects at the cognitive level. The aim of this systematic review was to describe the cognitive outcomes of functional neurosurgery in patients that went through capsulotomies or cingulotomies. PubMed, Medline, Scopus, PsycInfo, PsyArticles, and Web of Knowledge were searched for studies reporting cognitive outcomes in refractory obsessive–compulsive patients after capsulotomies and cingulotomies. The risk of bias was assessed with the Assessment Tool for Before-After (Pre-Post) Studies With No Control Group tool; 13 studies met inclusion criteria, including 205 refractory obsessive–compulsive disorder patients for both surgical procedures. Results showed a substantial number of studies that did report significant cognitive improvement after surgery, being this improvement specially related to memory and executive functions. The second-most frequent finding is the maintenance of cognitive performance (nor improvement or worsening). From a neuropsychological point of view, this outcome might be considered a success, given that it is accompanied by amelioration of obsessive–compulsive symptoms. Subtle cognitive adverse effects have also been reported. Neurosurgery procedures appear to be safe from a cognitive point of view. Methodological issues must be improved to draw clearer conclusions, but capsulotomies and cingulotomies constitute an effective alternative treatment for refractory obsessive–compulsive disorder patients.Supplementary InformationThe online version contains supplementary material available at 10.1007/s10143-023-02037-w.