Abstract Children’s cognitive functioning and educational performance are socially stratified. Social inequality, including classism and racism, may operate partly via epigenetic mechanisms that modulate neurocognitive development. Following preregistered analyses of data from 1,183 8-to 19-year-olds from the Texas Twin Project, we examined whether salivary DNA-methylation measures of inflammation (DNAm-CRP), cognitive functioning (Epigenetic-g), and pace of biological aging (DunedinPoAm) are socially stratified and associated with performance on tests of cognitive functions. We find that children growing up in more disadvantaged families and neighborhoods and children from marginalized racial/ethnic groups exhibit DNA-methylation profiles associated with higher chronic inflammation, lower cognitive functioning, and faster pace of biological aging. These salivary DNA-methylation profiles were associated with processing speed, general executive function, perceptual reasoning, verbal comprehension, reading, and math. Given that the DNA-methylation measures we examined were originally developed in adults, our results suggest that social inequalities may produce in children molecular signatures that, when observed in adults, are associated with chronic inflammation, advanced aging, and reduced cognitive function. Salivary DNA-methylation profiles might be useful as a surrogate endpoint in assessing the effectiveness of psychological and economic interventions that aim to reduce negative effects of childhood social inequality on lifespan development. Significance Statement Children’s cognitive functioning differs by dimensions of social inequality, such as class and race. Epigenetic mechanisms that regulate gene expression might be critically involved in the biological embedding of environmental privilege and adversity. We find that children growing up in more disadvantaged families and neighborhoods and from marginalized racial/ethnic groups exhibit higher chronic inflammation, lower cognitive functioning, and a faster pace of biological aging, as indicated by novel salivary DNA-methylation measures. These DNA-methylation measures of higher inflammation, lower cognitive functioning, and a faster pace of biological aging were, in turn, associated with performance on multiple cognitive tests. DNA-methylation measures might be useful as a surrogate endpoint in evaluation of programs to address the childhood social determinants of lifelong cognitive disparities.