Computational thinking (CT) is an essential mathematical skill for problem-solving and students’ future lives. It is integrated into the educational curricula of several countries, including Portugal. Therefore, pre-service teachers (PST) must possess didactic knowledge to effectively develop CT in students. The aim of this study encompassed three main objectives: translating and adapting the computational thinking scale into Portuguese (study 1), validating the scale (study 2), and assessing the perceived levels of CT competencies among PST in Portuguese university students while examining differences between undergraduate and master’s level PST (study 3). The sample consisted of study 1 with 43 participants and study 2 and study 3 with 382 participants. In study 1, temporal stability was assessed indicating strong stability. The internal consistency showed good homogeneity of the items. The exploratory factor analysis revealed consistency with the structure of the original scale. In conclusion, the Portuguese version of the CT scale demonstrates adequate psychometric properties, proving valid and reliable for assessing CT in university students. Additionally, significant differences were observed between undergraduate and master’s degree students, underscoring the importance of tailored training programs to meet the specific needs of undergraduate students.