This study evaluates different parameters describing the gray matter structure to analyze differences between healthy controls, patients with episodic migraine, and patients with chronic migraine. Cohort study. Spanish community. Fifty-two healthy controls, 57 episodic migraine patients, and 57 chronic migraine patients were included in the study and underwent T1-weighted magnetic resonance imaging acquisition. Eighty-four cortical and subcortical gray matter regions were extracted, and gray matter volume, cortical curvature, thickness, and surface area values were computed (where applicable). Correlation analysis between clinical features and structural parameters was performed. Statistically significant differences were found between all three groups, generally consisting of increases in cortical curvature and decreases in gray matter volume, cortical thickness, and surface area in migraineurs with respect to healthy controls. Furthermore, differences were also found between chronic and episodic migraine. Significant correlations were found between duration of migraine history and several structural parameters. Migraine is associated with structural alterations in widespread gray matter regions of the brain. Moreover, the results suggest that the pattern of differences between healthy controls and episodic migraine patients is qualitatively different from that occurring between episodic and chronic migraine patients.