The boundaries of somatosensory cortex were localized noninvasively by means of a large-array biomagnetometer in six patients with mass lesions in or near eloquent cortex. The results were used by neurosurgeons and neurologists in preoperative planning and for reference in the operating room. The magnetic source imaging (MSI) localizations from somatosensory evoked potentials were used to predict the pattern of phase reversals measurable intraoperatively on the cortical surface, providing a quantitative comparison between the two measures. The magnetic localizations were found to be predictive in all six cases, with the two sets of localizations falling within an 8-mm distance on average. Somatosensory localizations using MSI offer accuracy in localizing somatosensory cortex stereotactically and in depicting its relationship to lesions. Such data are valuable preoperatively in assessing the risks associated with a proposed surgical procedure and for optimizing subsequent minimum-risk surgical strategy.