There is increasing evidence that resilience in youth may have a neurobiological basis. However, the existing literature lacks a consistent way of operationalizing resilience, often relying on arbitrary judgments or narrow definitions (e.g., not developing PTSD) to classify individuals as resilient. Therefore, this study used data-driven, continuous resilience scores based on adversity and psychopathology to investigate associations between resilience and brain structure in youth. Structural MRI data from 298 youth aged 9-18 years (Mage = 13.51; 51% female) who participated in the European multisite FemNAT-CD study were preprocessed using SPM12 and analyzed using voxel-based morphometry. Resilience scores were derived by regressing data on adversity exposure against current/lifetime psychopathology and quantifying each individual's distance from the regression line. General linear models tested for associations between resilience and gray matter volume (GMV) and examined whether associations between resilience and GMV differed by sex. Resilience was positively correlated with GMV in the right inferior frontal and medial frontal gyri. Sex-by-resilience interactions were observed in the middle temporal and middle frontal gyri. These findings demonstrate that resilience in youth is associated with volume in brain regions implicated in executive functioning, emotion regulation, and attention. Our results also provide evidence for sex differences in the neurobiology of resilience.