A friend recently asked me about the top universities for studying mathematics in Spain. After digging into various rankings and hearing from current and former students, I’ve put together this list of five highly-regarded universities. I hope it helps those of you who are in the process of choosing a school. This is just my personal take, so please feel free to join the discussion and add your own insights!

Spain’s Top 5 Universities for Mathematics
Complutense University of Madrid
As one of Spain’s oldest and largest universities, UCM has a very deep-rooted mathematics department. Its Faculty of Mathematical Sciences is an independent entity, which highlights the importance the university places on the subject. Its strengths lie in solid theoretical foundations and a comprehensive range of research areas, covering almost everything from pure to applied mathematics. If you appreciate a scholarly atmosphere steeped in history, UCM is an excellent choice.
Autonomous University of Madrid
Although UAM is a younger institution, it is a powerhouse in research, especially in the sciences. Its mathematics department works closely with the Spanish National Research Council’s Institute of Mathematical Sciences (ICMAT), meaning students get exposure to cutting-edge topics and leading scientists. UAM has a more modern and international atmosphere, making its resources and opportunities top-tier for students aspiring to a career in academic research.
Polytechnic University of Catalonia
As the name suggests, UPC is renowned for engineering and technology. Its strength in mathematics lies in its application. If you’re interested in fields closely tied to practical uses, such as statistics, operations research, computational mathematics, or financial mathematics, UPC is the perfect fit. The curriculum places a strong emphasis on practical experience and developing computer skills, making its graduates highly sought after in the job market.
University of Barcelona
Like UCM, UB is a historic comprehensive university with an outstanding academic reputation. Its mathematics department is equally long-established and boasts strong expertise in traditional pure mathematics fields like algebra and geometry. The academic culture is rigorous and the courses are demanding—graduating from here is a significant achievement. The charm of Barcelona itself is also a big plus.
A Quick Comparison
To make the comparison easier, I’ve created a simple table based on the 2024 QS World University Rankings by Subject and some general insights, like those found in articles about five top public universities in Spain:
| University | 2024 QS Rank (Math) | Key Features |
| Complutense University of Madrid | 1 | Strong overall, rich history |
| Autonomous University of Madrid | 2 | Outstanding research, modern vibe |
| Polytechnic University of Catalonia | 3 | Applied math & engineering focus |
| University of Barcelona | 4 | Excels in theoretical math, rigorous |
| University of Granada | 5 | Strengths in specific niches |
Rankings aren’t everything. Your choice of university should also depend on your personal interests, city preference, and future career plans. For example, while the University of Granada may have a lower overall ranking, it’s world-class in specific fields like computational geometry. I hope this list serves as a good starting point. We welcome experts and current students to chime in and share more inside info
!