BackgroundExecutive Function and the Approximate Number System are well-established as critical components in developing the Cardinality Principle in young children. However, most existing studies explore the relationship between these variables in isolation without examining whether Approximate Number System mediates the relationship between Executive Function and the Cardinality Principle and the role of age in this. This study aimed to address this gap by investigating the mediating role of the Approximate Number System in the relationship between Executive Function and the Cardinality Principle and the moderating role of age in young children.MethodsThis cross-sectional study was conducted in China from February to June 2024. A total of 203 young children (97 boys and 106 girls, Mean age = 68.93 ± 7.076 months) participated. Participants were assessed using a range of tests: the Day-Night Stroop Task, Digit Recall Task, Dimensional Change Card Sort Task, Panamath Test Software, How Many Task, and Give-N Task to measure Executive Function, Approximate Number System, and Cardinality Principle. Data were analyzed using SPSS 26.0 and PROCESS v4.1 (Model 4) to explore the relationships among Executive Function, the Approximate Number System, and the Cardinality Principle through Pearson correlations, multivariate regression, and mediation analysis with 5000 bootstrap samples.ResultsCorrelation analysis revealed that the Cardinality Principle was significantly and positively correlated with Inhibitory Control, Working Memory, Cognitive Flexibility, Executive Function, and the Approximate Number System. Regression analyses indicated that Executive Function positively predicted young children's Cardinality Principle. Specifically, Working Memory and Cognitive Flexibility were positive predictors of the Cardinality Principle, while Inhibitory Control was not. Mediation analysis results demonstrated that the Approximate Number System mediated the relationships between Inhibitory Control and the Cardinality Principle, Working Memory and the Cardinality Principle, and Cognitive Flexibility and the Cardinality Principle, respectively. In addition, the study found that young children's age negatively moderated the relationship between the Approximate Number System and the Cardinality Principle.ConclusionsThe study emphasizes that in developing young children's Cardinality Principle, emphasis should be placed on improving their Executive Function and Approximate Number System while considering the age differences of young children and developing appropriate educational methods for different age groups.