Methadone and buprenorphine are currently the most common pharmacological treatments for opioid dependence. Interestingly, the clinical response to these drugs appears to be sex specific. That is, females exhibit superior therapeutic efficacy, defined as extended periods of abstinence and longer time to relapse, compared with males. However, the underlying metabolic effects of opioid withdrawal and replacement have not been examined. Therefore, using FDG and microPET, we measured differences in regional brain glucose metabolism in males and females following morphine withdrawal and subsequent methadone or buprenorphine replacement. In both males and females, spontaneous opioid withdrawal altered glucose metabolism in regions associated with reward and drug dependence. Specifically, metabolic increases in the thalamus, as well as metabolic decreases in insular cortex and the periaqueductal gray, were noted. However, compared with males, females exhibited increased metabolism in the preoptic area, primary motor cortex, and the amygdala, and decreased metabolism in the caudate/putamen and medial geniculate nucleus. Methadone and buprenorphine initially abolished these changes uniformly, but subsequently produced their own regional metabolic alterations that varied by treatment and sex. Compared with sex-matched control animals undergoing spontaneous opioid withdrawal, male animals treated with methadone exhibited increased caudate/putamen metabolism, whereas buprenorphine produced increased ventral striatum and motor cortex metabolism in females, and increased ventral striatum and somatosensory cortex metabolism in males. Notably, when treatment effects were compared between sexes, methadone-treated females showed increased cingulate cortex metabolism, whereas buprenorphine-treated females showed decreased metabolism in cingulate cortex and increased metabolism in the globus pallidus. Perhaps the initial similarities in males and females underlie early therapeutic efficacy, whereas these posttreatment sex differences contribute to clinical treatment failure more commonly experienced by the former.