Human immunodeficiency virus (HIV)-infected individuals often demonstrate neuropsychiatric impairment; however, it is unclear how brain metabolism may be altered in such patients. We used in vivo phosphorus 31 magnetic resonance spectroscopy to noninvasively assess brain energy and phospholipid metabolism by measuring brain concentrations of adenosine triphosphate (ATP), phosphocreatine (PCr), and inorganic phosphate (Pi), as well as phospholipid compounds and intracellular pH. In study 1, 17 HIV-seropositive men with varying degrees of neuropsychiatric impairment and six control subjects were studied. Localized spectra were obtained from a heterogeneous 5 x 5 x 5-cm volume of interest (VOI). Patients with HIV infection had a significantly lower ATP/Pi ratio and a trend for a lower PCr/Pi ratio than did the control group. In addition, the ATP/Pi and PCr/Pi ratios were both significantly negatively correlated with overall severity of neuropsychiatric impairment. In study 2, three HIV-seropositive men with neuropsychiatric impairment were compared with 11 HIV-seronegative men. Localized phosphorus 31 magnetic resonance spectra were obtained from two relatively homogeneous VOIs: (1) a predominantly white matter VOI, and (2) a predominantly subcortical gray matter VOI. The three HIV-infected patients demonstrated significantly decreased ATP and PCr concentrations in the white matter VOI. These results suggest that HIV infection of the brain may impair brain cellular oxidative metabolism and that the degree of metabolic compromise may be related to the severity of neuropsychiatric impairment.