ObjectiveThere is evidence that suggests that affective dimensions, personality traits, as well as students’ cooperative interpersonal interactions, are an important element in the students learning process. In this work we propose a theoretical model, based on evidence, that shows the direct and indirect relationships between these factors and academic performance in mathematics courses, in undergraduate and school students.MethodsTo understand the type of relationships between these variables, the PANAS psychometric test of positive and negative affect, the BIG FIVE personality test and the economic decision game DUPLES GAME were applied. The study sample was 130 students between 17 and 22 years of age from undergraduate and school (M ± SD = 20.1 ± 3.99).ResultsFrom a path analysis, statistically significant relationships were found, for example, a direct relationship between neuroticism and positive affect, which in turn is related to academic performance. We also found a direct relationship between neuroticism and negative affect, extraversion and positive affect. This allows us to propose that some of the independent variables of the model directly and indirectly influence the academic performance of students in the subject of mathematics.ConclusionPositive affect and negative affect directly affect academic performance in mathematics, neuroticism has a direct impact on negative affect and extraversion direct impact on positive affect. Consequently, there are direct and indirect relationships between personality traits and affective dimensions, which affect the academic performance of mathematics students.