This research has analyzed the attitudes towards mathematics in university education and its relationship with the variables gender and ethnicity. This is a quantitative study based on a descriptive design that provided a scale of attitude towards mathematics to 876 men and women, university students of the University of the Autonomous Regions of the Nicaraguan Caribbean Coast. A descriptive analysis of the data, a correlation analysis, student t-tests and analysis of variance with the HSD-Tukey test were carried out with the statistical package for the social sciences SPSS. The results confirm that students' attitudes towards mathematics are moderate with a high tendency; the utility factor presents a higher coefficient of correlation with respect to the pleasure, the confidence and the motivation, which can explain that the anxiety towards the mathematics is smaller in the student's; men and women show the same degree of attitude toward mathematics; and finally, attitudes towards mathematics is a positive element in the ethnicity variable, characterized by different attitudinal factors in the Miskito, Mayangna, Creole and Mestizo ethnic groups, this is due to the way of learning and doing mathematics by each ethnic group. It is concluded, through this study, that the attitudes towards mathematics and its relationship with the variable gender and ethnicity are present in university students.