Estimated mean trajectories are shown for global (A and B) and subcortical (C and D) brain volumes for each exposure group, including the reference (n = 2749; 4813 scans), prenatal selective serotonin reuptake inhibitor (SSRI) exposure (n = 41; 80 scans), SSRI use before pregnancy (n = 77; 126 scans), prenatal depression exposure (n = 257; 477 scans), and postnatal depression exposure (n = 74; 128 scans). Adjustment was made for child sex and age at the neuroimaging assessment; maternal age at intake, national origin, marital status, educational level, substance use (tobacco, cannabis, and alcohol), benzodiazepine use during pregnancy, and monthly household income; and child intracranial volume for subcortical volumes. Shaded areas indicate 95% CIs.