A list of prime ministers of the United Kingdom and the educational institutions they attended. As of July 2024, of the 58 prime ministers to date, 31 were educated at the University of Oxford, and 14 at the University of Cambridge. Three attended the University of Edinburgh, three the University of Glasgow, two Mason Science College, a predecessor institution of the University of Birmingham, and one – the incumbent prime minister Keir Starmer – the University of Leeds. John Major was the last of the eight living prime ministers who did not attend university after leaving secondary education. A number of the prime ministers who attended university never graduated. Oxford gained its 29th prime-ministerial alumnus when Liz Truss succeeded Boris Johnson in September 2022, and its 30th – and fifth consecutive – a month later in Rishi Sunak. Starmer followed his undergraduate degree at Leeds with a postgraduate Bachelor of Civil Law degree at Oxford.