Surgical menopause causes a sharp drop in estrogen levels in middle‐aged women, thus preventing the gradual physiological adaptation that is characteristic of the perimenopause. Previous studies suggest that surgical menopause might increase the risk of dementia later in life. In addition, the transition to motherhood entails long‐lasting endocrine and neuronal adaptations. We compared differences in whole‐brain cortical volume between women who reached menopause by surgery and a group of women who reached spontaneous non‐surgical menopause and determined whether these cortical differences were influenced by previous childbearing. Using surface‐based neuroimaging techniques, we investigated cortical volume differences in 201 middle‐aged women (134 women who experienced non‐surgical menopause, 78 of whom were parous women; and 67 women who experienced surgical menopause, 39 of whom were parous women). We found significant atrophy in the frontal and temporal regions in women who experienced surgical menopause. Nulliparous women with surgical menopause showed significant lower cortical volume in the left temporal gyrus extending to the medial temporal lobe cortex, as well as in the precuneus bilaterally compared to parous women with surgical menopause; whereas our results revealed no significant differences between parous women with surgical menopause and both parous and nulliparous women who reached a non‐surgical menopause. Furthermore, in the surgical menopause group, we found a negative correlation between cortical volume and age at first pregnancy in the temporal lobe. Our study suggests that the long‐term brain remodeling of parity may mitigate the neural impact of the sudden drop in estrogen levels that characterizes surgical menopause.