Parental socioeconomic status (SES) is a strong predictor of children's educational achievement (EA), with an increasing effect throughout development. Inequality in educational outcomes between children from different SES backgrounds exists in all Western countries. It has been proposed that a cause of this inequality lies in the interplay between genetic effects and SES on EA, which might depend on society and the equality of the education system. This study adopted two approaches, a classical twin design and polygenic score (PGS) approach, to address the effect of parental SES on EA in a large sample of 12-year-old Dutch twin pairs (2479 MZ and 4450 DZ twin pairs with PGSs for educational attainment available in 2335 children) from the Netherlands Twin Register (NTR). The findings of this study indicated that average EA increased with increasing parental SES. The difference in EA between boys and girls became smaller in the higher SES groups. The classical twin design analyses based on genetic covariance structure modeling pointed to lower genetic, environmental, and thus phenotypic variation in EA at higher SES. Independent from a child's PGS, parental SES predicted EA. However, the strength of the association between PGS and EA did not depend on parental SES. In a within-family design, the twin with a higher PGS scored higher on EA than the co-twin, demonstrating that the effect of the PGS on EA was at least partly independent from parental SES. To conclude, EA depended on SES both directly and indirectly, and SES moderated the additive genetic and environmental components of EA. Adding information from PGS, in addition to parental SES, improved the prediction of children's EA.