Studying determinant factors for effective learning communities has become a priority for sustainable education in Yemen. Yet, comprehensive knowledge of academic self-efficacy (ASE), academic commitment (AC), and learning outcomes (LOs) variables is limited in higher education, particularly. This research aimed to examine the role of these variables in enhancing the learning attainments of Yemeni university students by studying the direct impacts of ASE and AC on LOs, the influence of ASE on AC, and, lastly, how AC mediates the relationship between ASE and LOs. The research employed a meticulously validated measurement model encompassing 12 ASE items, 10 LOs items, and 27 AC items, using robust statistical methods such as EFA, CFA, and SEM. The study engaged 611 students aged 19–27. Empirical findings confirmed the significant impact of ASE on AC and LOs, as well as the impact of AC on LOs, both of which serve as vital factors in the academic context. Moreover, the research identified an indirect influence of ASE on LOs mediated through AC. On the other hand, the results concerning the demographic variables indicated significant differences between gender and age groups, as well as between age and educational level groups. However, no differences were found when comparing gender and level groups or when considering gender, age, and level together for ASE and LOs. In contrast, for students' AC, all comparisons were significant except for the gender and age comparison. The study offers valuable insights into educational practices and policies and concludes with practical recommendations to enhance the academic environment, informed by these study outcomes.